diff --git a/README.md b/README.md index c3a69e05..75928d4a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![Coverage Status](https://coveralls.io/repos/github/common-workflow-language/cwljava/badge.svg?branch=cwl-1.2.0)](https://coveralls.io/github/common-workflow-language/cwljava?branch=cwl-1.2.0) -# org.w3id.cwl.cwl1_2 +# org.commonwl.cwlsdk This project contains Java objects and utilities auto-generated by Schema Salad for parsing documents corresponding to the https://w3id.org/cwl/cwl# schema. diff --git a/adding_new_cwl_versions.txt b/adding_new_cwl_versions.txt index e554c7b2..ca4b8c3b 100644 --- a/adding_new_cwl_versions.txt +++ b/adding_new_cwl_versions.txt @@ -6,7 +6,7 @@ git ls-files -- tests | grep cwl$ | xargs -I{} bash -c 'cwltool --relax-path-che mkdir valid-examples; for file in $(cat valid_examples.txt); do cp ${file} valid-examples/valid_$(basename ${file}) ; done # build the Java parser -schema-salad-tool --codegen java --codegen-package org.w3id.cwl.cwl1_1 --codegen-examples ~/cwl-v1.1/valid-examples ~/cwl-v1.1/CommonWorkflowLanguage.yml +schema-salad-tool --codegen java --codegen-package org.commonwl.cwlsdk.cwl1_1 --codegen-examples ~/cwl-v1.1/valid-examples ~/cwl-v1.1/CommonWorkflowLanguage.yml mvn test -# copy missing files into ./src/test/resources/org/w3id/cwl/cwl1_1/utils +# copy missing files into ./src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils diff --git a/pom.xml b/pom.xml index 05f955e9..35ec2597 100644 --- a/pom.xml +++ b/pom.xml @@ -1,8 +1,8 @@ 4.0.0 - org.w3id.cwl.sdk - cwljava + org.commonwl + cwlsdk jar Common Workflow Language SDK Schema Salad for parsing documents corresponding to the https://w3id.org/cwl/cwl# schema.]]> @@ -70,7 +70,7 @@ - org.w3id.cwl.cwl1_2.utils.Validator + org.commonwl.cwlsdk.cwl1_2.utils.Validator diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/Any.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Any.java new file mode 100644 index 00000000..bf92975e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Any.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum Any { + ANY("Any"); + + private static String[] symbols = new String[] {"Any"}; + private String docVal; + + private Any(final String docVal) { + this.docVal = docVal; + } + + public static Any fromDocumentVal(final String docVal) { + for(final Any val : Any.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", Any.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ArraySchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ArraySchema.java new file mode 100644 index 00000000..ff57c37f --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ArraySchema.java @@ -0,0 +1,42 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/salad#ArraySchema
This interface is implemented by {@link ArraySchemaImpl}
+ */ +public interface ArraySchema extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + Object getItems(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + Array_name getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ArraySchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ArraySchemaImpl.java new file mode 100644 index 00000000..5197cb6a --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ArraySchemaImpl.java @@ -0,0 +1,128 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/salad#ArraySchema
+ */ +public class ArraySchemaImpl extends SaveableImpl implements ArraySchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private Object items; + + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + public Object getItems() { + return this.items; + } + + private Array_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + public Array_name getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of ArraySchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public ArraySchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("ArraySchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + Object items; + try { + items = + LoaderInstances + .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 + .loadField(__doc.get("items"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + items = null; // won't be used but prevents compiler from complaining. + final String __message = "the `items` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Array_name type; + try { + type = + LoaderInstances + .typedsl_Array_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.items = (Object) items; + this.type = (Array_name) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("items", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/Array_name.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Array_name.java new file mode 100644 index 00000000..91fdc1fe --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Array_name.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum Array_name { + ARRAY("array"); + + private static String[] symbols = new String[] {"array"}; + private String docVal; + + private Array_name(final String docVal) { + this.docVal = docVal; + } + + public static Array_name fromDocumentVal(final String docVal) { + for(final Array_name val : Array_name.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", Array_name.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLArraySchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLArraySchema.java new file mode 100644 index 00000000..9003654e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLArraySchema.java @@ -0,0 +1,42 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CWLArraySchema
This interface is implemented by {@link CWLArraySchemaImpl}
+ */ +public interface CWLArraySchema extends ArraySchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + Object getItems(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + Array_name getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLArraySchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLArraySchemaImpl.java new file mode 100644 index 00000000..8cf046fc --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLArraySchemaImpl.java @@ -0,0 +1,128 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CWLArraySchema
+ */ +public class CWLArraySchemaImpl extends SaveableImpl implements CWLArraySchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private Object items; + + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + public Object getItems() { + return this.items; + } + + private Array_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + public Array_name getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of CWLArraySchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CWLArraySchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CWLArraySchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + Object items; + try { + items = + LoaderInstances + .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 + .loadField(__doc.get("items"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + items = null; // won't be used but prevents compiler from complaining. + final String __message = "the `items` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Array_name type; + try { + type = + LoaderInstances + .typedsl_Array_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.items = (Object) items; + this.type = (Array_name) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("items", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLRecordField.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLRecordField.java new file mode 100644 index 00000000..a5cb4193 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLRecordField.java @@ -0,0 +1,51 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CWLRecordField
This interface is implemented by {@link CWLRecordFieldImpl}
+ */ +public interface CWLRecordField extends RecordField, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + String getName(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + Object getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLRecordFieldImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLRecordFieldImpl.java new file mode 100644 index 00000000..3dccc3d3 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLRecordFieldImpl.java @@ -0,0 +1,175 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CWLRecordField
+ */ +public class CWLRecordFieldImpl extends SaveableImpl implements CWLRecordField { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private String name; + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + public String getName() { + return this.name; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + public Object getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of CWLRecordFieldImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CWLRecordFieldImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CWLRecordFieldImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + String name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + if (name == null) { + if (__docRoot != null) { + name = __docRoot; + } else { + throw new ValidationException("Missing name"); + } + } + __baseUri = (String) name; + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object type; + try { + type = + LoaderInstances + .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 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.doc = (Object) doc; + this.name = (String) name; + this.type = (Object) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("doc", "name", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLRecordSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLRecordSchema.java new file mode 100644 index 00000000..4bdfc29e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLRecordSchema.java @@ -0,0 +1,42 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CWLRecordSchema
This interface is implemented by {@link CWLRecordSchemaImpl}
+ */ +public interface CWLRecordSchema extends RecordSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + java.util.Optional> getFields(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + Record_name getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLRecordSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLRecordSchemaImpl.java new file mode 100644 index 00000000..4e2aa4be --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLRecordSchemaImpl.java @@ -0,0 +1,134 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CWLRecordSchema
+ */ +public class CWLRecordSchemaImpl extends SaveableImpl implements CWLRecordSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional> fields; + + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + public java.util.Optional> getFields() { + return this.fields; + } + + private Record_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + public Record_name getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of CWLRecordSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CWLRecordSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CWLRecordSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional> fields; + + if (__doc.containsKey("fields")) { + try { + fields = + LoaderInstances + .idmap_fields_optional_array_of_CWLRecordField + .loadField(__doc.get("fields"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + fields = null; // won't be used but prevents compiler from complaining. + final String __message = "the `fields` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + fields = null; + } + Record_name type; + try { + type = + LoaderInstances + .typedsl_Record_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.fields = (java.util.Optional>) fields; + this.type = (Record_name) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("fields", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLType.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLType.java new file mode 100644 index 00000000..e0037687 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLType.java @@ -0,0 +1,45 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum CWLType { + NULL("null"), + BOOLEAN("boolean"), + INT("int"), + LONG("long"), + FLOAT("float"), + DOUBLE("double"), + STRING("string"), + FILE("File"), + DIRECTORY("Directory"); + + private static String[] symbols = new String[] {"null", "boolean", "int", "long", "float", "double", "string", "File", "Directory"}; + private String docVal; + + private CWLType(final String docVal) { + this.docVal = docVal; + } + + public static CWLType fromDocumentVal(final String docVal) { + for(final CWLType val : CWLType.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", CWLType.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLVersion.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLVersion.java new file mode 100644 index 00000000..02f81525 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CWLVersion.java @@ -0,0 +1,50 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum CWLVersion { + DRAFT_2("draft-2"), + DRAFT_3_DEV1("draft-3.dev1"), + DRAFT_3_DEV2("draft-3.dev2"), + DRAFT_3_DEV3("draft-3.dev3"), + DRAFT_3_DEV4("draft-3.dev4"), + DRAFT_3_DEV5("draft-3.dev5"), + DRAFT_3("draft-3"), + DRAFT_4_DEV1("draft-4.dev1"), + DRAFT_4_DEV2("draft-4.dev2"), + DRAFT_4_DEV3("draft-4.dev3"), + V1_0_DEV4("v1.0.dev4"), + V1_0("v1.0"), + V1_1_0_DEV1("v1.1.0-dev1"), + V1_1("v1.1"); + + private static String[] symbols = new String[] {"draft-2", "draft-3.dev1", "draft-3.dev2", "draft-3.dev3", "draft-3.dev4", "draft-3.dev5", "draft-3", "draft-4.dev1", "draft-4.dev2", "draft-4.dev3", "v1.0.dev4", "v1.0", "v1.1.0-dev1", "v1.1"}; + private String docVal; + + private CWLVersion(final String docVal) { + this.docVal = docVal; + } + + public static CWLVersion fromDocumentVal(final String docVal) { + for(final CWLVersion val : CWLVersion.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", CWLVersion.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputArraySchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputArraySchema.java new file mode 100644 index 00000000..56eeef7c --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputArraySchema.java @@ -0,0 +1,70 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputArraySchema
This interface is implemented by {@link CommandInputArraySchemaImpl}
+ */ +public interface CommandInputArraySchema extends InputArraySchema, CommandInputSchema, CommandLineBindable, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + Object getItems(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + Array_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + java.util.Optional getInputBinding(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputArraySchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputArraySchemaImpl.java new file mode 100644 index 00000000..9da0e555 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputArraySchemaImpl.java @@ -0,0 +1,262 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputArraySchema
+ */ +public class CommandInputArraySchemaImpl extends SaveableImpl implements CommandInputArraySchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private Object items; + + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + public Object getItems() { + return this.items; + } + + private Array_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + public Array_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private java.util.Optional inputBinding; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + public java.util.Optional getInputBinding() { + return this.inputBinding; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of CommandInputArraySchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandInputArraySchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandInputArraySchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + Object items; + try { + items = + LoaderInstances + .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_None + .loadField(__doc.get("items"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + items = null; // won't be used but prevents compiler from complaining. + final String __message = "the `items` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Array_name type; + try { + type = + LoaderInstances + .typedsl_Array_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + java.util.Optional inputBinding; + + if (__doc.containsKey("inputBinding")) { + try { + inputBinding = + LoaderInstances + .optional_CommandLineBinding + .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputBinding = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputBinding` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + inputBinding = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.items = (Object) items; + this.type = (Array_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.name = (java.util.Optional) name; + this.inputBinding = (java.util.Optional) inputBinding; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("items", "type", "label", "doc", "name", "inputBinding"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputEnumSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputEnumSchema.java new file mode 100644 index 00000000..0a97a945 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputEnumSchema.java @@ -0,0 +1,70 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputEnumSchema
This interface is implemented by {@link CommandInputEnumSchemaImpl}
+ */ +public interface CommandInputEnumSchema extends InputEnumSchema, CommandInputSchema, CommandLineBindable, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + java.util.List getSymbols(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + Enum_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + java.util.Optional getInputBinding(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputEnumSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputEnumSchemaImpl.java new file mode 100644 index 00000000..c75f93ea --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputEnumSchemaImpl.java @@ -0,0 +1,262 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputEnumSchema
+ */ +public class CommandInputEnumSchemaImpl extends SaveableImpl implements CommandInputEnumSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private java.util.List symbols; + + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + public java.util.List getSymbols() { + return this.symbols; + } + + private Enum_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + public Enum_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private java.util.Optional inputBinding; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + public java.util.Optional getInputBinding() { + return this.inputBinding; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of CommandInputEnumSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandInputEnumSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandInputEnumSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + java.util.List symbols; + try { + symbols = + LoaderInstances + .uri_array_of_StringInstance_True_False_None_None + .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + symbols = null; // won't be used but prevents compiler from complaining. + final String __message = "the `symbols` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Enum_name type; + try { + type = + LoaderInstances + .typedsl_Enum_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + java.util.Optional inputBinding; + + if (__doc.containsKey("inputBinding")) { + try { + inputBinding = + LoaderInstances + .optional_CommandLineBinding + .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputBinding = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputBinding` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + inputBinding = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.name = (java.util.Optional) name; + this.symbols = (java.util.List) symbols; + this.type = (Enum_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.inputBinding = (java.util.Optional) inputBinding; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("name", "symbols", "type", "label", "doc", "inputBinding"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputParameter.java new file mode 100644 index 00000000..950f71bd --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputParameter.java @@ -0,0 +1,180 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputParameter
This interface is implemented by {@link CommandInputParameterImpl}
+ An input parameter for a CommandLineTool.
+ */ +public interface CommandInputParameter extends InputParameter, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferrably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + Object getFormat(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Read up to the first 64 KiB of text from the file and place it in the + * "contents" field of the file object for use by expressions. + * *
+ */ + + java.util.Optional getLoadContents(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + java.util.Optional getLoadListing(); + /** + * Getter for property https://w3id.org/cwl/salad#default
+ *
+ * The default value to use for this parameter if the parameter is missing + * from the input object, or if the value of the parameter in the input + * object is `null`. Default values are applied before evaluating expressions + * (e.g. dependent `valueFrom` fields). + * *
+ */ + + java.util.Optional getDefault(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * *
+ */ + + Object getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandInputParameter/inputBinding
+ *
+ * Describes how to turns the input parameters of a process into + * command line arguments. + * *
+ */ + + java.util.Optional getInputBinding(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputParameterImpl.java new file mode 100644 index 00000000..6d30b778 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputParameterImpl.java @@ -0,0 +1,493 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputParameter
+ An input parameter for a CommandLineTool.
+ */ +public class CommandInputParameterImpl extends SaveableImpl implements CommandInputParameter { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional streamable; + + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + public java.util.Optional getStreamable() { + return this.streamable; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferrably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + public Object getFormat() { + return this.format; + } + + private java.util.Optional loadContents; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Read up to the first 64 KiB of text from the file and place it in the + * "contents" field of the file object for use by expressions. + * *
+ */ + + public java.util.Optional getLoadContents() { + return this.loadContents; + } + + private java.util.Optional loadListing; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + public java.util.Optional getLoadListing() { + return this.loadListing; + } + + private java.util.Optional default_; + + /** + * Getter for property https://w3id.org/cwl/salad#default
+ *
+ * The default value to use for this parameter if the parameter is missing + * from the input object, or if the value of the parameter in the input + * object is `null`. Default values are applied before evaluating expressions + * (e.g. dependent `valueFrom` fields). + * *
+ */ + + public java.util.Optional getDefault() { + return this.default_; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * *
+ */ + + public Object getType() { + return this.type; + } + + private java.util.Optional inputBinding; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandInputParameter/inputBinding
+ *
+ * Describes how to turns the input parameters of a process into + * command line arguments. + * *
+ */ + + public java.util.Optional getInputBinding() { + return this.inputBinding; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of CommandInputParameterImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandInputParameterImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandInputParameterImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional streamable; + + if (__doc.containsKey("streamable")) { + try { + streamable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + streamable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `streamable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + streamable = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + java.util.Optional loadContents; + + if (__doc.containsKey("loadContents")) { + try { + loadContents = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadContents = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadContents` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadContents = null; + } + java.util.Optional loadListing; + + if (__doc.containsKey("loadListing")) { + try { + loadListing = + LoaderInstances + .optional_LoadListingEnum + .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadListing = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadListing` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadListing = null; + } + java.util.Optional default_; + + if (__doc.containsKey("default")) { + try { + default_ = + LoaderInstances + .optional_CWLObjectType + .loadField(__doc.get("default"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + default_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `default` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + default_ = null; + } + Object type; + try { + type = + LoaderInstances + .typedsl_union_of_CWLType_or_stdin_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional inputBinding; + + if (__doc.containsKey("inputBinding")) { + try { + inputBinding = + LoaderInstances + .optional_CommandLineBinding + .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputBinding = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputBinding` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + inputBinding = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.label = (java.util.Optional) label; + this.secondaryFiles = (Object) secondaryFiles; + this.streamable = (java.util.Optional) streamable; + this.doc = (Object) doc; + this.id = (java.util.Optional) id; + this.format = (Object) format; + this.loadContents = (java.util.Optional) loadContents; + this.loadListing = (java.util.Optional) loadListing; + this.default_ = (java.util.Optional) default_; + this.type = (Object) type; + this.inputBinding = (java.util.Optional) inputBinding; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("label", "secondaryFiles", "streamable", "doc", "id", "format", "loadContents", "loadListing", "default", "type", "inputBinding"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputRecordField.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputRecordField.java new file mode 100644 index 00000000..7b51b9d0 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputRecordField.java @@ -0,0 +1,167 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputRecordField
This interface is implemented by {@link CommandInputRecordFieldImpl}
+ */ +public interface CommandInputRecordField extends InputRecordField, CommandLineBindable, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + String getName(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + Object getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferrably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + Object getFormat(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Read up to the first 64 KiB of text from the file and place it in the + * "contents" field of the file object for use by expressions. + * *
+ */ + + java.util.Optional getLoadContents(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + java.util.Optional getLoadListing(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + java.util.Optional getInputBinding(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputRecordFieldImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputRecordFieldImpl.java new file mode 100644 index 00000000..bdc8c333 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputRecordFieldImpl.java @@ -0,0 +1,452 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputRecordField
+ */ +public class CommandInputRecordFieldImpl extends SaveableImpl implements CommandInputRecordField { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private String name; + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + public String getName() { + return this.name; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + public Object getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional streamable; + + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + public java.util.Optional getStreamable() { + return this.streamable; + } + + private Object format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferrably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + public Object getFormat() { + return this.format; + } + + private java.util.Optional loadContents; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Read up to the first 64 KiB of text from the file and place it in the + * "contents" field of the file object for use by expressions. + * *
+ */ + + public java.util.Optional getLoadContents() { + return this.loadContents; + } + + private java.util.Optional loadListing; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + public java.util.Optional getLoadListing() { + return this.loadListing; + } + + private java.util.Optional inputBinding; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + public java.util.Optional getInputBinding() { + return this.inputBinding; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of CommandInputRecordFieldImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandInputRecordFieldImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandInputRecordFieldImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + String name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + if (name == null) { + if (__docRoot != null) { + name = __docRoot; + } else { + throw new ValidationException("Missing name"); + } + } + __baseUri = (String) name; + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object type; + try { + type = + LoaderInstances + .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 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional streamable; + + if (__doc.containsKey("streamable")) { + try { + streamable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + streamable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `streamable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + streamable = null; + } + Object format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + java.util.Optional loadContents; + + if (__doc.containsKey("loadContents")) { + try { + loadContents = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadContents = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadContents` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadContents = null; + } + java.util.Optional loadListing; + + if (__doc.containsKey("loadListing")) { + try { + loadListing = + LoaderInstances + .optional_LoadListingEnum + .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadListing = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadListing` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadListing = null; + } + java.util.Optional inputBinding; + + if (__doc.containsKey("inputBinding")) { + try { + inputBinding = + LoaderInstances + .optional_CommandLineBinding + .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputBinding = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputBinding` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + inputBinding = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.doc = (Object) doc; + this.name = (String) name; + this.type = (Object) type; + this.label = (java.util.Optional) label; + this.secondaryFiles = (Object) secondaryFiles; + this.streamable = (java.util.Optional) streamable; + this.format = (Object) format; + this.loadContents = (java.util.Optional) loadContents; + this.loadListing = (java.util.Optional) loadListing; + this.inputBinding = (java.util.Optional) inputBinding; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("doc", "name", "type", "label", "secondaryFiles", "streamable", "format", "loadContents", "loadListing", "inputBinding"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputRecordSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputRecordSchema.java new file mode 100644 index 00000000..20b6db9d --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputRecordSchema.java @@ -0,0 +1,70 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputRecordSchema
This interface is implemented by {@link CommandInputRecordSchemaImpl}
+ */ +public interface CommandInputRecordSchema extends InputRecordSchema, CommandInputSchema, CommandLineBindable, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + java.util.Optional> getFields(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + Record_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + java.util.Optional getInputBinding(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputRecordSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputRecordSchemaImpl.java new file mode 100644 index 00000000..2c546a5f --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputRecordSchemaImpl.java @@ -0,0 +1,268 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputRecordSchema
+ */ +public class CommandInputRecordSchemaImpl extends SaveableImpl implements CommandInputRecordSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private java.util.Optional> fields; + + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + public java.util.Optional> getFields() { + return this.fields; + } + + private Record_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + public Record_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private java.util.Optional inputBinding; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + public java.util.Optional getInputBinding() { + return this.inputBinding; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of CommandInputRecordSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandInputRecordSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandInputRecordSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + java.util.Optional> fields; + + if (__doc.containsKey("fields")) { + try { + fields = + LoaderInstances + .idmap_fields_optional_array_of_CommandInputRecordField + .loadField(__doc.get("fields"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + fields = null; // won't be used but prevents compiler from complaining. + final String __message = "the `fields` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + fields = null; + } + Record_name type; + try { + type = + LoaderInstances + .typedsl_Record_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + java.util.Optional inputBinding; + + if (__doc.containsKey("inputBinding")) { + try { + inputBinding = + LoaderInstances + .optional_CommandLineBinding + .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputBinding = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputBinding` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + inputBinding = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.fields = (java.util.Optional>) fields; + this.type = (Record_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.name = (java.util.Optional) name; + this.inputBinding = (java.util.Optional) inputBinding; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("fields", "type", "label", "doc", "name", "inputBinding"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputSchema.java new file mode 100644 index 00000000..1bd47582 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandInputSchema.java @@ -0,0 +1,28 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputSchema
+ */ +public interface CommandInputSchema extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineBindable.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineBindable.java new file mode 100644 index 00000000..a4777934 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineBindable.java @@ -0,0 +1,35 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandLineBindable
This interface is implemented by {@link CommandLineBindableImpl}
+ */ +public interface CommandLineBindable extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + java.util.Optional getInputBinding(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineBindableImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineBindableImpl.java new file mode 100644 index 00000000..818a1cce --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineBindableImpl.java @@ -0,0 +1,110 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandLineBindable
+ */ +public class CommandLineBindableImpl extends SaveableImpl implements CommandLineBindable { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional inputBinding; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + public java.util.Optional getInputBinding() { + return this.inputBinding; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of CommandLineBindableImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandLineBindableImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandLineBindableImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional inputBinding; + + if (__doc.containsKey("inputBinding")) { + try { + inputBinding = + LoaderInstances + .optional_CommandLineBinding + .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputBinding = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputBinding` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + inputBinding = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.inputBinding = (java.util.Optional) inputBinding; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("inputBinding"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineBinding.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineBinding.java new file mode 100644 index 00000000..b1c37c5f --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineBinding.java @@ -0,0 +1,154 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandLineBinding
This interface is implemented by {@link CommandLineBindingImpl}
+ + When listed under `inputBinding` in the input schema, the term + "value" refers to the the corresponding value in the input object. For + binding objects listed in `CommandLineTool.arguments`, the term "value" + refers to the effective value after evaluating `valueFrom`. + + The binding behavior when building the command line depends on the data + type of the value. If there is a mismatch between the type described by + the input schema and the effective value, such as resulting from an + expression evaluation, an implementation must use the data type of the + effective value. + + - **string**: Add `prefix` and the string to the command line. + + - **number**: Add `prefix` and decimal representation to command line. + + - **boolean**: If true, add `prefix` to the command line. If false, add + nothing. + + - **File**: Add `prefix` and the value of + [`File.path`](#File) to the command line. + + - **Directory**: Add `prefix` and the value of + [`Directory.path`](#Directory) to the command line. + + - **array**: If `itemSeparator` is specified, add `prefix` and the join + the array into a single string with `itemSeparator` separating the + items. Otherwise first add `prefix`, then recursively process + individual elements. + If the array is empty, it does not add anything to command line. + + - **object**: Add `prefix` only, and recursively add object fields for + which `inputBinding` is specified. + + - **null**: Add nothing. +
+ */ +public interface CommandLineBinding extends InputBinding, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#InputBinding/loadContents
+ *
+ * Use of `loadContents` in `InputBinding` is deprecated. + * Preserved for v1.0 backwards compatability. Will be removed in + * CWL v2.0. Use `InputParameter.loadContents` instead. + * + * Only valid when `type: File` or is an array of `items: File`. + * + * Read up to the first 64 KiB of text from the file and place it in the + * "contents" field of the file object for use by expressions. + * *
+ */ + + java.util.Optional getLoadContents(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/position
+ *
+ * The sorting key. Default position is 0. If the inputBinding is + * associated with an input parameter, then the value of `self` in the + * expression will be the value of the input parameter. Input parameter + * defaults (as specified by the `InputParameter.default` field) must be + * applied before evaluating the expression. Expressions must return a + * single value of type int or a null. + * *
+ */ + + Object getPosition(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/prefix
+ *
+ * Command line prefix to add before the value. *
+ */ + + java.util.Optional getPrefix(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/separate
+ *
+ * If true (default), then the prefix and value must be added as separate + * command line arguments; if false, prefix and value must be concatenated + * into a single command line argument. + * *
+ */ + + java.util.Optional getSeparate(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/itemSeparator
+ *
+ * Join the array elements into a single string with the elements + * separated by by `itemSeparator`. + * *
+ */ + + java.util.Optional getItemSeparator(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/valueFrom
+ *
+ * If `valueFrom` is a constant string value, use this as the value and + * apply the binding rules above. + * + * If `valueFrom` is an expression, evaluate the expression to yield the + * actual value to use to build the command line and apply the binding + * rules above. If the inputBinding is associated with an input + * parameter, the value of `self` in the expression will be the value of + * the input parameter. Input parameter defaults (as specified by the + * `InputParameter.default` field) must be applied before evaluating the + * expression. + * + * If the value of the associated input parameter is `null`, `valueFrom` is + * not evaluated and nothing is added to the command line. + * + * When a binding is part of the `CommandLineTool.arguments` field, + * the `valueFrom` field is required. + * *
+ */ + + Object getValueFrom(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/shellQuote
+ *
+ * If `ShellCommandRequirement` is in the requirements for the current command, + * this controls whether the value is quoted on the command line (default is true). + * Use `shellQuote: false` to inject metacharacters for operations such as pipes. + * + * If `shellQuote` is true or not provided, the implementation must not + * permit interpretation of any shell metacharacters or directives. + * *
+ */ + + java.util.Optional getShellQuote(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineBindingImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineBindingImpl.java new file mode 100644 index 00000000..6e7a6deb --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineBindingImpl.java @@ -0,0 +1,367 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandLineBinding
+ + When listed under `inputBinding` in the input schema, the term + "value" refers to the the corresponding value in the input object. For + binding objects listed in `CommandLineTool.arguments`, the term "value" + refers to the effective value after evaluating `valueFrom`. + + The binding behavior when building the command line depends on the data + type of the value. If there is a mismatch between the type described by + the input schema and the effective value, such as resulting from an + expression evaluation, an implementation must use the data type of the + effective value. + + - **string**: Add `prefix` and the string to the command line. + + - **number**: Add `prefix` and decimal representation to command line. + + - **boolean**: If true, add `prefix` to the command line. If false, add + nothing. + + - **File**: Add `prefix` and the value of + [`File.path`](#File) to the command line. + + - **Directory**: Add `prefix` and the value of + [`Directory.path`](#Directory) to the command line. + + - **array**: If `itemSeparator` is specified, add `prefix` and the join + the array into a single string with `itemSeparator` separating the + items. Otherwise first add `prefix`, then recursively process + individual elements. + If the array is empty, it does not add anything to command line. + + - **object**: Add `prefix` only, and recursively add object fields for + which `inputBinding` is specified. + + - **null**: Add nothing. +
+ */ +public class CommandLineBindingImpl extends SaveableImpl implements CommandLineBinding { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional loadContents; + + /** + * Getter for property https://w3id.org/cwl/cwl#InputBinding/loadContents
+ *
+ * Use of `loadContents` in `InputBinding` is deprecated. + * Preserved for v1.0 backwards compatability. Will be removed in + * CWL v2.0. Use `InputParameter.loadContents` instead. + * + * Only valid when `type: File` or is an array of `items: File`. + * + * Read up to the first 64 KiB of text from the file and place it in the + * "contents" field of the file object for use by expressions. + * *
+ */ + + public java.util.Optional getLoadContents() { + return this.loadContents; + } + + private Object position; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/position
+ *
+ * The sorting key. Default position is 0. If the inputBinding is + * associated with an input parameter, then the value of `self` in the + * expression will be the value of the input parameter. Input parameter + * defaults (as specified by the `InputParameter.default` field) must be + * applied before evaluating the expression. Expressions must return a + * single value of type int or a null. + * *
+ */ + + public Object getPosition() { + return this.position; + } + + private java.util.Optional prefix; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/prefix
+ *
+ * Command line prefix to add before the value. *
+ */ + + public java.util.Optional getPrefix() { + return this.prefix; + } + + private java.util.Optional separate; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/separate
+ *
+ * If true (default), then the prefix and value must be added as separate + * command line arguments; if false, prefix and value must be concatenated + * into a single command line argument. + * *
+ */ + + public java.util.Optional getSeparate() { + return this.separate; + } + + private java.util.Optional itemSeparator; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/itemSeparator
+ *
+ * Join the array elements into a single string with the elements + * separated by by `itemSeparator`. + * *
+ */ + + public java.util.Optional getItemSeparator() { + return this.itemSeparator; + } + + private Object valueFrom; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/valueFrom
+ *
+ * If `valueFrom` is a constant string value, use this as the value and + * apply the binding rules above. + * + * If `valueFrom` is an expression, evaluate the expression to yield the + * actual value to use to build the command line and apply the binding + * rules above. If the inputBinding is associated with an input + * parameter, the value of `self` in the expression will be the value of + * the input parameter. Input parameter defaults (as specified by the + * `InputParameter.default` field) must be applied before evaluating the + * expression. + * + * If the value of the associated input parameter is `null`, `valueFrom` is + * not evaluated and nothing is added to the command line. + * + * When a binding is part of the `CommandLineTool.arguments` field, + * the `valueFrom` field is required. + * *
+ */ + + public Object getValueFrom() { + return this.valueFrom; + } + + private java.util.Optional shellQuote; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/shellQuote
+ *
+ * If `ShellCommandRequirement` is in the requirements for the current command, + * this controls whether the value is quoted on the command line (default is true). + * Use `shellQuote: false` to inject metacharacters for operations such as pipes. + * + * If `shellQuote` is true or not provided, the implementation must not + * permit interpretation of any shell metacharacters or directives. + * *
+ */ + + public java.util.Optional getShellQuote() { + return this.shellQuote; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of CommandLineBindingImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandLineBindingImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandLineBindingImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional loadContents; + + if (__doc.containsKey("loadContents")) { + try { + loadContents = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadContents = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadContents` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadContents = null; + } + Object position; + + if (__doc.containsKey("position")) { + try { + position = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_ExpressionLoader + .loadField(__doc.get("position"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + position = null; // won't be used but prevents compiler from complaining. + final String __message = "the `position` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + position = null; + } + java.util.Optional prefix; + + if (__doc.containsKey("prefix")) { + try { + prefix = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("prefix"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + prefix = null; // won't be used but prevents compiler from complaining. + final String __message = "the `prefix` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + prefix = null; + } + java.util.Optional separate; + + if (__doc.containsKey("separate")) { + try { + separate = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("separate"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + separate = null; // won't be used but prevents compiler from complaining. + final String __message = "the `separate` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + separate = null; + } + java.util.Optional itemSeparator; + + if (__doc.containsKey("itemSeparator")) { + try { + itemSeparator = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("itemSeparator"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + itemSeparator = null; // won't be used but prevents compiler from complaining. + final String __message = "the `itemSeparator` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + itemSeparator = null; + } + Object valueFrom; + + if (__doc.containsKey("valueFrom")) { + try { + valueFrom = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_ExpressionLoader + .loadField(__doc.get("valueFrom"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + valueFrom = null; // won't be used but prevents compiler from complaining. + final String __message = "the `valueFrom` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + valueFrom = null; + } + java.util.Optional shellQuote; + + if (__doc.containsKey("shellQuote")) { + try { + shellQuote = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("shellQuote"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + shellQuote = null; // won't be used but prevents compiler from complaining. + final String __message = "the `shellQuote` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + shellQuote = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.loadContents = (java.util.Optional) loadContents; + this.position = (Object) position; + this.prefix = (java.util.Optional) prefix; + this.separate = (java.util.Optional) separate; + this.itemSeparator = (java.util.Optional) itemSeparator; + this.valueFrom = (Object) valueFrom; + this.shellQuote = (java.util.Optional) shellQuote; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("loadContents", "position", "prefix", "separate", "itemSeparator", "valueFrom", "shellQuote"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineTool.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineTool.java new file mode 100644 index 00000000..56602b42 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineTool.java @@ -0,0 +1,216 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandLineTool
This interface is implemented by {@link CommandLineToolImpl}
+ This defines the schema of the CWL Command Line Tool Description document. +
+ */ +public interface CommandLineTool extends Process, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/class
+ + */ + + CommandLineTool_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#inputs
+ *
+ * Defines the input parameters of the process. The process is ready to + * run when all required input parameters are associated with concrete + * values. Input parameters include a schema for each parameter which is + * used to validate the input object. It may also be used to build a user + * interface for constructing the input object. + * + * When accepting an input object, all input parameters must have a value. + * If an input parameter is missing from the input object, it must be + * assigned a value of `null` (or the value of `default` for that + * parameter, if provided) for the purposes of validation and evaluation + * of expressions. + * *
+ */ + + java.util.List getInputs(); + /** + * Getter for property https://w3id.org/cwl/cwl#outputs
+ *
+ * Defines the parameters representing the output of the process. May be + * used to generate and/or validate the output object. + * *
+ */ + + java.util.List getOutputs(); + /** + * Getter for property https://w3id.org/cwl/cwl#requirements
+ *
+ * Declares requirements that apply to either the runtime environment or the + * workflow engine that must be met in order to execute this process. If + * an implementation cannot satisfy all requirements, or a requirement is + * listed which is not recognized by the implementation, it is a fatal + * error and the implementation must not attempt to run the process, + * unless overridden at user option. + * *
+ */ + + java.util.Optional> getRequirements(); + /** + * Getter for property https://w3id.org/cwl/cwl#hints
+ *
+ * Declares hints applying to either the runtime environment or the + * workflow engine that may be helpful in executing this process. It is + * not an error if an implementation cannot satisfy all hints, however + * the implementation may report a warning. + * *
+ */ + + java.util.Optional> getHints(); + /** + * Getter for property https://w3id.org/cwl/cwl#cwlVersion
+ *
+ * CWL document version. Always required at the document root. Not + * required for a Process embedded inside another Process. + * *
+ */ + + java.util.Optional getCwlVersion(); + /** + * Getter for property https://w3id.org/cwl/cwl#baseCommand
+ *
+ * Specifies the program to execute. If an array, the first element of + * the array is the command to execute, and subsequent elements are + * mandatory command line arguments. The elements in `baseCommand` must + * appear before any command line bindings from `inputBinding` or + * `arguments`. + * + * If `baseCommand` is not provided or is an empty array, the first + * element of the command line produced after processing `inputBinding` or + * `arguments` must be used as the program to execute. + * + * If the program includes a path separator character it must + * be an absolute path, otherwise it is an error. If the program does not + * include a path separator, search the `$PATH` variable in the runtime + * environment of the workflow runner find the absolute path of the + * executable. + * *
+ */ + + Object getBaseCommand(); + /** + * Getter for property https://w3id.org/cwl/cwl#arguments
+ *
+ * Command line bindings which are not directly associated with input + * parameters. If the value is a string, it is used as a string literal + * argument. If it is an Expression, the result of the evaluation is used + * as an argument. + * *
+ */ + + java.util.Optional> getArguments(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stdin
+ *
+ * A path to a file whose contents must be piped into the command's + * standard input stream. + * *
+ */ + + Object getStdin(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stderr
+ *
+ * Capture the command's standard error stream to a file written to + * the designated output directory. + * + * If `stderr` is a string, it specifies the file name to use. + * + * If `stderr` is an expression, the expression is evaluated and must + * return a string with the file name to use to capture stderr. If the + * return value is not a string, or the resulting path contains illegal + * characters (such as the path separator `/`) it is an error. + * *
+ */ + + Object getStderr(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stdout
+ *
+ * Capture the command's standard output stream to a file written to + * the designated output directory. + * + * If `stdout` is a string, it specifies the file name to use. + * + * If `stdout` is an expression, the expression is evaluated and must + * return a string with the file name to use to capture stdout. If the + * return value is not a string, or the resulting path contains illegal + * characters (such as the path separator `/`) it is an error. + * *
+ */ + + Object getStdout(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/successCodes
+ *
+ * Exit codes that indicate the process completed successfully. + * *
+ */ + + java.util.Optional> getSuccessCodes(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/temporaryFailCodes
+ *
+ * Exit codes that indicate the process failed due to a possibly + * temporary condition, where executing the process with the same + * runtime environment and inputs may produce different results. + * *
+ */ + + java.util.Optional> getTemporaryFailCodes(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/permanentFailCodes
+ *
+ * Exit codes that indicate the process failed due to a permanent logic error, where executing the process with the same runtime environment and same inputs is expected to always fail. *
+ */ + + java.util.Optional> getPermanentFailCodes(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineToolImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineToolImpl.java new file mode 100644 index 00000000..09b01b2b --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineToolImpl.java @@ -0,0 +1,655 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandLineTool
+ This defines the schema of the CWL Command Line Tool Description document. +
+ */ +public class CommandLineToolImpl extends SaveableImpl implements CommandLineTool { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private CommandLineTool_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/class
+ + */ + + public CommandLineTool_class getClass_() { + return this.class_; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private java.util.List inputs; + + /** + * Getter for property https://w3id.org/cwl/cwl#inputs
+ *
+ * Defines the input parameters of the process. The process is ready to + * run when all required input parameters are associated with concrete + * values. Input parameters include a schema for each parameter which is + * used to validate the input object. It may also be used to build a user + * interface for constructing the input object. + * + * When accepting an input object, all input parameters must have a value. + * If an input parameter is missing from the input object, it must be + * assigned a value of `null` (or the value of `default` for that + * parameter, if provided) for the purposes of validation and evaluation + * of expressions. + * *
+ */ + + public java.util.List getInputs() { + return this.inputs; + } + + private java.util.List outputs; + + /** + * Getter for property https://w3id.org/cwl/cwl#outputs
+ *
+ * Defines the parameters representing the output of the process. May be + * used to generate and/or validate the output object. + * *
+ */ + + public java.util.List getOutputs() { + return this.outputs; + } + + private java.util.Optional> requirements; + + /** + * Getter for property https://w3id.org/cwl/cwl#requirements
+ *
+ * Declares requirements that apply to either the runtime environment or the + * workflow engine that must be met in order to execute this process. If + * an implementation cannot satisfy all requirements, or a requirement is + * listed which is not recognized by the implementation, it is a fatal + * error and the implementation must not attempt to run the process, + * unless overridden at user option. + * *
+ */ + + public java.util.Optional> getRequirements() { + return this.requirements; + } + + private java.util.Optional> hints; + + /** + * Getter for property https://w3id.org/cwl/cwl#hints
+ *
+ * Declares hints applying to either the runtime environment or the + * workflow engine that may be helpful in executing this process. It is + * not an error if an implementation cannot satisfy all hints, however + * the implementation may report a warning. + * *
+ */ + + public java.util.Optional> getHints() { + return this.hints; + } + + private java.util.Optional cwlVersion; + + /** + * Getter for property https://w3id.org/cwl/cwl#cwlVersion
+ *
+ * CWL document version. Always required at the document root. Not + * required for a Process embedded inside another Process. + * *
+ */ + + public java.util.Optional getCwlVersion() { + return this.cwlVersion; + } + + private Object baseCommand; + + /** + * Getter for property https://w3id.org/cwl/cwl#baseCommand
+ *
+ * Specifies the program to execute. If an array, the first element of + * the array is the command to execute, and subsequent elements are + * mandatory command line arguments. The elements in `baseCommand` must + * appear before any command line bindings from `inputBinding` or + * `arguments`. + * + * If `baseCommand` is not provided or is an empty array, the first + * element of the command line produced after processing `inputBinding` or + * `arguments` must be used as the program to execute. + * + * If the program includes a path separator character it must + * be an absolute path, otherwise it is an error. If the program does not + * include a path separator, search the `$PATH` variable in the runtime + * environment of the workflow runner find the absolute path of the + * executable. + * *
+ */ + + public Object getBaseCommand() { + return this.baseCommand; + } + + private java.util.Optional> arguments; + + /** + * Getter for property https://w3id.org/cwl/cwl#arguments
+ *
+ * Command line bindings which are not directly associated with input + * parameters. If the value is a string, it is used as a string literal + * argument. If it is an Expression, the result of the evaluation is used + * as an argument. + * *
+ */ + + public java.util.Optional> getArguments() { + return this.arguments; + } + + private Object stdin; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stdin
+ *
+ * A path to a file whose contents must be piped into the command's + * standard input stream. + * *
+ */ + + public Object getStdin() { + return this.stdin; + } + + private Object stderr; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stderr
+ *
+ * Capture the command's standard error stream to a file written to + * the designated output directory. + * + * If `stderr` is a string, it specifies the file name to use. + * + * If `stderr` is an expression, the expression is evaluated and must + * return a string with the file name to use to capture stderr. If the + * return value is not a string, or the resulting path contains illegal + * characters (such as the path separator `/`) it is an error. + * *
+ */ + + public Object getStderr() { + return this.stderr; + } + + private Object stdout; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stdout
+ *
+ * Capture the command's standard output stream to a file written to + * the designated output directory. + * + * If `stdout` is a string, it specifies the file name to use. + * + * If `stdout` is an expression, the expression is evaluated and must + * return a string with the file name to use to capture stdout. If the + * return value is not a string, or the resulting path contains illegal + * characters (such as the path separator `/`) it is an error. + * *
+ */ + + public Object getStdout() { + return this.stdout; + } + + private java.util.Optional> successCodes; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/successCodes
+ *
+ * Exit codes that indicate the process completed successfully. + * *
+ */ + + public java.util.Optional> getSuccessCodes() { + return this.successCodes; + } + + private java.util.Optional> temporaryFailCodes; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/temporaryFailCodes
+ *
+ * Exit codes that indicate the process failed due to a possibly + * temporary condition, where executing the process with the same + * runtime environment and inputs may produce different results. + * *
+ */ + + public java.util.Optional> getTemporaryFailCodes() { + return this.temporaryFailCodes; + } + + private java.util.Optional> permanentFailCodes; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/permanentFailCodes
+ *
+ * Exit codes that indicate the process failed due to a permanent logic error, where executing the process with the same runtime environment and same inputs is expected to always fail. *
+ */ + + public java.util.Optional> getPermanentFailCodes() { + return this.permanentFailCodes; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of CommandLineToolImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandLineToolImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandLineToolImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + CommandLineTool_class class_; + try { + class_ = + LoaderInstances + .uri_CommandLineTool_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + java.util.List inputs; + try { + inputs = + LoaderInstances + .idmap_inputs_array_of_CommandInputParameter + .loadField(__doc.get("inputs"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputs = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputs` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.List outputs; + try { + outputs = + LoaderInstances + .idmap_outputs_array_of_CommandOutputParameter + .loadField(__doc.get("outputs"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + outputs = null; // won't be used but prevents compiler from complaining. + final String __message = "the `outputs` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional> requirements; + + if (__doc.containsKey("requirements")) { + try { + requirements = + LoaderInstances + .idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement + .loadField(__doc.get("requirements"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + requirements = null; // won't be used but prevents compiler from complaining. + final String __message = "the `requirements` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + requirements = null; + } + java.util.Optional> hints; + + if (__doc.containsKey("hints")) { + try { + hints = + LoaderInstances + .idmap_hints_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance + .loadField(__doc.get("hints"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + hints = null; // won't be used but prevents compiler from complaining. + final String __message = "the `hints` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + hints = null; + } + java.util.Optional cwlVersion; + + if (__doc.containsKey("cwlVersion")) { + try { + cwlVersion = + LoaderInstances + .uri_optional_CWLVersion_False_True_None_None + .loadField(__doc.get("cwlVersion"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + cwlVersion = null; // won't be used but prevents compiler from complaining. + final String __message = "the `cwlVersion` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + cwlVersion = null; + } + Object baseCommand; + + if (__doc.containsKey("baseCommand")) { + try { + baseCommand = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("baseCommand"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + baseCommand = null; // won't be used but prevents compiler from complaining. + final String __message = "the `baseCommand` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + baseCommand = null; + } + java.util.Optional> arguments; + + if (__doc.containsKey("arguments")) { + try { + arguments = + LoaderInstances + .optional_array_of_union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding + .loadField(__doc.get("arguments"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + arguments = null; // won't be used but prevents compiler from complaining. + final String __message = "the `arguments` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + arguments = null; + } + Object stdin; + + if (__doc.containsKey("stdin")) { + try { + stdin = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_ExpressionLoader + .loadField(__doc.get("stdin"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + stdin = null; // won't be used but prevents compiler from complaining. + final String __message = "the `stdin` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + stdin = null; + } + Object stderr; + + if (__doc.containsKey("stderr")) { + try { + stderr = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_ExpressionLoader + .loadField(__doc.get("stderr"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + stderr = null; // won't be used but prevents compiler from complaining. + final String __message = "the `stderr` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + stderr = null; + } + Object stdout; + + if (__doc.containsKey("stdout")) { + try { + stdout = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_ExpressionLoader + .loadField(__doc.get("stdout"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + stdout = null; // won't be used but prevents compiler from complaining. + final String __message = "the `stdout` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + stdout = null; + } + java.util.Optional> successCodes; + + if (__doc.containsKey("successCodes")) { + try { + successCodes = + LoaderInstances + .optional_array_of_IntegerInstance + .loadField(__doc.get("successCodes"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + successCodes = null; // won't be used but prevents compiler from complaining. + final String __message = "the `successCodes` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + successCodes = null; + } + java.util.Optional> temporaryFailCodes; + + if (__doc.containsKey("temporaryFailCodes")) { + try { + temporaryFailCodes = + LoaderInstances + .optional_array_of_IntegerInstance + .loadField(__doc.get("temporaryFailCodes"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + temporaryFailCodes = null; // won't be used but prevents compiler from complaining. + final String __message = "the `temporaryFailCodes` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + temporaryFailCodes = null; + } + java.util.Optional> permanentFailCodes; + + if (__doc.containsKey("permanentFailCodes")) { + try { + permanentFailCodes = + LoaderInstances + .optional_array_of_IntegerInstance + .loadField(__doc.get("permanentFailCodes"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + permanentFailCodes = null; // won't be used but prevents compiler from complaining. + final String __message = "the `permanentFailCodes` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + permanentFailCodes = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.id = (java.util.Optional) id; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.inputs = (java.util.List) inputs; + this.outputs = (java.util.List) outputs; + this.requirements = (java.util.Optional>) requirements; + this.hints = (java.util.Optional>) hints; + this.cwlVersion = (java.util.Optional) cwlVersion; + this.class_ = (CommandLineTool_class) class_; + this.baseCommand = (Object) baseCommand; + this.arguments = (java.util.Optional>) arguments; + this.stdin = (Object) stdin; + this.stderr = (Object) stderr; + this.stdout = (Object) stdout; + this.successCodes = (java.util.Optional>) successCodes; + this.temporaryFailCodes = (java.util.Optional>) temporaryFailCodes; + this.permanentFailCodes = (java.util.Optional>) permanentFailCodes; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("id", "label", "doc", "inputs", "outputs", "requirements", "hints", "cwlVersion", "class", "baseCommand", "arguments", "stdin", "stderr", "stdout", "successCodes", "temporaryFailCodes", "permanentFailCodes"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineTool_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineTool_class.java new file mode 100644 index 00000000..2f18bc27 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandLineTool_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum CommandLineTool_class { + COMMANDLINETOOL("CommandLineTool"); + + private static String[] symbols = new String[] {"CommandLineTool"}; + private String docVal; + + private CommandLineTool_class(final String docVal) { + this.docVal = docVal; + } + + public static CommandLineTool_class fromDocumentVal(final String docVal) { + for(final CommandLineTool_class val : CommandLineTool_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", CommandLineTool_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputArraySchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputArraySchema.java new file mode 100644 index 00000000..ce2a0994 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputArraySchema.java @@ -0,0 +1,63 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputArraySchema
This interface is implemented by {@link CommandOutputArraySchemaImpl}
+ */ +public interface CommandOutputArraySchema extends OutputArraySchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + Object getItems(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + Array_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputArraySchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputArraySchemaImpl.java new file mode 100644 index 00000000..44253996 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputArraySchemaImpl.java @@ -0,0 +1,232 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputArraySchema
+ */ +public class CommandOutputArraySchemaImpl extends SaveableImpl implements CommandOutputArraySchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private Object items; + + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + public Object getItems() { + return this.items; + } + + private Array_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + public Array_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of CommandOutputArraySchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandOutputArraySchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandOutputArraySchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + Object items; + try { + items = + LoaderInstances + .uri_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_False_True_2_None + .loadField(__doc.get("items"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + items = null; // won't be used but prevents compiler from complaining. + final String __message = "the `items` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Array_name type; + try { + type = + LoaderInstances + .typedsl_Array_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.items = (Object) items; + this.type = (Array_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.name = (java.util.Optional) name; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("items", "type", "label", "doc", "name"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputBinding.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputBinding.java new file mode 100644 index 00000000..0eaf3c1a --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputBinding.java @@ -0,0 +1,125 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputBinding
This interface is implemented by {@link CommandOutputBindingImpl}
+ Describes how to generate an output parameter based on the files produced + by a CommandLineTool. + + The output parameter value is generated by applying these operations in the + following order: + + - glob + - loadContents + - outputEval + - secondaryFiles +
+ */ +public interface CommandOutputBinding extends LoadContents, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Read up to the first 64 KiB of text from the file and place it in the + * "contents" field of the file object for use by expressions. + * *
+ */ + + java.util.Optional getLoadContents(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + java.util.Optional getLoadListing(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandOutputBinding/glob
+ *
+ * Find files or directories relative to the output directory, using POSIX + * glob(3) pathname matching. If an array is provided, find files or + * directories that match any pattern in the array. If an expression is + * provided, the expression must return a string or an array of strings, + * which will then be evaluated as one or more glob patterns. Must only + * match and return files/directories which actually exist. + * + * If the value of glob is a relative path pattern (does not + * begin with a slash '/') then it is resolved relative to the + * output directory. If the value of the glob is an absolute + * path pattern (it does begin with a slash '/') then it must + * refer to a path within the output directory. It is an error + * if any glob resolves to a path outside the output directory. + * Specifically this means globs that resolve to paths outside the output + * directory are illegal. + * + * A glob may match a path within the output directory which is + * actually a symlink to another file. In this case, the + * expected behavior is for the resulting File/Directory object to take the + * `basename` (and corresponding `nameroot` and `nameext`) of the + * symlink. The `location` of the File/Directory is implementation + * dependent, but logically the File/Directory should have the same content + * as the symlink target. Platforms may stage output files/directories to + * cloud storage that lack the concept of a symlink. In + * this case file content and directories may be duplicated, or (to avoid + * duplication) the File/Directory `location` may refer to the symlink + * target. + * + * It is an error if a symlink in the output directory (or any + * symlink in a chain of links) refers to any file or directory + * that is not under an input or output directory. + * + * Implementations may shut down a container before globbing + * output, so globs and expressions must not assume access to the + * container filesystem except for declared input and output. + * *
+ */ + + Object getGlob(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandOutputBinding/outputEval
+ *
+ * Evaluate an expression to generate the output value. If + * `glob` was specified, the value of `self` must be an array + * containing file objects that were matched. If no files were + * matched, `self` must be a zero length array; if a single file + * was matched, the value of `self` is an array of a single + * element. Additionally, if `loadContents` is `true`, the File + * objects must include up to the first 64 KiB of file contents + * in the `contents` field. The exit code of the process is + * available in the expression as `runtime.exitCode`. + * *
+ */ + + java.util.Optional getOutputEval(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputBindingImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputBindingImpl.java new file mode 100644 index 00000000..cadccac1 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputBindingImpl.java @@ -0,0 +1,269 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputBinding
+ Describes how to generate an output parameter based on the files produced + by a CommandLineTool. + + The output parameter value is generated by applying these operations in the + following order: + + - glob + - loadContents + - outputEval + - secondaryFiles +
+ */ +public class CommandOutputBindingImpl extends SaveableImpl implements CommandOutputBinding { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional loadContents; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Read up to the first 64 KiB of text from the file and place it in the + * "contents" field of the file object for use by expressions. + * *
+ */ + + public java.util.Optional getLoadContents() { + return this.loadContents; + } + + private java.util.Optional loadListing; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + public java.util.Optional getLoadListing() { + return this.loadListing; + } + + private Object glob; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandOutputBinding/glob
+ *
+ * Find files or directories relative to the output directory, using POSIX + * glob(3) pathname matching. If an array is provided, find files or + * directories that match any pattern in the array. If an expression is + * provided, the expression must return a string or an array of strings, + * which will then be evaluated as one or more glob patterns. Must only + * match and return files/directories which actually exist. + * + * If the value of glob is a relative path pattern (does not + * begin with a slash '/') then it is resolved relative to the + * output directory. If the value of the glob is an absolute + * path pattern (it does begin with a slash '/') then it must + * refer to a path within the output directory. It is an error + * if any glob resolves to a path outside the output directory. + * Specifically this means globs that resolve to paths outside the output + * directory are illegal. + * + * A glob may match a path within the output directory which is + * actually a symlink to another file. In this case, the + * expected behavior is for the resulting File/Directory object to take the + * `basename` (and corresponding `nameroot` and `nameext`) of the + * symlink. The `location` of the File/Directory is implementation + * dependent, but logically the File/Directory should have the same content + * as the symlink target. Platforms may stage output files/directories to + * cloud storage that lack the concept of a symlink. In + * this case file content and directories may be duplicated, or (to avoid + * duplication) the File/Directory `location` may refer to the symlink + * target. + * + * It is an error if a symlink in the output directory (or any + * symlink in a chain of links) refers to any file or directory + * that is not under an input or output directory. + * + * Implementations may shut down a container before globbing + * output, so globs and expressions must not assume access to the + * container filesystem except for declared input and output. + * *
+ */ + + public Object getGlob() { + return this.glob; + } + + private java.util.Optional outputEval; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandOutputBinding/outputEval
+ *
+ * Evaluate an expression to generate the output value. If + * `glob` was specified, the value of `self` must be an array + * containing file objects that were matched. If no files were + * matched, `self` must be a zero length array; if a single file + * was matched, the value of `self` is an array of a single + * element. Additionally, if `loadContents` is `true`, the File + * objects must include up to the first 64 KiB of file contents + * in the `contents` field. The exit code of the process is + * available in the expression as `runtime.exitCode`. + * *
+ */ + + public java.util.Optional getOutputEval() { + return this.outputEval; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of CommandOutputBindingImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandOutputBindingImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandOutputBindingImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional loadContents; + + if (__doc.containsKey("loadContents")) { + try { + loadContents = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadContents = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadContents` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadContents = null; + } + java.util.Optional loadListing; + + if (__doc.containsKey("loadListing")) { + try { + loadListing = + LoaderInstances + .optional_LoadListingEnum + .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadListing = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadListing` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadListing = null; + } + Object glob; + + if (__doc.containsKey("glob")) { + try { + glob = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_ExpressionLoader_or_array_of_StringInstance + .loadField(__doc.get("glob"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + glob = null; // won't be used but prevents compiler from complaining. + final String __message = "the `glob` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + glob = null; + } + java.util.Optional outputEval; + + if (__doc.containsKey("outputEval")) { + try { + outputEval = + LoaderInstances + .optional_ExpressionLoader + .loadField(__doc.get("outputEval"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + outputEval = null; // won't be used but prevents compiler from complaining. + final String __message = "the `outputEval` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + outputEval = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.loadContents = (java.util.Optional) loadContents; + this.loadListing = (java.util.Optional) loadListing; + this.glob = (Object) glob; + this.outputEval = (java.util.Optional) outputEval; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("loadContents", "loadListing", "glob", "outputEval"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputEnumSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputEnumSchema.java new file mode 100644 index 00000000..bd5625b6 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputEnumSchema.java @@ -0,0 +1,63 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputEnumSchema
This interface is implemented by {@link CommandOutputEnumSchemaImpl}
+ */ +public interface CommandOutputEnumSchema extends OutputEnumSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + java.util.List getSymbols(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + Enum_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputEnumSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputEnumSchemaImpl.java new file mode 100644 index 00000000..136bbd2d --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputEnumSchemaImpl.java @@ -0,0 +1,232 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputEnumSchema
+ */ +public class CommandOutputEnumSchemaImpl extends SaveableImpl implements CommandOutputEnumSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private java.util.List symbols; + + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + public java.util.List getSymbols() { + return this.symbols; + } + + private Enum_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + public Enum_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of CommandOutputEnumSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandOutputEnumSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandOutputEnumSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + java.util.List symbols; + try { + symbols = + LoaderInstances + .uri_array_of_StringInstance_True_False_None_None + .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + symbols = null; // won't be used but prevents compiler from complaining. + final String __message = "the `symbols` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Enum_name type; + try { + type = + LoaderInstances + .typedsl_Enum_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.name = (java.util.Optional) name; + this.symbols = (java.util.List) symbols; + this.type = (Enum_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("name", "symbols", "type", "label", "doc"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputParameter.java new file mode 100644 index 00000000..86153645 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputParameter.java @@ -0,0 +1,137 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputParameter
This interface is implemented by {@link CommandOutputParameterImpl}
+ An output parameter for a CommandLineTool.
+ */ +public interface CommandOutputParameter extends OutputParameter, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + Object getFormat(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * *
+ */ + + Object getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandOutputParameter/outputBinding
+ *
+ * Describes how to generate this output object based on the files produced by a CommandLineTool *
+ */ + + java.util.Optional getOutputBinding(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputParameterImpl.java new file mode 100644 index 00000000..e39a9a03 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputParameterImpl.java @@ -0,0 +1,381 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputParameter
+ An output parameter for a CommandLineTool.
+ */ +public class CommandOutputParameterImpl extends SaveableImpl implements CommandOutputParameter { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional streamable; + + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + public java.util.Optional getStreamable() { + return this.streamable; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + public Object getFormat() { + return this.format; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * *
+ */ + + public Object getType() { + return this.type; + } + + private java.util.Optional outputBinding; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandOutputParameter/outputBinding
+ *
+ * Describes how to generate this output object based on the files produced by a CommandLineTool *
+ */ + + public java.util.Optional getOutputBinding() { + return this.outputBinding; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of CommandOutputParameterImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandOutputParameterImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandOutputParameterImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional streamable; + + if (__doc.containsKey("streamable")) { + try { + streamable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + streamable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `streamable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + streamable = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + Object type; + try { + type = + LoaderInstances + .typedsl_union_of_CWLType_or_stdout_or_stderr_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional outputBinding; + + if (__doc.containsKey("outputBinding")) { + try { + outputBinding = + LoaderInstances + .optional_CommandOutputBinding + .loadField(__doc.get("outputBinding"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + outputBinding = null; // won't be used but prevents compiler from complaining. + final String __message = "the `outputBinding` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + outputBinding = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.label = (java.util.Optional) label; + this.secondaryFiles = (Object) secondaryFiles; + this.streamable = (java.util.Optional) streamable; + this.doc = (Object) doc; + this.id = (java.util.Optional) id; + this.format = (Object) format; + this.type = (Object) type; + this.outputBinding = (java.util.Optional) outputBinding; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("label", "secondaryFiles", "streamable", "doc", "id", "format", "type", "outputBinding"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputRecordField.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputRecordField.java new file mode 100644 index 00000000..538ee909 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputRecordField.java @@ -0,0 +1,139 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputRecordField
This interface is implemented by {@link CommandOutputRecordFieldImpl}
+ */ +public interface CommandOutputRecordField extends OutputRecordField, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + String getName(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + Object getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + Object getFormat(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandOutputRecordField/outputBinding
+ *
+ * Describes how to generate this output object based on the files + * produced by a CommandLineTool + * *
+ */ + + java.util.Optional getOutputBinding(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputRecordFieldImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputRecordFieldImpl.java new file mode 100644 index 00000000..bf765d25 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputRecordFieldImpl.java @@ -0,0 +1,378 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputRecordField
+ */ +public class CommandOutputRecordFieldImpl extends SaveableImpl implements CommandOutputRecordField { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private String name; + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + public String getName() { + return this.name; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + public Object getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional streamable; + + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + public java.util.Optional getStreamable() { + return this.streamable; + } + + private Object format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + public Object getFormat() { + return this.format; + } + + private java.util.Optional outputBinding; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandOutputRecordField/outputBinding
+ *
+ * Describes how to generate this output object based on the files + * produced by a CommandLineTool + * *
+ */ + + public java.util.Optional getOutputBinding() { + return this.outputBinding; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of CommandOutputRecordFieldImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandOutputRecordFieldImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandOutputRecordFieldImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + String name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + if (name == null) { + if (__docRoot != null) { + name = __docRoot; + } else { + throw new ValidationException("Missing name"); + } + } + __baseUri = (String) name; + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object type; + try { + type = + LoaderInstances + .typedsl_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional streamable; + + if (__doc.containsKey("streamable")) { + try { + streamable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + streamable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `streamable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + streamable = null; + } + Object format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + java.util.Optional outputBinding; + + if (__doc.containsKey("outputBinding")) { + try { + outputBinding = + LoaderInstances + .optional_CommandOutputBinding + .loadField(__doc.get("outputBinding"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + outputBinding = null; // won't be used but prevents compiler from complaining. + final String __message = "the `outputBinding` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + outputBinding = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.doc = (Object) doc; + this.name = (String) name; + this.type = (Object) type; + this.label = (java.util.Optional) label; + this.secondaryFiles = (Object) secondaryFiles; + this.streamable = (java.util.Optional) streamable; + this.format = (Object) format; + this.outputBinding = (java.util.Optional) outputBinding; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("doc", "name", "type", "label", "secondaryFiles", "streamable", "format", "outputBinding"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputRecordSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputRecordSchema.java new file mode 100644 index 00000000..af27b61d --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputRecordSchema.java @@ -0,0 +1,63 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputRecordSchema
This interface is implemented by {@link CommandOutputRecordSchemaImpl}
+ */ +public interface CommandOutputRecordSchema extends OutputRecordSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + java.util.Optional> getFields(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + Record_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputRecordSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputRecordSchemaImpl.java new file mode 100644 index 00000000..36219652 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/CommandOutputRecordSchemaImpl.java @@ -0,0 +1,238 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputRecordSchema
+ */ +public class CommandOutputRecordSchemaImpl extends SaveableImpl implements CommandOutputRecordSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private java.util.Optional> fields; + + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + public java.util.Optional> getFields() { + return this.fields; + } + + private Record_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + public Record_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of CommandOutputRecordSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandOutputRecordSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandOutputRecordSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + java.util.Optional> fields; + + if (__doc.containsKey("fields")) { + try { + fields = + LoaderInstances + .idmap_fields_optional_array_of_CommandOutputRecordField + .loadField(__doc.get("fields"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + fields = null; // won't be used but prevents compiler from complaining. + final String __message = "the `fields` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + fields = null; + } + Record_name type; + try { + type = + LoaderInstances + .typedsl_Record_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.fields = (java.util.Optional>) fields; + this.type = (Record_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.name = (java.util.Optional) name; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("fields", "type", "label", "doc", "name"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/Directory.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Directory.java new file mode 100644 index 00000000..5742e263 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Directory.java @@ -0,0 +1,154 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#Directory
This interface is implemented by {@link DirectoryImpl}
+ Represents a directory to present to a command line tool. + + Directories are represented as objects with `class` of `Directory`. Directory objects have + a number of properties that provide metadata about the directory. + + The `location` property of a Directory is a URI that uniquely identifies + the directory. Implementations must support the file:// URI scheme and may + support other schemes such as http://. Alternately to `location`, + implementations must also accept the `path` property on Directory, which + must be a filesystem path available on the same host as the CWL runner (for + inputs) or the runtime environment of a command line tool execution (for + command line tool outputs). + + A Directory object may have a `listing` field. This is a list of File and + Directory objects that are contained in the Directory. For each entry in + `listing`, the `basename` property defines the name of the File or + Subdirectory when staged to disk. If `listing` is not provided, the + implementation must have some way of fetching the Directory listing at + runtime based on the `location` field. + + If a Directory does not have `location`, it is a Directory literal. A + Directory literal must provide `listing`. Directory literals must be + created on disk at runtime as needed. + + The resources in a Directory literal do not need to have any implied + relationship in their `location`. For example, a Directory listing may + contain two files located on different hosts. It is the responsibility of + the runtime to ensure that those files are staged to disk appropriately. + Secondary files associated with files in `listing` must also be staged to + the same Directory. + + When executing a CommandLineTool, Directories must be recursively staged + first and have local values of `path` assigend. + + Directory objects in CommandLineTool output must provide either a + `location` URI or a `path` property in the context of the tool execution + runtime (local to the compute node, or within the executing container). + + An ExpressionTool may forward file references from input to output by using + the same value for `location`. + + Name conflicts (the same `basename` appearing multiple times in `listing` + or in any entry in `secondaryFiles` in the listing) is a fatal error. +
+ */ +public interface Directory extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Directory/class
+ *
+ * Must be `Directory` to indicate this object describes a Directory. *
+ */ + + Directory_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#Directory/location
+ *
+ * An IRI that identifies the directory resource. This may be a relative + * reference, in which case it must be resolved using the base IRI of the + * document. The location may refer to a local or remote resource. If + * the `listing` field is not set, the implementation must use the + * location IRI to retrieve directory listing. If an implementation is + * unable to retrieve the directory listing stored at a remote resource (due to + * unsupported protocol, access denied, or other issue) it must signal an + * error. + * + * If the `location` field is not provided, the `listing` field must be + * provided. The implementation must assign a unique identifier for + * the `location` field. + * + * If the `path` field is provided but the `location` field is not, an + * implementation may assign the value of the `path` field to `location`, + * then follow the rules above. + * *
+ */ + + java.util.Optional getLocation(); + /** + * Getter for property https://w3id.org/cwl/cwl#path
+ *
+ * The local path where the Directory is made available prior to executing a + * CommandLineTool. This must be set by the implementation. This field + * must not be used in any other context. The command line tool being + * executed must be able to to access the directory at `path` using the POSIX + * `opendir(2)` syscall. + * + * If the `path` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02) + * (`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`, + * ``, ``, and ``) or characters + * [not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml) + * for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452) + * then implementations may terminate the process with a + * `permanentFailure`. + * *
+ */ + + java.util.Optional getPath(); + /** + * Getter for property https://w3id.org/cwl/cwl#Directory/basename
+ *
+ * The base name of the directory, that is, the name of the file without any + * leading directory path. The base name must not contain a slash `/`. + * + * If not provided, the implementation must set this field based on the + * `location` field by taking the final path component after parsing + * `location` as an IRI. If `basename` is provided, it is not required to + * match the value from `location`. + * + * When this file is made available to a CommandLineTool, it must be named + * with `basename`, i.e. the final component of the `path` field must match + * `basename`. + * *
+ */ + + java.util.Optional getBasename(); + /** + * Getter for property https://w3id.org/cwl/cwl#listing
+ *
+ * List of files or subdirectories contained in this directory. The name + * of each file or subdirectory is determined by the `basename` field of + * each `File` or `Directory` object. It is an error if a `File` shares a + * `basename` with any other entry in `listing`. If two or more + * `Directory` object share the same `basename`, this must be treated as + * equivalent to a single subdirectory with the listings recursively + * merged. + * *
+ */ + + java.util.Optional> getListing(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/DirectoryImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/DirectoryImpl.java new file mode 100644 index 00000000..0bcc3dd2 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/DirectoryImpl.java @@ -0,0 +1,315 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#Directory
+ Represents a directory to present to a command line tool. + + Directories are represented as objects with `class` of `Directory`. Directory objects have + a number of properties that provide metadata about the directory. + + The `location` property of a Directory is a URI that uniquely identifies + the directory. Implementations must support the file:// URI scheme and may + support other schemes such as http://. Alternately to `location`, + implementations must also accept the `path` property on Directory, which + must be a filesystem path available on the same host as the CWL runner (for + inputs) or the runtime environment of a command line tool execution (for + command line tool outputs). + + A Directory object may have a `listing` field. This is a list of File and + Directory objects that are contained in the Directory. For each entry in + `listing`, the `basename` property defines the name of the File or + Subdirectory when staged to disk. If `listing` is not provided, the + implementation must have some way of fetching the Directory listing at + runtime based on the `location` field. + + If a Directory does not have `location`, it is a Directory literal. A + Directory literal must provide `listing`. Directory literals must be + created on disk at runtime as needed. + + The resources in a Directory literal do not need to have any implied + relationship in their `location`. For example, a Directory listing may + contain two files located on different hosts. It is the responsibility of + the runtime to ensure that those files are staged to disk appropriately. + Secondary files associated with files in `listing` must also be staged to + the same Directory. + + When executing a CommandLineTool, Directories must be recursively staged + first and have local values of `path` assigend. + + Directory objects in CommandLineTool output must provide either a + `location` URI or a `path` property in the context of the tool execution + runtime (local to the compute node, or within the executing container). + + An ExpressionTool may forward file references from input to output by using + the same value for `location`. + + Name conflicts (the same `basename` appearing multiple times in `listing` + or in any entry in `secondaryFiles` in the listing) is a fatal error. +
+ */ +public class DirectoryImpl extends SaveableImpl implements Directory { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private Directory_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#Directory/class
+ *
+ * Must be `Directory` to indicate this object describes a Directory. *
+ */ + + public Directory_class getClass_() { + return this.class_; + } + + private java.util.Optional location; + + /** + * Getter for property https://w3id.org/cwl/cwl#Directory/location
+ *
+ * An IRI that identifies the directory resource. This may be a relative + * reference, in which case it must be resolved using the base IRI of the + * document. The location may refer to a local or remote resource. If + * the `listing` field is not set, the implementation must use the + * location IRI to retrieve directory listing. If an implementation is + * unable to retrieve the directory listing stored at a remote resource (due to + * unsupported protocol, access denied, or other issue) it must signal an + * error. + * + * If the `location` field is not provided, the `listing` field must be + * provided. The implementation must assign a unique identifier for + * the `location` field. + * + * If the `path` field is provided but the `location` field is not, an + * implementation may assign the value of the `path` field to `location`, + * then follow the rules above. + * *
+ */ + + public java.util.Optional getLocation() { + return this.location; + } + + private java.util.Optional path; + + /** + * Getter for property https://w3id.org/cwl/cwl#path
+ *
+ * The local path where the Directory is made available prior to executing a + * CommandLineTool. This must be set by the implementation. This field + * must not be used in any other context. The command line tool being + * executed must be able to to access the directory at `path` using the POSIX + * `opendir(2)` syscall. + * + * If the `path` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02) + * (`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`, + * ``, ``, and ``) or characters + * [not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml) + * for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452) + * then implementations may terminate the process with a + * `permanentFailure`. + * *
+ */ + + public java.util.Optional getPath() { + return this.path; + } + + private java.util.Optional basename; + + /** + * Getter for property https://w3id.org/cwl/cwl#Directory/basename
+ *
+ * The base name of the directory, that is, the name of the file without any + * leading directory path. The base name must not contain a slash `/`. + * + * If not provided, the implementation must set this field based on the + * `location` field by taking the final path component after parsing + * `location` as an IRI. If `basename` is provided, it is not required to + * match the value from `location`. + * + * When this file is made available to a CommandLineTool, it must be named + * with `basename`, i.e. the final component of the `path` field must match + * `basename`. + * *
+ */ + + public java.util.Optional getBasename() { + return this.basename; + } + + private java.util.Optional> listing; + + /** + * Getter for property https://w3id.org/cwl/cwl#listing
+ *
+ * List of files or subdirectories contained in this directory. The name + * of each file or subdirectory is determined by the `basename` field of + * each `File` or `Directory` object. It is an error if a `File` shares a + * `basename` with any other entry in `listing`. If two or more + * `Directory` object share the same `basename`, this must be treated as + * equivalent to a single subdirectory with the listings recursively + * merged. + * *
+ */ + + public java.util.Optional> getListing() { + return this.listing; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of DirectoryImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public DirectoryImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("DirectoryImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + Directory_class class_; + try { + class_ = + LoaderInstances + .uri_Directory_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional location; + + if (__doc.containsKey("location")) { + try { + location = + LoaderInstances + .uri_optional_StringInstance_False_False_None_None + .loadField(__doc.get("location"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + location = null; // won't be used but prevents compiler from complaining. + final String __message = "the `location` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + location = null; + } + java.util.Optional path; + + if (__doc.containsKey("path")) { + try { + path = + LoaderInstances + .uri_optional_StringInstance_False_False_None_None + .loadField(__doc.get("path"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + path = null; // won't be used but prevents compiler from complaining. + final String __message = "the `path` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + path = null; + } + java.util.Optional basename; + + if (__doc.containsKey("basename")) { + try { + basename = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("basename"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + basename = null; // won't be used but prevents compiler from complaining. + final String __message = "the `basename` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + basename = null; + } + java.util.Optional> listing; + + if (__doc.containsKey("listing")) { + try { + listing = + LoaderInstances + .optional_array_of_union_of_File_or_Directory + .loadField(__doc.get("listing"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + listing = null; // won't be used but prevents compiler from complaining. + final String __message = "the `listing` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + listing = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (Directory_class) class_; + this.location = (java.util.Optional) location; + this.path = (java.util.Optional) path; + this.basename = (java.util.Optional) basename; + this.listing = (java.util.Optional>) listing; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "location", "path", "basename", "listing"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/Directory_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Directory_class.java new file mode 100644 index 00000000..a3116455 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Directory_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum Directory_class { + DIRECTORY("Directory"); + + private static String[] symbols = new String[] {"Directory"}; + private String docVal; + + private Directory_class(final String docVal) { + this.docVal = docVal; + } + + public static Directory_class fromDocumentVal(final String docVal) { + for(final Directory_class val : Directory_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", Directory_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/Dirent.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Dirent.java new file mode 100644 index 00000000..ec831d32 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Dirent.java @@ -0,0 +1,79 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#Dirent
This interface is implemented by {@link DirentImpl}
+ Define a file or subdirectory that must be placed in the designated output + directory prior to executing the command line tool. May be the result of + executing an expression, such as building a configuration file from a + template. +
+ */ +public interface Dirent extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#entryname
+ *
+ * The name of the file or subdirectory to create in the output directory. + * If `entry` is a File or Directory, the `entryname` field overrides the value + * of `basename` of the File or Directory object. Optional. + * *
+ */ + + Object getEntryname(); + /** + * Getter for property https://w3id.org/cwl/cwl#entry
+ *
+ * If the value is a string literal or an expression which evaluates to a + * string, a new file must be created with the string as the file contents. + * + * If the value is an expression that evaluates to a `File` object, this + * indicates the referenced file should be added to the designated output + * directory prior to executing the tool. + * + * If the value is an expression that evaluates to a `Dirent` object, this + * indicates that the File or Directory in `entry` should be added to the + * designated output directory with the name in `entryname`. + * + * If `writable` is false, the file may be made available using a bind + * mount or file system link to avoid unnecessary copying of the input + * file. + * *
+ */ + + Object getEntry(); + /** + * Getter for property https://w3id.org/cwl/cwl#Dirent/writable
+ *
+ * If true, the file or directory must be writable by the tool. Changes + * to the file or directory must be isolated and not visible by any other + * CommandLineTool process. This may be implemented by making a copy of + * the original file or directory. Default false (files and directories + * read-only by default). + * + * A directory marked as `writable: true` implies that all files and + * subdirectories are recursively writable as well. + * *
+ */ + + java.util.Optional getWritable(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/DirentImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/DirentImpl.java new file mode 100644 index 00000000..16d7fdd1 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/DirentImpl.java @@ -0,0 +1,194 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#Dirent
+ Define a file or subdirectory that must be placed in the designated output + directory prior to executing the command line tool. May be the result of + executing an expression, such as building a configuration file from a + template. +
+ */ +public class DirentImpl extends SaveableImpl implements Dirent { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private Object entryname; + + /** + * Getter for property https://w3id.org/cwl/cwl#entryname
+ *
+ * The name of the file or subdirectory to create in the output directory. + * If `entry` is a File or Directory, the `entryname` field overrides the value + * of `basename` of the File or Directory object. Optional. + * *
+ */ + + public Object getEntryname() { + return this.entryname; + } + + private Object entry; + + /** + * Getter for property https://w3id.org/cwl/cwl#entry
+ *
+ * If the value is a string literal or an expression which evaluates to a + * string, a new file must be created with the string as the file contents. + * + * If the value is an expression that evaluates to a `File` object, this + * indicates the referenced file should be added to the designated output + * directory prior to executing the tool. + * + * If the value is an expression that evaluates to a `Dirent` object, this + * indicates that the File or Directory in `entry` should be added to the + * designated output directory with the name in `entryname`. + * + * If `writable` is false, the file may be made available using a bind + * mount or file system link to avoid unnecessary copying of the input + * file. + * *
+ */ + + public Object getEntry() { + return this.entry; + } + + private java.util.Optional writable; + + /** + * Getter for property https://w3id.org/cwl/cwl#Dirent/writable
+ *
+ * If true, the file or directory must be writable by the tool. Changes + * to the file or directory must be isolated and not visible by any other + * CommandLineTool process. This may be implemented by making a copy of + * the original file or directory. Default false (files and directories + * read-only by default). + * + * A directory marked as `writable: true` implies that all files and + * subdirectories are recursively writable as well. + * *
+ */ + + public java.util.Optional getWritable() { + return this.writable; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of DirentImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public DirentImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("DirentImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + Object entryname; + + if (__doc.containsKey("entryname")) { + try { + entryname = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_ExpressionLoader + .loadField(__doc.get("entryname"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + entryname = null; // won't be used but prevents compiler from complaining. + final String __message = "the `entryname` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + entryname = null; + } + Object entry; + try { + entry = + LoaderInstances + .union_of_StringInstance_or_ExpressionLoader + .loadField(__doc.get("entry"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + entry = null; // won't be used but prevents compiler from complaining. + final String __message = "the `entry` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional writable; + + if (__doc.containsKey("writable")) { + try { + writable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("writable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + writable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `writable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + writable = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.entryname = (Object) entryname; + this.entry = (Object) entry; + this.writable = (java.util.Optional) writable; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("entryname", "entry", "writable"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/DockerRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/DockerRequirement.java new file mode 100644 index 00000000..1424e698 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/DockerRequirement.java @@ -0,0 +1,138 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#DockerRequirement
This interface is implemented by {@link DockerRequirementImpl}
+ Indicates that a workflow component should be run in a + [Docker](http://docker.com) or Docker-compatible (such as + [Singularity](https://www.sylabs.io/) and [udocker](https://github.com/indigo-dc/udocker)) container environment and + specifies how to fetch or build the image. + + If a CommandLineTool lists `DockerRequirement` under + `hints` (or `requirements`), it may (or must) be run in the specified Docker + container. + + The platform must first acquire or install the correct Docker image as + specified by `dockerPull`, `dockerImport`, `dockerLoad` or `dockerFile`. + + The platform must execute the tool in the container using `docker run` with + the appropriate Docker image and tool command line. + + The workflow platform may provide input files and the designated output + directory through the use of volume bind mounts. The platform should rewrite + file paths in the input object to correspond to the Docker bind mounted + locations. That is, the platform should rewrite values in the parameter context + such as `runtime.outdir`, `runtime.tmpdir` and others to be valid paths + within the container. The platform must ensure that `runtime.outdir` and + `runtime.tmpdir` are distinct directories. + + When running a tool contained in Docker, the workflow platform must not + assume anything about the contents of the Docker container, such as the + presence or absence of specific software, except to assume that the + generated command line represents a valid command within the runtime + environment of the container. + + A container image may specify an + [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) + and/or + [CMD](https://docs.docker.com/engine/reference/builder/#cmd). + Command line arguments will be appended after all elements of + ENTRYPOINT, and will override all elements specified using CMD (in + other words, CMD is only used when the CommandLineTool definition + produces an empty command line). + + Use of implicit ENTRYPOINT or CMD are discouraged due to reproducibility + concerns of the implicit hidden execution point (For further discussion, see + [https://doi.org/10.12688/f1000research.15140.1](https://doi.org/10.12688/f1000research.15140.1)). Portable + CommandLineTool wrappers in which use of a container is optional must not rely on ENTRYPOINT or CMD. + CommandLineTools which do rely on ENTRYPOINT or CMD must list `DockerRequirement` in the + `requirements` section. + + ## Interaction with other requirements + + If [EnvVarRequirement](#EnvVarRequirement) is specified alongside a + DockerRequirement, the environment variables must be provided to Docker + using `--env` or `--env-file` and interact with the container's preexisting + environment as defined by Docker. +
+ */ +public interface DockerRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/class
+ *
+ * Always 'DockerRequirement' *
+ */ + + DockerRequirement_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerPull
+ *
+ * Specify a Docker image to retrieve using `docker pull`. Can contain the + * immutable digest to ensure an exact container is used: + * `dockerPull: ubuntu@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2` + * *
+ */ + + java.util.Optional getDockerPull(); + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerLoad
+ *
+ * Specify a HTTP URL from which to download a Docker image using `docker load`. *
+ */ + + java.util.Optional getDockerLoad(); + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerFile
+ *
+ * Supply the contents of a Dockerfile which will be built using `docker build`. *
+ */ + + java.util.Optional getDockerFile(); + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerImport
+ *
+ * Provide HTTP URL to download and gunzip a Docker images using `docker import. *
+ */ + + java.util.Optional getDockerImport(); + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerImageId
+ *
+ * The image id that will be used for `docker run`. May be a + * human-readable image name or the image identifier hash. May be skipped + * if `dockerPull` is specified, in which case the `dockerPull` image id + * must be used. + * *
+ */ + + java.util.Optional getDockerImageId(); + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerOutputDirectory
+ *
+ * Set the designated output directory to a specific location inside the + * Docker container. + * *
+ */ + + java.util.Optional getDockerOutputDirectory(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/DockerRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/DockerRequirementImpl.java new file mode 100644 index 00000000..17290703 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/DockerRequirementImpl.java @@ -0,0 +1,345 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#DockerRequirement
+ Indicates that a workflow component should be run in a + [Docker](http://docker.com) or Docker-compatible (such as + [Singularity](https://www.sylabs.io/) and [udocker](https://github.com/indigo-dc/udocker)) container environment and + specifies how to fetch or build the image. + + If a CommandLineTool lists `DockerRequirement` under + `hints` (or `requirements`), it may (or must) be run in the specified Docker + container. + + The platform must first acquire or install the correct Docker image as + specified by `dockerPull`, `dockerImport`, `dockerLoad` or `dockerFile`. + + The platform must execute the tool in the container using `docker run` with + the appropriate Docker image and tool command line. + + The workflow platform may provide input files and the designated output + directory through the use of volume bind mounts. The platform should rewrite + file paths in the input object to correspond to the Docker bind mounted + locations. That is, the platform should rewrite values in the parameter context + such as `runtime.outdir`, `runtime.tmpdir` and others to be valid paths + within the container. The platform must ensure that `runtime.outdir` and + `runtime.tmpdir` are distinct directories. + + When running a tool contained in Docker, the workflow platform must not + assume anything about the contents of the Docker container, such as the + presence or absence of specific software, except to assume that the + generated command line represents a valid command within the runtime + environment of the container. + + A container image may specify an + [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) + and/or + [CMD](https://docs.docker.com/engine/reference/builder/#cmd). + Command line arguments will be appended after all elements of + ENTRYPOINT, and will override all elements specified using CMD (in + other words, CMD is only used when the CommandLineTool definition + produces an empty command line). + + Use of implicit ENTRYPOINT or CMD are discouraged due to reproducibility + concerns of the implicit hidden execution point (For further discussion, see + [https://doi.org/10.12688/f1000research.15140.1](https://doi.org/10.12688/f1000research.15140.1)). Portable + CommandLineTool wrappers in which use of a container is optional must not rely on ENTRYPOINT or CMD. + CommandLineTools which do rely on ENTRYPOINT or CMD must list `DockerRequirement` in the + `requirements` section. + + ## Interaction with other requirements + + If [EnvVarRequirement](#EnvVarRequirement) is specified alongside a + DockerRequirement, the environment variables must be provided to Docker + using `--env` or `--env-file` and interact with the container's preexisting + environment as defined by Docker. +
+ */ +public class DockerRequirementImpl extends SaveableImpl implements DockerRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private DockerRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/class
+ *
+ * Always 'DockerRequirement' *
+ */ + + public DockerRequirement_class getClass_() { + return this.class_; + } + + private java.util.Optional dockerPull; + + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerPull
+ *
+ * Specify a Docker image to retrieve using `docker pull`. Can contain the + * immutable digest to ensure an exact container is used: + * `dockerPull: ubuntu@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2` + * *
+ */ + + public java.util.Optional getDockerPull() { + return this.dockerPull; + } + + private java.util.Optional dockerLoad; + + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerLoad
+ *
+ * Specify a HTTP URL from which to download a Docker image using `docker load`. *
+ */ + + public java.util.Optional getDockerLoad() { + return this.dockerLoad; + } + + private java.util.Optional dockerFile; + + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerFile
+ *
+ * Supply the contents of a Dockerfile which will be built using `docker build`. *
+ */ + + public java.util.Optional getDockerFile() { + return this.dockerFile; + } + + private java.util.Optional dockerImport; + + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerImport
+ *
+ * Provide HTTP URL to download and gunzip a Docker images using `docker import. *
+ */ + + public java.util.Optional getDockerImport() { + return this.dockerImport; + } + + private java.util.Optional dockerImageId; + + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerImageId
+ *
+ * The image id that will be used for `docker run`. May be a + * human-readable image name or the image identifier hash. May be skipped + * if `dockerPull` is specified, in which case the `dockerPull` image id + * must be used. + * *
+ */ + + public java.util.Optional getDockerImageId() { + return this.dockerImageId; + } + + private java.util.Optional dockerOutputDirectory; + + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerOutputDirectory
+ *
+ * Set the designated output directory to a specific location inside the + * Docker container. + * *
+ */ + + public java.util.Optional getDockerOutputDirectory() { + return this.dockerOutputDirectory; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of DockerRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public DockerRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("DockerRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + DockerRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_DockerRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional dockerPull; + + if (__doc.containsKey("dockerPull")) { + try { + dockerPull = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("dockerPull"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + dockerPull = null; // won't be used but prevents compiler from complaining. + final String __message = "the `dockerPull` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + dockerPull = null; + } + java.util.Optional dockerLoad; + + if (__doc.containsKey("dockerLoad")) { + try { + dockerLoad = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("dockerLoad"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + dockerLoad = null; // won't be used but prevents compiler from complaining. + final String __message = "the `dockerLoad` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + dockerLoad = null; + } + java.util.Optional dockerFile; + + if (__doc.containsKey("dockerFile")) { + try { + dockerFile = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("dockerFile"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + dockerFile = null; // won't be used but prevents compiler from complaining. + final String __message = "the `dockerFile` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + dockerFile = null; + } + java.util.Optional dockerImport; + + if (__doc.containsKey("dockerImport")) { + try { + dockerImport = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("dockerImport"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + dockerImport = null; // won't be used but prevents compiler from complaining. + final String __message = "the `dockerImport` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + dockerImport = null; + } + java.util.Optional dockerImageId; + + if (__doc.containsKey("dockerImageId")) { + try { + dockerImageId = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("dockerImageId"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + dockerImageId = null; // won't be used but prevents compiler from complaining. + final String __message = "the `dockerImageId` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + dockerImageId = null; + } + java.util.Optional dockerOutputDirectory; + + if (__doc.containsKey("dockerOutputDirectory")) { + try { + dockerOutputDirectory = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("dockerOutputDirectory"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + dockerOutputDirectory = null; // won't be used but prevents compiler from complaining. + final String __message = "the `dockerOutputDirectory` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + dockerOutputDirectory = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (DockerRequirement_class) class_; + this.dockerPull = (java.util.Optional) dockerPull; + this.dockerLoad = (java.util.Optional) dockerLoad; + this.dockerFile = (java.util.Optional) dockerFile; + this.dockerImport = (java.util.Optional) dockerImport; + this.dockerImageId = (java.util.Optional) dockerImageId; + this.dockerOutputDirectory = (java.util.Optional) dockerOutputDirectory; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "dockerPull", "dockerLoad", "dockerFile", "dockerImport", "dockerImageId", "dockerOutputDirectory"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/DockerRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/DockerRequirement_class.java new file mode 100644 index 00000000..a130d08e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/DockerRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum DockerRequirement_class { + DOCKERREQUIREMENT("DockerRequirement"); + + private static String[] symbols = new String[] {"DockerRequirement"}; + private String docVal; + + private DockerRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static DockerRequirement_class fromDocumentVal(final String docVal) { + for(final DockerRequirement_class val : DockerRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", DockerRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/Documented.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Documented.java new file mode 100644 index 00000000..234977d7 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Documented.java @@ -0,0 +1,35 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/salad#Documented
+ */ +public interface Documented extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnumSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnumSchema.java new file mode 100644 index 00000000..0fc88977 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnumSchema.java @@ -0,0 +1,50 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/salad#EnumSchema
This interface is implemented by {@link EnumSchemaImpl}
+ Define an enumerated type. +
+ */ +public interface EnumSchema extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#EnumSchema/name
+ + */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + java.util.List getSymbols(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + Enum_name getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnumSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnumSchemaImpl.java new file mode 100644 index 00000000..48ca5347 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnumSchemaImpl.java @@ -0,0 +1,173 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/salad#EnumSchema
+ Define an enumerated type. +
+ */ +public class EnumSchemaImpl extends SaveableImpl implements EnumSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/salad#EnumSchema/name
+ + */ + + public java.util.Optional getName() { + return this.name; + } + + private java.util.List symbols; + + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + public java.util.List getSymbols() { + return this.symbols; + } + + private Enum_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + public Enum_name getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of EnumSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public EnumSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("EnumSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + java.util.List symbols; + try { + symbols = + LoaderInstances + .uri_array_of_StringInstance_True_False_None_None + .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + symbols = null; // won't be used but prevents compiler from complaining. + final String __message = "the `symbols` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Enum_name type; + try { + type = + LoaderInstances + .typedsl_Enum_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.name = (java.util.Optional) name; + this.symbols = (java.util.List) symbols; + this.type = (Enum_name) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("name", "symbols", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/Enum_name.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Enum_name.java new file mode 100644 index 00000000..9c03e65e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Enum_name.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum Enum_name { + ENUM("enum"); + + private static String[] symbols = new String[] {"enum"}; + private String docVal; + + private Enum_name(final String docVal) { + this.docVal = docVal; + } + + public static Enum_name fromDocumentVal(final String docVal) { + for(final Enum_name val : Enum_name.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", Enum_name.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnvVarRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnvVarRequirement.java new file mode 100644 index 00000000..e06f7d2b --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnvVarRequirement.java @@ -0,0 +1,45 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#EnvVarRequirement
This interface is implemented by {@link EnvVarRequirementImpl}
+ Define a list of environment variables which will be set in the + execution environment of the tool. See `EnvironmentDef` for details. +
+ */ +public interface EnvVarRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#EnvVarRequirement/class
+ *
+ * Always 'EnvVarRequirement' *
+ */ + + EnvVarRequirement_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#EnvVarRequirement/envDef
+ *
+ * The list of environment variables. *
+ */ + + java.util.List getEnvDef(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnvVarRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnvVarRequirementImpl.java new file mode 100644 index 00000000..31996783 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnvVarRequirementImpl.java @@ -0,0 +1,131 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#EnvVarRequirement
+ Define a list of environment variables which will be set in the + execution environment of the tool. See `EnvironmentDef` for details. +
+ */ +public class EnvVarRequirementImpl extends SaveableImpl implements EnvVarRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private EnvVarRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#EnvVarRequirement/class
+ *
+ * Always 'EnvVarRequirement' *
+ */ + + public EnvVarRequirement_class getClass_() { + return this.class_; + } + + private java.util.List envDef; + + /** + * Getter for property https://w3id.org/cwl/cwl#EnvVarRequirement/envDef
+ *
+ * The list of environment variables. *
+ */ + + public java.util.List getEnvDef() { + return this.envDef; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of EnvVarRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public EnvVarRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("EnvVarRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + EnvVarRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_EnvVarRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.List envDef; + try { + envDef = + LoaderInstances + .idmap_envDef_array_of_EnvironmentDef + .loadField(__doc.get("envDef"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + envDef = null; // won't be used but prevents compiler from complaining. + final String __message = "the `envDef` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (EnvVarRequirement_class) class_; + this.envDef = (java.util.List) envDef; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "envDef"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnvVarRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnvVarRequirement_class.java new file mode 100644 index 00000000..afe066c2 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnvVarRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum EnvVarRequirement_class { + ENVVARREQUIREMENT("EnvVarRequirement"); + + private static String[] symbols = new String[] {"EnvVarRequirement"}; + private String docVal; + + private EnvVarRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static EnvVarRequirement_class fromDocumentVal(final String docVal) { + for(final EnvVarRequirement_class val : EnvVarRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", EnvVarRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnvironmentDef.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnvironmentDef.java new file mode 100644 index 00000000..4a634b31 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnvironmentDef.java @@ -0,0 +1,46 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#EnvironmentDef
This interface is implemented by {@link EnvironmentDefImpl}
+ Define an environment variable that will be set in the runtime environment + by the workflow platform when executing the command line tool. May be the + result of executing an expression, such as getting a parameter from input. +
+ */ +public interface EnvironmentDef extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#EnvironmentDef/envName
+ *
+ * The environment variable name *
+ */ + + String getEnvName(); + /** + * Getter for property https://w3id.org/cwl/cwl#EnvironmentDef/envValue
+ *
+ * The environment variable value *
+ */ + + Object getEnvValue(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnvironmentDefImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnvironmentDefImpl.java new file mode 100644 index 00000000..0dcbfe75 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/EnvironmentDefImpl.java @@ -0,0 +1,132 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#EnvironmentDef
+ Define an environment variable that will be set in the runtime environment + by the workflow platform when executing the command line tool. May be the + result of executing an expression, such as getting a parameter from input. +
+ */ +public class EnvironmentDefImpl extends SaveableImpl implements EnvironmentDef { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private String envName; + + /** + * Getter for property https://w3id.org/cwl/cwl#EnvironmentDef/envName
+ *
+ * The environment variable name *
+ */ + + public String getEnvName() { + return this.envName; + } + + private Object envValue; + + /** + * Getter for property https://w3id.org/cwl/cwl#EnvironmentDef/envValue
+ *
+ * The environment variable value *
+ */ + + public Object getEnvValue() { + return this.envValue; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of EnvironmentDefImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public EnvironmentDefImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("EnvironmentDefImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + String envName; + try { + envName = + LoaderInstances + .StringInstance + .loadField(__doc.get("envName"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + envName = null; // won't be used but prevents compiler from complaining. + final String __message = "the `envName` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Object envValue; + try { + envValue = + LoaderInstances + .union_of_StringInstance_or_ExpressionLoader + .loadField(__doc.get("envValue"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + envValue = null; // won't be used but prevents compiler from complaining. + final String __message = "the `envValue` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.envName = (String) envName; + this.envValue = (Object) envValue; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("envName", "envValue"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/Expression.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Expression.java new file mode 100644 index 00000000..e34232e8 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Expression.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum Expression { + EXPRESSIONPLACEHOLDER("ExpressionPlaceholder"); + + private static String[] symbols = new String[] {"ExpressionPlaceholder"}; + private String docVal; + + private Expression(final String docVal) { + this.docVal = docVal; + } + + public static Expression fromDocumentVal(final String docVal) { + for(final Expression val : Expression.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", Expression.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ExpressionTool.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ExpressionTool.java new file mode 100644 index 00000000..51a8163d --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ExpressionTool.java @@ -0,0 +1,132 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#ExpressionTool
This interface is implemented by {@link ExpressionToolImpl}
+ An ExpressionTool is a type of Process object that can be run by itself + or as a Workflow step. It executes a pure Javascript expression that has + access to the same input parameters as a workflow. It is meant to be used + sparingly as a way to isolate complex Javascript expressions that need to + operate on input data and produce some result; perhaps just a + rearrangement of the inputs. No Docker software container is required + or allowed. +
+ */ +public interface ExpressionTool extends Process, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#ExpressionTool/class
+ + */ + + ExpressionTool_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#inputs
+ *
+ * Defines the input parameters of the process. The process is ready to + * run when all required input parameters are associated with concrete + * values. Input parameters include a schema for each parameter which is + * used to validate the input object. It may also be used to build a user + * interface for constructing the input object. + * + * When accepting an input object, all input parameters must have a value. + * If an input parameter is missing from the input object, it must be + * assigned a value of `null` (or the value of `default` for that + * parameter, if provided) for the purposes of validation and evaluation + * of expressions. + * *
+ */ + + java.util.List getInputs(); + /** + * Getter for property https://w3id.org/cwl/cwl#outputs
+ *
+ * Defines the parameters representing the output of the process. May be + * used to generate and/or validate the output object. + * *
+ */ + + java.util.List getOutputs(); + /** + * Getter for property https://w3id.org/cwl/cwl#requirements
+ *
+ * Declares requirements that apply to either the runtime environment or the + * workflow engine that must be met in order to execute this process. If + * an implementation cannot satisfy all requirements, or a requirement is + * listed which is not recognized by the implementation, it is a fatal + * error and the implementation must not attempt to run the process, + * unless overridden at user option. + * *
+ */ + + java.util.Optional> getRequirements(); + /** + * Getter for property https://w3id.org/cwl/cwl#hints
+ *
+ * Declares hints applying to either the runtime environment or the + * workflow engine that may be helpful in executing this process. It is + * not an error if an implementation cannot satisfy all hints, however + * the implementation may report a warning. + * *
+ */ + + java.util.Optional> getHints(); + /** + * Getter for property https://w3id.org/cwl/cwl#cwlVersion
+ *
+ * CWL document version. Always required at the document root. Not + * required for a Process embedded inside another Process. + * *
+ */ + + java.util.Optional getCwlVersion(); + /** + * Getter for property https://w3id.org/cwl/cwl#ExpressionTool/expression
+ *
+ * The expression to execute. The expression must return a JSON object which + * matches the output parameters of the ExpressionTool. + * *
+ */ + + String getExpression(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ExpressionToolImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ExpressionToolImpl.java new file mode 100644 index 00000000..aac4f8a2 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ExpressionToolImpl.java @@ -0,0 +1,404 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#ExpressionTool
+ An ExpressionTool is a type of Process object that can be run by itself + or as a Workflow step. It executes a pure Javascript expression that has + access to the same input parameters as a workflow. It is meant to be used + sparingly as a way to isolate complex Javascript expressions that need to + operate on input data and produce some result; perhaps just a + rearrangement of the inputs. No Docker software container is required + or allowed. +
+ */ +public class ExpressionToolImpl extends SaveableImpl implements ExpressionTool { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private ExpressionTool_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#ExpressionTool/class
+ + */ + + public ExpressionTool_class getClass_() { + return this.class_; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private java.util.List inputs; + + /** + * Getter for property https://w3id.org/cwl/cwl#inputs
+ *
+ * Defines the input parameters of the process. The process is ready to + * run when all required input parameters are associated with concrete + * values. Input parameters include a schema for each parameter which is + * used to validate the input object. It may also be used to build a user + * interface for constructing the input object. + * + * When accepting an input object, all input parameters must have a value. + * If an input parameter is missing from the input object, it must be + * assigned a value of `null` (or the value of `default` for that + * parameter, if provided) for the purposes of validation and evaluation + * of expressions. + * *
+ */ + + public java.util.List getInputs() { + return this.inputs; + } + + private java.util.List outputs; + + /** + * Getter for property https://w3id.org/cwl/cwl#outputs
+ *
+ * Defines the parameters representing the output of the process. May be + * used to generate and/or validate the output object. + * *
+ */ + + public java.util.List getOutputs() { + return this.outputs; + } + + private java.util.Optional> requirements; + + /** + * Getter for property https://w3id.org/cwl/cwl#requirements
+ *
+ * Declares requirements that apply to either the runtime environment or the + * workflow engine that must be met in order to execute this process. If + * an implementation cannot satisfy all requirements, or a requirement is + * listed which is not recognized by the implementation, it is a fatal + * error and the implementation must not attempt to run the process, + * unless overridden at user option. + * *
+ */ + + public java.util.Optional> getRequirements() { + return this.requirements; + } + + private java.util.Optional> hints; + + /** + * Getter for property https://w3id.org/cwl/cwl#hints
+ *
+ * Declares hints applying to either the runtime environment or the + * workflow engine that may be helpful in executing this process. It is + * not an error if an implementation cannot satisfy all hints, however + * the implementation may report a warning. + * *
+ */ + + public java.util.Optional> getHints() { + return this.hints; + } + + private java.util.Optional cwlVersion; + + /** + * Getter for property https://w3id.org/cwl/cwl#cwlVersion
+ *
+ * CWL document version. Always required at the document root. Not + * required for a Process embedded inside another Process. + * *
+ */ + + public java.util.Optional getCwlVersion() { + return this.cwlVersion; + } + + private String expression; + + /** + * Getter for property https://w3id.org/cwl/cwl#ExpressionTool/expression
+ *
+ * The expression to execute. The expression must return a JSON object which + * matches the output parameters of the ExpressionTool. + * *
+ */ + + public String getExpression() { + return this.expression; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of ExpressionToolImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public ExpressionToolImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("ExpressionToolImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + ExpressionTool_class class_; + try { + class_ = + LoaderInstances + .uri_ExpressionTool_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + java.util.List inputs; + try { + inputs = + LoaderInstances + .idmap_inputs_array_of_WorkflowInputParameter + .loadField(__doc.get("inputs"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputs = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputs` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.List outputs; + try { + outputs = + LoaderInstances + .idmap_outputs_array_of_ExpressionToolOutputParameter + .loadField(__doc.get("outputs"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + outputs = null; // won't be used but prevents compiler from complaining. + final String __message = "the `outputs` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional> requirements; + + if (__doc.containsKey("requirements")) { + try { + requirements = + LoaderInstances + .idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement + .loadField(__doc.get("requirements"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + requirements = null; // won't be used but prevents compiler from complaining. + final String __message = "the `requirements` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + requirements = null; + } + java.util.Optional> hints; + + if (__doc.containsKey("hints")) { + try { + hints = + LoaderInstances + .idmap_hints_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance + .loadField(__doc.get("hints"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + hints = null; // won't be used but prevents compiler from complaining. + final String __message = "the `hints` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + hints = null; + } + java.util.Optional cwlVersion; + + if (__doc.containsKey("cwlVersion")) { + try { + cwlVersion = + LoaderInstances + .uri_optional_CWLVersion_False_True_None_None + .loadField(__doc.get("cwlVersion"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + cwlVersion = null; // won't be used but prevents compiler from complaining. + final String __message = "the `cwlVersion` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + cwlVersion = null; + } + String expression; + try { + expression = + LoaderInstances + .ExpressionLoader + .loadField(__doc.get("expression"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + expression = null; // won't be used but prevents compiler from complaining. + final String __message = "the `expression` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.id = (java.util.Optional) id; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.inputs = (java.util.List) inputs; + this.outputs = (java.util.List) outputs; + this.requirements = (java.util.Optional>) requirements; + this.hints = (java.util.Optional>) hints; + this.cwlVersion = (java.util.Optional) cwlVersion; + this.class_ = (ExpressionTool_class) class_; + this.expression = (String) expression; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("id", "label", "doc", "inputs", "outputs", "requirements", "hints", "cwlVersion", "class", "expression"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ExpressionToolOutputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ExpressionToolOutputParameter.java new file mode 100644 index 00000000..f0028d09 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ExpressionToolOutputParameter.java @@ -0,0 +1,129 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#ExpressionToolOutputParameter
This interface is implemented by {@link ExpressionToolOutputParameterImpl}
+ */ +public interface ExpressionToolOutputParameter extends OutputParameter, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + Object getFormat(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * *
+ */ + + Object getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ExpressionToolOutputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ExpressionToolOutputParameterImpl.java new file mode 100644 index 00000000..c2dc1a63 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ExpressionToolOutputParameterImpl.java @@ -0,0 +1,350 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#ExpressionToolOutputParameter
+ */ +public class ExpressionToolOutputParameterImpl extends SaveableImpl implements ExpressionToolOutputParameter { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional streamable; + + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + public java.util.Optional getStreamable() { + return this.streamable; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + public Object getFormat() { + return this.format; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * *
+ */ + + public Object getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of ExpressionToolOutputParameterImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public ExpressionToolOutputParameterImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("ExpressionToolOutputParameterImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional streamable; + + if (__doc.containsKey("streamable")) { + try { + streamable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + streamable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `streamable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + streamable = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + Object type; + try { + type = + LoaderInstances + .typedsl_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.label = (java.util.Optional) label; + this.secondaryFiles = (Object) secondaryFiles; + this.streamable = (java.util.Optional) streamable; + this.doc = (Object) doc; + this.id = (java.util.Optional) id; + this.format = (Object) format; + this.type = (Object) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("label", "secondaryFiles", "streamable", "doc", "id", "format", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ExpressionTool_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ExpressionTool_class.java new file mode 100644 index 00000000..ecafc318 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ExpressionTool_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum ExpressionTool_class { + EXPRESSIONTOOL("ExpressionTool"); + + private static String[] symbols = new String[] {"ExpressionTool"}; + private String docVal; + + private ExpressionTool_class(final String docVal) { + this.docVal = docVal; + } + + public static ExpressionTool_class fromDocumentVal(final String docVal) { + for(final ExpressionTool_class val : ExpressionTool_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", ExpressionTool_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/FieldBase.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/FieldBase.java new file mode 100644 index 00000000..392c67ed --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/FieldBase.java @@ -0,0 +1,96 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#FieldBase
+ */ +public interface FieldBase extends Labeled, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/File.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/File.java new file mode 100644 index 00000000..2127913a --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/File.java @@ -0,0 +1,278 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#File
This interface is implemented by {@link FileImpl}
+ Represents a file (or group of files when `secondaryFiles` is provided) that + will be accessible by tools using standard POSIX file system call API such as + open(2) and read(2). + + Files are represented as objects with `class` of `File`. File objects have + a number of properties that provide metadata about the file. + + The `location` property of a File is a URI that uniquely identifies the + file. Implementations must support the file:// URI scheme and may support + other schemes such as http://. The value of `location` may also be a + relative reference, in which case it must be resolved relative to the URI + of the document it appears in. Alternately to `location`, implementations + must also accept the `path` property on File, which must be a filesystem + path available on the same host as the CWL runner (for inputs) or the + runtime environment of a command line tool execution (for command line tool + outputs). + + If no `location` or `path` is specified, a file object must specify + `contents` with the UTF-8 text content of the file. This is a "file + literal". File literals do not correspond to external resources, but are + created on disk with `contents` with when needed for a executing a tool. + Where appropriate, expressions can return file literals to define new files + on a runtime. The maximum size of `contents` is 64 kilobytes. + + The `basename` property defines the filename on disk where the file is + staged. This may differ from the resource name. If not provided, + `basename` must be computed from the last path part of `location` and made + available to expressions. + + The `secondaryFiles` property is a list of File or Directory objects that + must be staged in the same directory as the primary file. It is an error + for file names to be duplicated in `secondaryFiles`. + + The `size` property is the size in bytes of the File. It must be computed + from the resource and made available to expressions. The `checksum` field + contains a cryptographic hash of the file content for use it verifying file + contents. Implementations may, at user option, enable or disable + computation of the `checksum` field for performance or other reasons. + However, the ability to compute output checksums is required to pass the + CWL conformance test suite. + + When executing a CommandLineTool, the files and secondary files may be + staged to an arbitrary directory, but must use the value of `basename` for + the filename. The `path` property must be file path in the context of the + tool execution runtime (local to the compute node, or within the executing + container). All computed properties should be available to expressions. + File literals also must be staged and `path` must be set. + + When collecting CommandLineTool outputs, `glob` matching returns file paths + (with the `path` property) and the derived properties. This can all be + modified by `outputEval`. Alternately, if the file `cwl.output.json` is + present in the output, `outputBinding` is ignored. + + File objects in the output must provide either a `location` URI or a `path` + property in the context of the tool execution runtime (local to the compute + node, or within the executing container). + + When evaluating an ExpressionTool, file objects must be referenced via + `location` (the expression tool does not have access to files on disk so + `path` is meaningless) or as file literals. It is legal to return a file + object with an existing `location` but a different `basename`. The + `loadContents` field of ExpressionTool inputs behaves the same as on + CommandLineTool inputs, however it is not meaningful on the outputs. + + An ExpressionTool may forward file references from input to output by using + the same value for `location`. +
+ */ +public interface File extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#File/class
+ *
+ * Must be `File` to indicate this object describes a file. *
+ */ + + File_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#File/location
+ *
+ * An IRI that identifies the file resource. This may be a relative + * reference, in which case it must be resolved using the base IRI of the + * document. The location may refer to a local or remote resource; the + * implementation must use the IRI to retrieve file content. If an + * implementation is unable to retrieve the file content stored at a + * remote resource (due to unsupported protocol, access denied, or other + * issue) it must signal an error. + * + * If the `location` field is not provided, the `contents` field must be + * provided. The implementation must assign a unique identifier for + * the `location` field. + * + * If the `path` field is provided but the `location` field is not, an + * implementation may assign the value of the `path` field to `location`, + * then follow the rules above. + * *
+ */ + + java.util.Optional getLocation(); + /** + * Getter for property https://w3id.org/cwl/cwl#path
+ *
+ * The local host path where the File is available when a CommandLineTool is + * executed. This field must be set by the implementation. The final + * path component must match the value of `basename`. This field + * must not be used in any other context. The command line tool being + * executed must be able to to access the file at `path` using the POSIX + * `open(2)` syscall. + * + * As a special case, if the `path` field is provided but the `location` + * field is not, an implementation may assign the value of the `path` + * field to `location`, and remove the `path` field. + * + * If the `path` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02) + * (`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`, + * ``, ``, and ``) or characters + * [not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml) + * for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452) + * then implementations may terminate the process with a + * `permanentFailure`. + * *
+ */ + + java.util.Optional getPath(); + /** + * Getter for property https://w3id.org/cwl/cwl#File/basename
+ *
+ * The base name of the file, that is, the name of the file without any + * leading directory path. The base name must not contain a slash `/`. + * + * If not provided, the implementation must set this field based on the + * `location` field by taking the final path component after parsing + * `location` as an IRI. If `basename` is provided, it is not required to + * match the value from `location`. + * + * When this file is made available to a CommandLineTool, it must be named + * with `basename`, i.e. the final component of the `path` field must match + * `basename`. + * *
+ */ + + java.util.Optional getBasename(); + /** + * Getter for property https://w3id.org/cwl/cwl#File/dirname
+ *
+ * The name of the directory containing file, that is, the path leading up + * to the final slash in the path such that `dirname + '/' + basename == + * path`. + * + * The implementation must set this field based on the value of `path` + * prior to evaluating parameter references or expressions in a + * CommandLineTool document. This field must not be used in any other + * context. + * *
+ */ + + java.util.Optional getDirname(); + /** + * Getter for property https://w3id.org/cwl/cwl#File/nameroot
+ *
+ * The basename root such that `nameroot + nameext == basename`, and + * `nameext` is empty or begins with a period and contains at most one + * period. For the purposess of path splitting leading periods on the + * basename are ignored; a basename of `.cshrc` will have a nameroot of + * `.cshrc`. + * + * The implementation must set this field automatically based on the value + * of `basename` prior to evaluating parameter references or expressions. + * *
+ */ + + java.util.Optional getNameroot(); + /** + * Getter for property https://w3id.org/cwl/cwl#File/nameext
+ *
+ * The basename extension such that `nameroot + nameext == basename`, and + * `nameext` is empty or begins with a period and contains at most one + * period. Leading periods on the basename are ignored; a basename of + * `.cshrc` will have an empty `nameext`. + * + * The implementation must set this field automatically based on the value + * of `basename` prior to evaluating parameter references or expressions. + * *
+ */ + + java.util.Optional getNameext(); + /** + * Getter for property https://w3id.org/cwl/cwl#File/checksum
+ *
+ * Optional hash code for validating file integrity. Currently must be in the form + * "sha1$ + hexadecimal string" using the SHA-1 algorithm. + * *
+ */ + + java.util.Optional getChecksum(); + /** + * Getter for property https://w3id.org/cwl/cwl#File/size
+ *
+ * Optional file size *
+ */ + + Object getSize(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * A list of additional files or directories that are associated with the + * primary file and must be transferred alongside the primary file. + * Examples include indexes of the primary file, or external references + * which must be included when loading primary document. A file object + * listed in `secondaryFiles` may itself include `secondaryFiles` for + * which the same rules apply. + * *
+ */ + + java.util.Optional> getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * The format of the file: this must be an IRI of a concept node that + * represents the file format, preferrably defined within an ontology. + * If no ontology is available, file formats may be tested by exact match. + * + * Reasoning about format compatability must be done by checking that an + * input file format is the same, `owl:equivalentClass` or + * `rdfs:subClassOf` the format required by the input parameter. + * `owl:equivalentClass` is transitive with `rdfs:subClassOf`, e.g. if + * ` owl:equivalentClass ` and ` owl:subclassOf ` then infer + * ` owl:subclassOf `. + * + * File format ontologies may be provided in the "$schemas" metadata at the + * root of the document. If no ontologies are specified in `$schemas`, the + * runtime may perform exact file format matches. + * *
+ */ + + java.util.Optional getFormat(); + /** + * Getter for property https://w3id.org/cwl/cwl#File/contents
+ *
+ * File contents literal. Maximum of 64 KiB. + * + * If neither `location` nor `path` is provided, `contents` must be + * non-null. The implementation must assign a unique identifier for the + * `location` field. When the file is staged as input to CommandLineTool, + * the value of `contents` must be written to a file. + * + * If `loadContents` of `inputBinding` or `outputBinding` is true and + * `location` is valid, the implementation must read up to the first 64 + * KiB of text from the file and place it in the "contents" field. + * *
+ */ + + java.util.Optional getContents(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/FileImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/FileImpl.java new file mode 100644 index 00000000..1d9098d1 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/FileImpl.java @@ -0,0 +1,600 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#File
+ Represents a file (or group of files when `secondaryFiles` is provided) that + will be accessible by tools using standard POSIX file system call API such as + open(2) and read(2). + + Files are represented as objects with `class` of `File`. File objects have + a number of properties that provide metadata about the file. + + The `location` property of a File is a URI that uniquely identifies the + file. Implementations must support the file:// URI scheme and may support + other schemes such as http://. The value of `location` may also be a + relative reference, in which case it must be resolved relative to the URI + of the document it appears in. Alternately to `location`, implementations + must also accept the `path` property on File, which must be a filesystem + path available on the same host as the CWL runner (for inputs) or the + runtime environment of a command line tool execution (for command line tool + outputs). + + If no `location` or `path` is specified, a file object must specify + `contents` with the UTF-8 text content of the file. This is a "file + literal". File literals do not correspond to external resources, but are + created on disk with `contents` with when needed for a executing a tool. + Where appropriate, expressions can return file literals to define new files + on a runtime. The maximum size of `contents` is 64 kilobytes. + + The `basename` property defines the filename on disk where the file is + staged. This may differ from the resource name. If not provided, + `basename` must be computed from the last path part of `location` and made + available to expressions. + + The `secondaryFiles` property is a list of File or Directory objects that + must be staged in the same directory as the primary file. It is an error + for file names to be duplicated in `secondaryFiles`. + + The `size` property is the size in bytes of the File. It must be computed + from the resource and made available to expressions. The `checksum` field + contains a cryptographic hash of the file content for use it verifying file + contents. Implementations may, at user option, enable or disable + computation of the `checksum` field for performance or other reasons. + However, the ability to compute output checksums is required to pass the + CWL conformance test suite. + + When executing a CommandLineTool, the files and secondary files may be + staged to an arbitrary directory, but must use the value of `basename` for + the filename. The `path` property must be file path in the context of the + tool execution runtime (local to the compute node, or within the executing + container). All computed properties should be available to expressions. + File literals also must be staged and `path` must be set. + + When collecting CommandLineTool outputs, `glob` matching returns file paths + (with the `path` property) and the derived properties. This can all be + modified by `outputEval`. Alternately, if the file `cwl.output.json` is + present in the output, `outputBinding` is ignored. + + File objects in the output must provide either a `location` URI or a `path` + property in the context of the tool execution runtime (local to the compute + node, or within the executing container). + + When evaluating an ExpressionTool, file objects must be referenced via + `location` (the expression tool does not have access to files on disk so + `path` is meaningless) or as file literals. It is legal to return a file + object with an existing `location` but a different `basename`. The + `loadContents` field of ExpressionTool inputs behaves the same as on + CommandLineTool inputs, however it is not meaningful on the outputs. + + An ExpressionTool may forward file references from input to output by using + the same value for `location`. +
+ */ +public class FileImpl extends SaveableImpl implements File { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private File_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#File/class
+ *
+ * Must be `File` to indicate this object describes a file. *
+ */ + + public File_class getClass_() { + return this.class_; + } + + private java.util.Optional location; + + /** + * Getter for property https://w3id.org/cwl/cwl#File/location
+ *
+ * An IRI that identifies the file resource. This may be a relative + * reference, in which case it must be resolved using the base IRI of the + * document. The location may refer to a local or remote resource; the + * implementation must use the IRI to retrieve file content. If an + * implementation is unable to retrieve the file content stored at a + * remote resource (due to unsupported protocol, access denied, or other + * issue) it must signal an error. + * + * If the `location` field is not provided, the `contents` field must be + * provided. The implementation must assign a unique identifier for + * the `location` field. + * + * If the `path` field is provided but the `location` field is not, an + * implementation may assign the value of the `path` field to `location`, + * then follow the rules above. + * *
+ */ + + public java.util.Optional getLocation() { + return this.location; + } + + private java.util.Optional path; + + /** + * Getter for property https://w3id.org/cwl/cwl#path
+ *
+ * The local host path where the File is available when a CommandLineTool is + * executed. This field must be set by the implementation. The final + * path component must match the value of `basename`. This field + * must not be used in any other context. The command line tool being + * executed must be able to to access the file at `path` using the POSIX + * `open(2)` syscall. + * + * As a special case, if the `path` field is provided but the `location` + * field is not, an implementation may assign the value of the `path` + * field to `location`, and remove the `path` field. + * + * If the `path` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02) + * (`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`, + * ``, ``, and ``) or characters + * [not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml) + * for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452) + * then implementations may terminate the process with a + * `permanentFailure`. + * *
+ */ + + public java.util.Optional getPath() { + return this.path; + } + + private java.util.Optional basename; + + /** + * Getter for property https://w3id.org/cwl/cwl#File/basename
+ *
+ * The base name of the file, that is, the name of the file without any + * leading directory path. The base name must not contain a slash `/`. + * + * If not provided, the implementation must set this field based on the + * `location` field by taking the final path component after parsing + * `location` as an IRI. If `basename` is provided, it is not required to + * match the value from `location`. + * + * When this file is made available to a CommandLineTool, it must be named + * with `basename`, i.e. the final component of the `path` field must match + * `basename`. + * *
+ */ + + public java.util.Optional getBasename() { + return this.basename; + } + + private java.util.Optional dirname; + + /** + * Getter for property https://w3id.org/cwl/cwl#File/dirname
+ *
+ * The name of the directory containing file, that is, the path leading up + * to the final slash in the path such that `dirname + '/' + basename == + * path`. + * + * The implementation must set this field based on the value of `path` + * prior to evaluating parameter references or expressions in a + * CommandLineTool document. This field must not be used in any other + * context. + * *
+ */ + + public java.util.Optional getDirname() { + return this.dirname; + } + + private java.util.Optional nameroot; + + /** + * Getter for property https://w3id.org/cwl/cwl#File/nameroot
+ *
+ * The basename root such that `nameroot + nameext == basename`, and + * `nameext` is empty or begins with a period and contains at most one + * period. For the purposess of path splitting leading periods on the + * basename are ignored; a basename of `.cshrc` will have a nameroot of + * `.cshrc`. + * + * The implementation must set this field automatically based on the value + * of `basename` prior to evaluating parameter references or expressions. + * *
+ */ + + public java.util.Optional getNameroot() { + return this.nameroot; + } + + private java.util.Optional nameext; + + /** + * Getter for property https://w3id.org/cwl/cwl#File/nameext
+ *
+ * The basename extension such that `nameroot + nameext == basename`, and + * `nameext` is empty or begins with a period and contains at most one + * period. Leading periods on the basename are ignored; a basename of + * `.cshrc` will have an empty `nameext`. + * + * The implementation must set this field automatically based on the value + * of `basename` prior to evaluating parameter references or expressions. + * *
+ */ + + public java.util.Optional getNameext() { + return this.nameext; + } + + private java.util.Optional checksum; + + /** + * Getter for property https://w3id.org/cwl/cwl#File/checksum
+ *
+ * Optional hash code for validating file integrity. Currently must be in the form + * "sha1$ + hexadecimal string" using the SHA-1 algorithm. + * *
+ */ + + public java.util.Optional getChecksum() { + return this.checksum; + } + + private Object size; + + /** + * Getter for property https://w3id.org/cwl/cwl#File/size
+ *
+ * Optional file size *
+ */ + + public Object getSize() { + return this.size; + } + + private java.util.Optional> secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * A list of additional files or directories that are associated with the + * primary file and must be transferred alongside the primary file. + * Examples include indexes of the primary file, or external references + * which must be included when loading primary document. A file object + * listed in `secondaryFiles` may itself include `secondaryFiles` for + * which the same rules apply. + * *
+ */ + + public java.util.Optional> getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * The format of the file: this must be an IRI of a concept node that + * represents the file format, preferrably defined within an ontology. + * If no ontology is available, file formats may be tested by exact match. + * + * Reasoning about format compatability must be done by checking that an + * input file format is the same, `owl:equivalentClass` or + * `rdfs:subClassOf` the format required by the input parameter. + * `owl:equivalentClass` is transitive with `rdfs:subClassOf`, e.g. if + * ` owl:equivalentClass ` and ` owl:subclassOf ` then infer + * ` owl:subclassOf `. + * + * File format ontologies may be provided in the "$schemas" metadata at the + * root of the document. If no ontologies are specified in `$schemas`, the + * runtime may perform exact file format matches. + * *
+ */ + + public java.util.Optional getFormat() { + return this.format; + } + + private java.util.Optional contents; + + /** + * Getter for property https://w3id.org/cwl/cwl#File/contents
+ *
+ * File contents literal. Maximum of 64 KiB. + * + * If neither `location` nor `path` is provided, `contents` must be + * non-null. The implementation must assign a unique identifier for the + * `location` field. When the file is staged as input to CommandLineTool, + * the value of `contents` must be written to a file. + * + * If `loadContents` of `inputBinding` or `outputBinding` is true and + * `location` is valid, the implementation must read up to the first 64 + * KiB of text from the file and place it in the "contents" field. + * *
+ */ + + public java.util.Optional getContents() { + return this.contents; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of FileImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public FileImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("FileImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + File_class class_; + try { + class_ = + LoaderInstances + .uri_File_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional location; + + if (__doc.containsKey("location")) { + try { + location = + LoaderInstances + .uri_optional_StringInstance_False_False_None_None + .loadField(__doc.get("location"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + location = null; // won't be used but prevents compiler from complaining. + final String __message = "the `location` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + location = null; + } + java.util.Optional path; + + if (__doc.containsKey("path")) { + try { + path = + LoaderInstances + .uri_optional_StringInstance_False_False_None_None + .loadField(__doc.get("path"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + path = null; // won't be used but prevents compiler from complaining. + final String __message = "the `path` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + path = null; + } + java.util.Optional basename; + + if (__doc.containsKey("basename")) { + try { + basename = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("basename"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + basename = null; // won't be used but prevents compiler from complaining. + final String __message = "the `basename` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + basename = null; + } + java.util.Optional dirname; + + if (__doc.containsKey("dirname")) { + try { + dirname = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("dirname"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + dirname = null; // won't be used but prevents compiler from complaining. + final String __message = "the `dirname` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + dirname = null; + } + java.util.Optional nameroot; + + if (__doc.containsKey("nameroot")) { + try { + nameroot = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("nameroot"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + nameroot = null; // won't be used but prevents compiler from complaining. + final String __message = "the `nameroot` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + nameroot = null; + } + java.util.Optional nameext; + + if (__doc.containsKey("nameext")) { + try { + nameext = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("nameext"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + nameext = null; // won't be used but prevents compiler from complaining. + final String __message = "the `nameext` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + nameext = null; + } + java.util.Optional checksum; + + if (__doc.containsKey("checksum")) { + try { + checksum = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("checksum"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + checksum = null; // won't be used but prevents compiler from complaining. + final String __message = "the `checksum` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + checksum = null; + } + Object size; + + if (__doc.containsKey("size")) { + try { + size = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_LongInstance + .loadField(__doc.get("size"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + size = null; // won't be used but prevents compiler from complaining. + final String __message = "the `size` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + size = null; + } + java.util.Optional> secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_optional_array_of_union_of_File_or_Directory + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_optional_StringInstance_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + java.util.Optional contents; + + if (__doc.containsKey("contents")) { + try { + contents = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("contents"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + contents = null; // won't be used but prevents compiler from complaining. + final String __message = "the `contents` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + contents = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (File_class) class_; + this.location = (java.util.Optional) location; + this.path = (java.util.Optional) path; + this.basename = (java.util.Optional) basename; + this.dirname = (java.util.Optional) dirname; + this.nameroot = (java.util.Optional) nameroot; + this.nameext = (java.util.Optional) nameext; + this.checksum = (java.util.Optional) checksum; + this.size = (Object) size; + this.secondaryFiles = (java.util.Optional>) secondaryFiles; + this.format = (java.util.Optional) format; + this.contents = (java.util.Optional) contents; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "location", "path", "basename", "dirname", "nameroot", "nameext", "checksum", "size", "secondaryFiles", "format", "contents"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/File_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/File_class.java new file mode 100644 index 00000000..c362b611 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/File_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum File_class { + FILE("File"); + + private static String[] symbols = new String[] {"File"}; + private String docVal; + + private File_class(final String docVal) { + this.docVal = docVal; + } + + public static File_class fromDocumentVal(final String docVal) { + for(final File_class val : File_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", File_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/IOSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/IOSchema.java new file mode 100644 index 00000000..2ede6fdf --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/IOSchema.java @@ -0,0 +1,42 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#IOSchema
+ */ +public interface IOSchema extends Labeled, Documented, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/Identified.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Identified.java new file mode 100644 index 00000000..cbab3751 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Identified.java @@ -0,0 +1,28 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#Identified
+ */ +public interface Identified extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InitialWorkDirRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InitialWorkDirRequirement.java new file mode 100644 index 00000000..52ce795e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InitialWorkDirRequirement.java @@ -0,0 +1,55 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InitialWorkDirRequirement
This interface is implemented by {@link InitialWorkDirRequirementImpl}
+ Define a list of files and subdirectories that must be created by the workflow platform in the designated output directory prior to executing the command line tool.
+ */ +public interface InitialWorkDirRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#InitialWorkDirRequirement/class
+ *
+ * InitialWorkDirRequirement *
+ */ + + InitialWorkDirRequirement_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#listing
+ *
+ * The list of files or subdirectories that must be placed in the + * designated output directory prior to executing the command line tool. + * + * May be an expression. If so, the expression return value must validate as + * `{type: array, items: ["null", File, File[], Directory, Directory[], Dirent]}`. + * + * Files or Directories which are listed in the input parameters and + * appear in the `InitialWorkDirRequirement` listing must have their + * `path` set to their staged location in the designated output directory. + * If the same File or Directory appears more than once in the + * `InitialWorkDirRequirement` listing, the implementation must choose + * exactly one value for `path`; how this value is chosen is undefined. + * *
+ */ + + Object getListing(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InitialWorkDirRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InitialWorkDirRequirementImpl.java new file mode 100644 index 00000000..905e7ba9 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InitialWorkDirRequirementImpl.java @@ -0,0 +1,141 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#InitialWorkDirRequirement
+ Define a list of files and subdirectories that must be created by the workflow platform in the designated output directory prior to executing the command line tool.
+ */ +public class InitialWorkDirRequirementImpl extends SaveableImpl implements InitialWorkDirRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private InitialWorkDirRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#InitialWorkDirRequirement/class
+ *
+ * InitialWorkDirRequirement *
+ */ + + public InitialWorkDirRequirement_class getClass_() { + return this.class_; + } + + private Object listing; + + /** + * Getter for property https://w3id.org/cwl/cwl#listing
+ *
+ * The list of files or subdirectories that must be placed in the + * designated output directory prior to executing the command line tool. + * + * May be an expression. If so, the expression return value must validate as + * `{type: array, items: ["null", File, File[], Directory, Directory[], Dirent]}`. + * + * Files or Directories which are listed in the input parameters and + * appear in the `InitialWorkDirRequirement` listing must have their + * `path` set to their staged location in the designated output directory. + * If the same File or Directory appears more than once in the + * `InitialWorkDirRequirement` listing, the implementation must choose + * exactly one value for `path`; how this value is chosen is undefined. + * *
+ */ + + public Object getListing() { + return this.listing; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of InitialWorkDirRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public InitialWorkDirRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("InitialWorkDirRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + InitialWorkDirRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_InitialWorkDirRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Object listing; + try { + listing = + LoaderInstances + .union_of_array_of_union_of_NullInstance_or_File_or_array_of_union_of_File_or_Directory_or_Directory_or_Dirent_or_ExpressionLoader_or_ExpressionLoader + .loadField(__doc.get("listing"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + listing = null; // won't be used but prevents compiler from complaining. + final String __message = "the `listing` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (InitialWorkDirRequirement_class) class_; + this.listing = (Object) listing; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "listing"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InitialWorkDirRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InitialWorkDirRequirement_class.java new file mode 100644 index 00000000..d19b43d3 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InitialWorkDirRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum InitialWorkDirRequirement_class { + INITIALWORKDIRREQUIREMENT("InitialWorkDirRequirement"); + + private static String[] symbols = new String[] {"InitialWorkDirRequirement"}; + private String docVal; + + private InitialWorkDirRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static InitialWorkDirRequirement_class fromDocumentVal(final String docVal) { + for(final InitialWorkDirRequirement_class val : InitialWorkDirRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", InitialWorkDirRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InlineJavascriptRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InlineJavascriptRequirement.java new file mode 100644 index 00000000..20cb3830 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InlineJavascriptRequirement.java @@ -0,0 +1,49 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InlineJavascriptRequirement
This interface is implemented by {@link InlineJavascriptRequirementImpl}
+ Indicates that the workflow platform must support inline Javascript expressions. + If this requirement is not present, the workflow platform must not perform expression + interpolatation. +
+ */ +public interface InlineJavascriptRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#InlineJavascriptRequirement/class
+ *
+ * Always 'InlineJavascriptRequirement' *
+ */ + + InlineJavascriptRequirement_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#InlineJavascriptRequirement/expressionLib
+ *
+ * Additional code fragments that will also be inserted + * before executing the expression code. Allows for function definitions that may + * be called from CWL expressions. + * *
+ */ + + java.util.Optional> getExpressionLib(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InlineJavascriptRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InlineJavascriptRequirementImpl.java new file mode 100644 index 00000000..7074770c --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InlineJavascriptRequirementImpl.java @@ -0,0 +1,141 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#InlineJavascriptRequirement
+ Indicates that the workflow platform must support inline Javascript expressions. + If this requirement is not present, the workflow platform must not perform expression + interpolatation. +
+ */ +public class InlineJavascriptRequirementImpl extends SaveableImpl implements InlineJavascriptRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private InlineJavascriptRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#InlineJavascriptRequirement/class
+ *
+ * Always 'InlineJavascriptRequirement' *
+ */ + + public InlineJavascriptRequirement_class getClass_() { + return this.class_; + } + + private java.util.Optional> expressionLib; + + /** + * Getter for property https://w3id.org/cwl/cwl#InlineJavascriptRequirement/expressionLib
+ *
+ * Additional code fragments that will also be inserted + * before executing the expression code. Allows for function definitions that may + * be called from CWL expressions. + * *
+ */ + + public java.util.Optional> getExpressionLib() { + return this.expressionLib; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of InlineJavascriptRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public InlineJavascriptRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("InlineJavascriptRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + InlineJavascriptRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_InlineJavascriptRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional> expressionLib; + + if (__doc.containsKey("expressionLib")) { + try { + expressionLib = + LoaderInstances + .optional_array_of_StringInstance + .loadField(__doc.get("expressionLib"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + expressionLib = null; // won't be used but prevents compiler from complaining. + final String __message = "the `expressionLib` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + expressionLib = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (InlineJavascriptRequirement_class) class_; + this.expressionLib = (java.util.Optional>) expressionLib; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "expressionLib"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InlineJavascriptRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InlineJavascriptRequirement_class.java new file mode 100644 index 00000000..888e7a3c --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InlineJavascriptRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum InlineJavascriptRequirement_class { + INLINEJAVASCRIPTREQUIREMENT("InlineJavascriptRequirement"); + + private static String[] symbols = new String[] {"InlineJavascriptRequirement"}; + private String docVal; + + private InlineJavascriptRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static InlineJavascriptRequirement_class fromDocumentVal(final String docVal) { + for(final InlineJavascriptRequirement_class val : InlineJavascriptRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", InlineJavascriptRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InplaceUpdateRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InplaceUpdateRequirement.java new file mode 100644 index 00000000..5a5322d3 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InplaceUpdateRequirement.java @@ -0,0 +1,72 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InplaceUpdateRequirement
This interface is implemented by {@link InplaceUpdateRequirementImpl}
+ + If `inplaceUpdate` is true, then an implementation supporting this + feature may permit tools to directly update files with `writable: + true` in InitialWorkDirRequirement. That is, as an optimization, + files may be destructively modified in place as opposed to copied + and updated. + + An implementation must ensure that only one workflow step may + access a writable file at a time. It is an error if a file which + is writable by one workflow step file is accessed (for reading or + writing) by any other workflow step running independently. + However, a file which has been updated in a previous completed + step may be used as input to multiple steps, provided it is + read-only in every step. + + Workflow steps which modify a file must produce the modified file + as output. Downstream steps which futher process the file must + use the output of previous steps, and not refer to a common input + (this is necessary for both ordering and correctness). + + Workflow authors should provide this in the `hints` section. The + intent of this feature is that workflows produce the same results + whether or not InplaceUpdateRequirement is supported by the + implementation, and this feature is primarily available as an + optimization for particular environments. + + Users and implementers should be aware that workflows that + destructively modify inputs may not be repeatable or reproducible. + In particular, enabling this feature implies that WorkReuse should + not be enabled. +
+ */ +public interface InplaceUpdateRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#InplaceUpdateRequirement/class
+ *
+ * Always 'InplaceUpdateRequirement' *
+ */ + + InplaceUpdateRequirement_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#InplaceUpdateRequirement/inplaceUpdate
+ + */ + + Boolean getInplaceUpdate(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InplaceUpdateRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InplaceUpdateRequirementImpl.java new file mode 100644 index 00000000..e792af7d --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InplaceUpdateRequirementImpl.java @@ -0,0 +1,158 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#InplaceUpdateRequirement
+ + If `inplaceUpdate` is true, then an implementation supporting this + feature may permit tools to directly update files with `writable: + true` in InitialWorkDirRequirement. That is, as an optimization, + files may be destructively modified in place as opposed to copied + and updated. + + An implementation must ensure that only one workflow step may + access a writable file at a time. It is an error if a file which + is writable by one workflow step file is accessed (for reading or + writing) by any other workflow step running independently. + However, a file which has been updated in a previous completed + step may be used as input to multiple steps, provided it is + read-only in every step. + + Workflow steps which modify a file must produce the modified file + as output. Downstream steps which futher process the file must + use the output of previous steps, and not refer to a common input + (this is necessary for both ordering and correctness). + + Workflow authors should provide this in the `hints` section. The + intent of this feature is that workflows produce the same results + whether or not InplaceUpdateRequirement is supported by the + implementation, and this feature is primarily available as an + optimization for particular environments. + + Users and implementers should be aware that workflows that + destructively modify inputs may not be repeatable or reproducible. + In particular, enabling this feature implies that WorkReuse should + not be enabled. +
+ */ +public class InplaceUpdateRequirementImpl extends SaveableImpl implements InplaceUpdateRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private InplaceUpdateRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#InplaceUpdateRequirement/class
+ *
+ * Always 'InplaceUpdateRequirement' *
+ */ + + public InplaceUpdateRequirement_class getClass_() { + return this.class_; + } + + private Boolean inplaceUpdate; + + /** + * Getter for property https://w3id.org/cwl/cwl#InplaceUpdateRequirement/inplaceUpdate
+ + */ + + public Boolean getInplaceUpdate() { + return this.inplaceUpdate; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of InplaceUpdateRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public InplaceUpdateRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("InplaceUpdateRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + InplaceUpdateRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_InplaceUpdateRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Boolean inplaceUpdate; + try { + inplaceUpdate = + LoaderInstances + .BooleanInstance + .loadField(__doc.get("inplaceUpdate"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inplaceUpdate = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inplaceUpdate` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (InplaceUpdateRequirement_class) class_; + this.inplaceUpdate = (Boolean) inplaceUpdate; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "inplaceUpdate"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InplaceUpdateRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InplaceUpdateRequirement_class.java new file mode 100644 index 00000000..e86b7130 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InplaceUpdateRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum InplaceUpdateRequirement_class { + INPLACEUPDATEREQUIREMENT("InplaceUpdateRequirement"); + + private static String[] symbols = new String[] {"InplaceUpdateRequirement"}; + private String docVal; + + private InplaceUpdateRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static InplaceUpdateRequirement_class fromDocumentVal(final String docVal) { + for(final InplaceUpdateRequirement_class val : InplaceUpdateRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", InplaceUpdateRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputArraySchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputArraySchema.java new file mode 100644 index 00000000..0d9bb5ac --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputArraySchema.java @@ -0,0 +1,63 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InputArraySchema
This interface is implemented by {@link InputArraySchemaImpl}
+ */ +public interface InputArraySchema extends CWLArraySchema, InputSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + Object getItems(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + Array_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputArraySchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputArraySchemaImpl.java new file mode 100644 index 00000000..86bed2fe --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputArraySchemaImpl.java @@ -0,0 +1,232 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputArraySchema
+ */ +public class InputArraySchemaImpl extends SaveableImpl implements InputArraySchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private Object items; + + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + public Object getItems() { + return this.items; + } + + private Array_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + public Array_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of InputArraySchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public InputArraySchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("InputArraySchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + Object items; + try { + items = + LoaderInstances + .uri_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_False_True_2_None + .loadField(__doc.get("items"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + items = null; // won't be used but prevents compiler from complaining. + final String __message = "the `items` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Array_name type; + try { + type = + LoaderInstances + .typedsl_Array_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.items = (Object) items; + this.type = (Array_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.name = (java.util.Optional) name; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("items", "type", "label", "doc", "name"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputBinding.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputBinding.java new file mode 100644 index 00000000..2c2d4e94 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputBinding.java @@ -0,0 +1,43 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InputBinding
This interface is implemented by {@link InputBindingImpl}
+ */ +public interface InputBinding extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#InputBinding/loadContents
+ *
+ * Use of `loadContents` in `InputBinding` is deprecated. + * Preserved for v1.0 backwards compatability. Will be removed in + * CWL v2.0. Use `InputParameter.loadContents` instead. + * + * Only valid when `type: File` or is an array of `items: File`. + * + * Read up to the first 64 KiB of text from the file and place it in the + * "contents" field of the file object for use by expressions. + * *
+ */ + + java.util.Optional getLoadContents(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputBindingImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputBindingImpl.java new file mode 100644 index 00000000..6623cc74 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputBindingImpl.java @@ -0,0 +1,118 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputBinding
+ */ +public class InputBindingImpl extends SaveableImpl implements InputBinding { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional loadContents; + + /** + * Getter for property https://w3id.org/cwl/cwl#InputBinding/loadContents
+ *
+ * Use of `loadContents` in `InputBinding` is deprecated. + * Preserved for v1.0 backwards compatability. Will be removed in + * CWL v2.0. Use `InputParameter.loadContents` instead. + * + * Only valid when `type: File` or is an array of `items: File`. + * + * Read up to the first 64 KiB of text from the file and place it in the + * "contents" field of the file object for use by expressions. + * *
+ */ + + public java.util.Optional getLoadContents() { + return this.loadContents; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of InputBindingImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public InputBindingImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("InputBindingImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional loadContents; + + if (__doc.containsKey("loadContents")) { + try { + loadContents = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadContents = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadContents` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadContents = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.loadContents = (java.util.Optional) loadContents; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("loadContents"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputEnumSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputEnumSchema.java new file mode 100644 index 00000000..fa9dce07 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputEnumSchema.java @@ -0,0 +1,63 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InputEnumSchema
This interface is implemented by {@link InputEnumSchemaImpl}
+ */ +public interface InputEnumSchema extends EnumSchema, InputSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + java.util.List getSymbols(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + Enum_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputEnumSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputEnumSchemaImpl.java new file mode 100644 index 00000000..bd91a6a0 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputEnumSchemaImpl.java @@ -0,0 +1,232 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputEnumSchema
+ */ +public class InputEnumSchemaImpl extends SaveableImpl implements InputEnumSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private java.util.List symbols; + + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + public java.util.List getSymbols() { + return this.symbols; + } + + private Enum_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + public Enum_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of InputEnumSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public InputEnumSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("InputEnumSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + java.util.List symbols; + try { + symbols = + LoaderInstances + .uri_array_of_StringInstance_True_False_None_None + .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + symbols = null; // won't be used but prevents compiler from complaining. + final String __message = "the `symbols` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Enum_name type; + try { + type = + LoaderInstances + .typedsl_Enum_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.name = (java.util.Optional) name; + this.symbols = (java.util.List) symbols; + this.type = (Enum_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("name", "symbols", "type", "label", "doc"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputFormat.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputFormat.java new file mode 100644 index 00000000..379d3f95 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputFormat.java @@ -0,0 +1,41 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InputFormat
+ */ +public interface InputFormat extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferrably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + Object getFormat(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputParameter.java new file mode 100644 index 00000000..82310a9c --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputParameter.java @@ -0,0 +1,155 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InputParameter
+ */ +public interface InputParameter extends Parameter, InputFormat, LoadContents, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferrably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + Object getFormat(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Read up to the first 64 KiB of text from the file and place it in the + * "contents" field of the file object for use by expressions. + * *
+ */ + + java.util.Optional getLoadContents(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + java.util.Optional getLoadListing(); + /** + * Getter for property https://w3id.org/cwl/salad#default
+ *
+ * The default value to use for this parameter if the parameter is missing + * from the input object, or if the value of the parameter in the input + * object is `null`. Default values are applied before evaluating expressions + * (e.g. dependent `valueFrom` fields). + * *
+ */ + + java.util.Optional getDefault(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputRecordField.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputRecordField.java new file mode 100644 index 00000000..9e26261e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputRecordField.java @@ -0,0 +1,160 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InputRecordField
This interface is implemented by {@link InputRecordFieldImpl}
+ */ +public interface InputRecordField extends CWLRecordField, FieldBase, InputFormat, LoadContents, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + String getName(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + Object getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferrably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + Object getFormat(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Read up to the first 64 KiB of text from the file and place it in the + * "contents" field of the file object for use by expressions. + * *
+ */ + + java.util.Optional getLoadContents(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + java.util.Optional getLoadListing(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputRecordFieldImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputRecordFieldImpl.java new file mode 100644 index 00000000..3898945e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputRecordFieldImpl.java @@ -0,0 +1,422 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputRecordField
+ */ +public class InputRecordFieldImpl extends SaveableImpl implements InputRecordField { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private String name; + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + public String getName() { + return this.name; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + public Object getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional streamable; + + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + public java.util.Optional getStreamable() { + return this.streamable; + } + + private Object format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferrably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + public Object getFormat() { + return this.format; + } + + private java.util.Optional loadContents; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Read up to the first 64 KiB of text from the file and place it in the + * "contents" field of the file object for use by expressions. + * *
+ */ + + public java.util.Optional getLoadContents() { + return this.loadContents; + } + + private java.util.Optional loadListing; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + public java.util.Optional getLoadListing() { + return this.loadListing; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of InputRecordFieldImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public InputRecordFieldImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("InputRecordFieldImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + String name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + if (name == null) { + if (__docRoot != null) { + name = __docRoot; + } else { + throw new ValidationException("Missing name"); + } + } + __baseUri = (String) name; + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object type; + try { + type = + LoaderInstances + .typedsl_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional streamable; + + if (__doc.containsKey("streamable")) { + try { + streamable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + streamable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `streamable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + streamable = null; + } + Object format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + java.util.Optional loadContents; + + if (__doc.containsKey("loadContents")) { + try { + loadContents = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadContents = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadContents` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadContents = null; + } + java.util.Optional loadListing; + + if (__doc.containsKey("loadListing")) { + try { + loadListing = + LoaderInstances + .optional_LoadListingEnum + .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadListing = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadListing` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadListing = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.doc = (Object) doc; + this.name = (String) name; + this.type = (Object) type; + this.label = (java.util.Optional) label; + this.secondaryFiles = (Object) secondaryFiles; + this.streamable = (java.util.Optional) streamable; + this.format = (Object) format; + this.loadContents = (java.util.Optional) loadContents; + this.loadListing = (java.util.Optional) loadListing; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("doc", "name", "type", "label", "secondaryFiles", "streamable", "format", "loadContents", "loadListing"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputRecordSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputRecordSchema.java new file mode 100644 index 00000000..ece42164 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputRecordSchema.java @@ -0,0 +1,63 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InputRecordSchema
This interface is implemented by {@link InputRecordSchemaImpl}
+ */ +public interface InputRecordSchema extends CWLRecordSchema, InputSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + java.util.Optional> getFields(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + Record_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputRecordSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputRecordSchemaImpl.java new file mode 100644 index 00000000..4405ca00 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputRecordSchemaImpl.java @@ -0,0 +1,238 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputRecordSchema
+ */ +public class InputRecordSchemaImpl extends SaveableImpl implements InputRecordSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private java.util.Optional> fields; + + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + public java.util.Optional> getFields() { + return this.fields; + } + + private Record_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + public Record_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of InputRecordSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public InputRecordSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("InputRecordSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + java.util.Optional> fields; + + if (__doc.containsKey("fields")) { + try { + fields = + LoaderInstances + .idmap_fields_optional_array_of_InputRecordField + .loadField(__doc.get("fields"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + fields = null; // won't be used but prevents compiler from complaining. + final String __message = "the `fields` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + fields = null; + } + Record_name type; + try { + type = + LoaderInstances + .typedsl_Record_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.fields = (java.util.Optional>) fields; + this.type = (Record_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.name = (java.util.Optional) name; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("fields", "type", "label", "doc", "name"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputSchema.java new file mode 100644 index 00000000..6b8ac168 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/InputSchema.java @@ -0,0 +1,42 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InputSchema
+ */ +public interface InputSchema extends IOSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/Labeled.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Labeled.java new file mode 100644 index 00000000..389a5254 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Labeled.java @@ -0,0 +1,35 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#Labeled
+ */ +public interface Labeled extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/LinkMergeMethod.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/LinkMergeMethod.java new file mode 100644 index 00000000..eb0d1546 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/LinkMergeMethod.java @@ -0,0 +1,38 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum LinkMergeMethod { + MERGE_NESTED("merge_nested"), + MERGE_FLATTENED("merge_flattened"); + + private static String[] symbols = new String[] {"merge_nested", "merge_flattened"}; + private String docVal; + + private LinkMergeMethod(final String docVal) { + this.docVal = docVal; + } + + public static LinkMergeMethod fromDocumentVal(final String docVal) { + for(final LinkMergeMethod val : LinkMergeMethod.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", LinkMergeMethod.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/LoadContents.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/LoadContents.java new file mode 100644 index 00000000..07930367 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/LoadContents.java @@ -0,0 +1,56 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#LoadContents
+ */ +public interface LoadContents extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Read up to the first 64 KiB of text from the file and place it in the + * "contents" field of the file object for use by expressions. + * *
+ */ + + java.util.Optional getLoadContents(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + java.util.Optional getLoadListing(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/LoadListingEnum.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/LoadListingEnum.java new file mode 100644 index 00000000..c3a489d5 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/LoadListingEnum.java @@ -0,0 +1,39 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum LoadListingEnum { + NO_LISTING("no_listing"), + SHALLOW_LISTING("shallow_listing"), + DEEP_LISTING("deep_listing"); + + private static String[] symbols = new String[] {"no_listing", "shallow_listing", "deep_listing"}; + private String docVal; + + private LoadListingEnum(final String docVal) { + this.docVal = docVal; + } + + public static LoadListingEnum fromDocumentVal(final String docVal) { + for(final LoadListingEnum val : LoadListingEnum.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", LoadListingEnum.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/LoadListingRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/LoadListingRequirement.java new file mode 100644 index 00000000..c9f88690 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/LoadListingRequirement.java @@ -0,0 +1,44 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#LoadListingRequirement
This interface is implemented by {@link LoadListingRequirementImpl}
+ Specify the desired behavior for loading the `listing` field of + a Directory object for use by expressions. +
+ */ +public interface LoadListingRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadListingRequirement/class
+ *
+ * Always 'LoadListingRequirement' *
+ */ + + LoadListingRequirement_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadListingRequirement/loadListing
+ + */ + + java.util.Optional getLoadListing(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/LoadListingRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/LoadListingRequirementImpl.java new file mode 100644 index 00000000..6b46c160 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/LoadListingRequirementImpl.java @@ -0,0 +1,136 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#LoadListingRequirement
+ Specify the desired behavior for loading the `listing` field of + a Directory object for use by expressions. +
+ */ +public class LoadListingRequirementImpl extends SaveableImpl implements LoadListingRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private LoadListingRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadListingRequirement/class
+ *
+ * Always 'LoadListingRequirement' *
+ */ + + public LoadListingRequirement_class getClass_() { + return this.class_; + } + + private java.util.Optional loadListing; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadListingRequirement/loadListing
+ + */ + + public java.util.Optional getLoadListing() { + return this.loadListing; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of LoadListingRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public LoadListingRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("LoadListingRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + LoadListingRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_LoadListingRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional loadListing; + + if (__doc.containsKey("loadListing")) { + try { + loadListing = + LoaderInstances + .optional_LoadListingEnum + .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadListing = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadListing` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadListing = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (LoadListingRequirement_class) class_; + this.loadListing = (java.util.Optional) loadListing; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "loadListing"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/LoadListingRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/LoadListingRequirement_class.java new file mode 100644 index 00000000..1abcc983 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/LoadListingRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum LoadListingRequirement_class { + LOADLISTINGREQUIREMENT("LoadListingRequirement"); + + private static String[] symbols = new String[] {"LoadListingRequirement"}; + private String docVal; + + private LoadListingRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static LoadListingRequirement_class fromDocumentVal(final String docVal) { + for(final LoadListingRequirement_class val : LoadListingRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", LoadListingRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/MapSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/MapSchema.java new file mode 100644 index 00000000..4e0f7419 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/MapSchema.java @@ -0,0 +1,42 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/salad#MapSchema
This interface is implemented by {@link MapSchemaImpl}
+ */ +public interface MapSchema extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `map` *
+ */ + + Map_name getType(); + /** + * Getter for property https://w3id.org/cwl/salad#values
+ *
+ * Defines the type of the map elements. *
+ */ + + Object getValues(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/MapSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/MapSchemaImpl.java new file mode 100644 index 00000000..7cb05c82 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/MapSchemaImpl.java @@ -0,0 +1,128 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/salad#MapSchema
+ */ +public class MapSchemaImpl extends SaveableImpl implements MapSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private Map_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `map` *
+ */ + + public Map_name getType() { + return this.type; + } + + private Object values; + + /** + * Getter for property https://w3id.org/cwl/salad#values
+ *
+ * Defines the type of the map elements. *
+ */ + + public Object getValues() { + return this.values; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of MapSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public MapSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("MapSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + Map_name type; + try { + type = + LoaderInstances + .typedsl_Map_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Object values; + try { + values = + LoaderInstances + .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 + .loadField(__doc.get("values"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + values = null; // won't be used but prevents compiler from complaining. + final String __message = "the `values` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.type = (Map_name) type; + this.values = (Object) values; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("type", "values"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/Map_name.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Map_name.java new file mode 100644 index 00000000..a42d8669 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Map_name.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum Map_name { + MAP("map"); + + private static String[] symbols = new String[] {"map"}; + private String docVal; + + private Map_name(final String docVal) { + this.docVal = docVal; + } + + public static Map_name fromDocumentVal(final String docVal) { + for(final Map_name val : Map_name.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", Map_name.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/MultipleInputFeatureRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/MultipleInputFeatureRequirement.java new file mode 100644 index 00000000..0a1ebb9d --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/MultipleInputFeatureRequirement.java @@ -0,0 +1,38 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#MultipleInputFeatureRequirement
This interface is implemented by {@link MultipleInputFeatureRequirementImpl}
+ Indicates that the workflow platform must support multiple inbound data links + listed in the `source` field of [WorkflowStepInput](#WorkflowStepInput). +
+ */ +public interface MultipleInputFeatureRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#MultipleInputFeatureRequirement/class
+ *
+ * Always 'MultipleInputFeatureRequirement' *
+ */ + + MultipleInputFeatureRequirement_class getClass_(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/MultipleInputFeatureRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/MultipleInputFeatureRequirementImpl.java new file mode 100644 index 00000000..18dad168 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/MultipleInputFeatureRequirementImpl.java @@ -0,0 +1,107 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#MultipleInputFeatureRequirement
+ Indicates that the workflow platform must support multiple inbound data links + listed in the `source` field of [WorkflowStepInput](#WorkflowStepInput). +
+ */ +public class MultipleInputFeatureRequirementImpl extends SaveableImpl implements MultipleInputFeatureRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private MultipleInputFeatureRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#MultipleInputFeatureRequirement/class
+ *
+ * Always 'MultipleInputFeatureRequirement' *
+ */ + + public MultipleInputFeatureRequirement_class getClass_() { + return this.class_; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of MultipleInputFeatureRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public MultipleInputFeatureRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("MultipleInputFeatureRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + MultipleInputFeatureRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_MultipleInputFeatureRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (MultipleInputFeatureRequirement_class) class_; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/MultipleInputFeatureRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/MultipleInputFeatureRequirement_class.java new file mode 100644 index 00000000..fce3949b --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/MultipleInputFeatureRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum MultipleInputFeatureRequirement_class { + MULTIPLEINPUTFEATUREREQUIREMENT("MultipleInputFeatureRequirement"); + + private static String[] symbols = new String[] {"MultipleInputFeatureRequirement"}; + private String docVal; + + private MultipleInputFeatureRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static MultipleInputFeatureRequirement_class fromDocumentVal(final String docVal) { + for(final MultipleInputFeatureRequirement_class val : MultipleInputFeatureRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", MultipleInputFeatureRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/NetworkAccess.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/NetworkAccess.java new file mode 100644 index 00000000..8317a2d2 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/NetworkAccess.java @@ -0,0 +1,57 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#NetworkAccess
This interface is implemented by {@link NetworkAccessImpl}
+ Indicate whether a process requires outgoing IPv4/IPv6 network + access. Choice of IPv4 or IPv6 is implementation and site + specific, correct tools must support both. + + If `networkAccess` is false or not specified, tools must not + assume network access, except for localhost (the loopback device). + + If `networkAccess` is true, the tool must be able to make outgoing + connections to network resources. Resources may be on a private + subnet or the public Internet. However, implementations and sites + may apply their own security policies to restrict what is + accessible by the tool. + + Enabling network access does not imply a publically routable IP + address or the ability to accept inbound connections. +
+ */ +public interface NetworkAccess extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#NetworkAccess/class
+ *
+ * Always 'NetworkAccess' *
+ */ + + NetworkAccess_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#NetworkAccess/networkAccess
+ + */ + + Object getNetworkAccess(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/NetworkAccessImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/NetworkAccessImpl.java new file mode 100644 index 00000000..f65e93c7 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/NetworkAccessImpl.java @@ -0,0 +1,143 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#NetworkAccess
+ Indicate whether a process requires outgoing IPv4/IPv6 network + access. Choice of IPv4 or IPv6 is implementation and site + specific, correct tools must support both. + + If `networkAccess` is false or not specified, tools must not + assume network access, except for localhost (the loopback device). + + If `networkAccess` is true, the tool must be able to make outgoing + connections to network resources. Resources may be on a private + subnet or the public Internet. However, implementations and sites + may apply their own security policies to restrict what is + accessible by the tool. + + Enabling network access does not imply a publically routable IP + address or the ability to accept inbound connections. +
+ */ +public class NetworkAccessImpl extends SaveableImpl implements NetworkAccess { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private NetworkAccess_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#NetworkAccess/class
+ *
+ * Always 'NetworkAccess' *
+ */ + + public NetworkAccess_class getClass_() { + return this.class_; + } + + private Object networkAccess; + + /** + * Getter for property https://w3id.org/cwl/cwl#NetworkAccess/networkAccess
+ + */ + + public Object getNetworkAccess() { + return this.networkAccess; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of NetworkAccessImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public NetworkAccessImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("NetworkAccessImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + NetworkAccess_class class_; + try { + class_ = + LoaderInstances + .uri_NetworkAccess_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Object networkAccess; + try { + networkAccess = + LoaderInstances + .union_of_BooleanInstance_or_ExpressionLoader + .loadField(__doc.get("networkAccess"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + networkAccess = null; // won't be used but prevents compiler from complaining. + final String __message = "the `networkAccess` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (NetworkAccess_class) class_; + this.networkAccess = (Object) networkAccess; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "networkAccess"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/NetworkAccess_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/NetworkAccess_class.java new file mode 100644 index 00000000..d0f48225 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/NetworkAccess_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum NetworkAccess_class { + NETWORKACCESS("NetworkAccess"); + + private static String[] symbols = new String[] {"NetworkAccess"}; + private String docVal; + + private NetworkAccess_class(final String docVal) { + this.docVal = docVal; + } + + public static NetworkAccess_class fromDocumentVal(final String docVal) { + for(final NetworkAccess_class val : NetworkAccess_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", NetworkAccess_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputArraySchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputArraySchema.java new file mode 100644 index 00000000..d26d6ae9 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputArraySchema.java @@ -0,0 +1,63 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#OutputArraySchema
This interface is implemented by {@link OutputArraySchemaImpl}
+ */ +public interface OutputArraySchema extends CWLArraySchema, OutputSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + Object getItems(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + Array_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputArraySchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputArraySchemaImpl.java new file mode 100644 index 00000000..9261e32c --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputArraySchemaImpl.java @@ -0,0 +1,232 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#OutputArraySchema
+ */ +public class OutputArraySchemaImpl extends SaveableImpl implements OutputArraySchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private Object items; + + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + public Object getItems() { + return this.items; + } + + private Array_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + public Array_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of OutputArraySchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public OutputArraySchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("OutputArraySchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + Object items; + try { + items = + LoaderInstances + .uri_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_False_True_2_None + .loadField(__doc.get("items"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + items = null; // won't be used but prevents compiler from complaining. + final String __message = "the `items` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Array_name type; + try { + type = + LoaderInstances + .typedsl_Array_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.items = (Object) items; + this.type = (Array_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.name = (java.util.Optional) name; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("items", "type", "label", "doc", "name"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputEnumSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputEnumSchema.java new file mode 100644 index 00000000..aee84a8a --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputEnumSchema.java @@ -0,0 +1,63 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#OutputEnumSchema
This interface is implemented by {@link OutputEnumSchemaImpl}
+ */ +public interface OutputEnumSchema extends EnumSchema, OutputSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + java.util.List getSymbols(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + Enum_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputEnumSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputEnumSchemaImpl.java new file mode 100644 index 00000000..0b691ae0 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputEnumSchemaImpl.java @@ -0,0 +1,232 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#OutputEnumSchema
+ */ +public class OutputEnumSchemaImpl extends SaveableImpl implements OutputEnumSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private java.util.List symbols; + + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + public java.util.List getSymbols() { + return this.symbols; + } + + private Enum_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + public Enum_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of OutputEnumSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public OutputEnumSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("OutputEnumSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + java.util.List symbols; + try { + symbols = + LoaderInstances + .uri_array_of_StringInstance_True_False_None_None + .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + symbols = null; // won't be used but prevents compiler from complaining. + final String __message = "the `symbols` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Enum_name type; + try { + type = + LoaderInstances + .typedsl_Enum_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.name = (java.util.Optional) name; + this.symbols = (java.util.List) symbols; + this.type = (Enum_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("name", "symbols", "type", "label", "doc"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputFormat.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputFormat.java new file mode 100644 index 00000000..6fc88bf8 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputFormat.java @@ -0,0 +1,39 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#OutputFormat
+ */ +public interface OutputFormat extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + Object getFormat(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputParameter.java new file mode 100644 index 00000000..7ff65a02 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputParameter.java @@ -0,0 +1,114 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#OutputParameter
+ */ +public interface OutputParameter extends Parameter, OutputFormat, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + Object getFormat(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputRecordField.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputRecordField.java new file mode 100644 index 00000000..57cc62a4 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputRecordField.java @@ -0,0 +1,130 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#OutputRecordField
This interface is implemented by {@link OutputRecordFieldImpl}
+ */ +public interface OutputRecordField extends CWLRecordField, FieldBase, OutputFormat, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + String getName(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + Object getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + Object getFormat(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputRecordFieldImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputRecordFieldImpl.java new file mode 100644 index 00000000..4d98b3c5 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputRecordFieldImpl.java @@ -0,0 +1,346 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#OutputRecordField
+ */ +public class OutputRecordFieldImpl extends SaveableImpl implements OutputRecordField { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private String name; + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + public String getName() { + return this.name; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + public Object getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional streamable; + + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + public java.util.Optional getStreamable() { + return this.streamable; + } + + private Object format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + public Object getFormat() { + return this.format; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of OutputRecordFieldImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public OutputRecordFieldImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("OutputRecordFieldImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + String name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + if (name == null) { + if (__docRoot != null) { + name = __docRoot; + } else { + throw new ValidationException("Missing name"); + } + } + __baseUri = (String) name; + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object type; + try { + type = + LoaderInstances + .typedsl_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional streamable; + + if (__doc.containsKey("streamable")) { + try { + streamable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + streamable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `streamable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + streamable = null; + } + Object format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.doc = (Object) doc; + this.name = (String) name; + this.type = (Object) type; + this.label = (java.util.Optional) label; + this.secondaryFiles = (Object) secondaryFiles; + this.streamable = (java.util.Optional) streamable; + this.format = (Object) format; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("doc", "name", "type", "label", "secondaryFiles", "streamable", "format"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputRecordSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputRecordSchema.java new file mode 100644 index 00000000..60914e74 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputRecordSchema.java @@ -0,0 +1,63 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#OutputRecordSchema
This interface is implemented by {@link OutputRecordSchemaImpl}
+ */ +public interface OutputRecordSchema extends CWLRecordSchema, OutputSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + java.util.Optional> getFields(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + Record_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputRecordSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputRecordSchemaImpl.java new file mode 100644 index 00000000..8cdacaae --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputRecordSchemaImpl.java @@ -0,0 +1,238 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#OutputRecordSchema
+ */ +public class OutputRecordSchemaImpl extends SaveableImpl implements OutputRecordSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private java.util.Optional> fields; + + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + public java.util.Optional> getFields() { + return this.fields; + } + + private Record_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + public Record_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of OutputRecordSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public OutputRecordSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("OutputRecordSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + java.util.Optional> fields; + + if (__doc.containsKey("fields")) { + try { + fields = + LoaderInstances + .idmap_fields_optional_array_of_OutputRecordField + .loadField(__doc.get("fields"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + fields = null; // won't be used but prevents compiler from complaining. + final String __message = "the `fields` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + fields = null; + } + Record_name type; + try { + type = + LoaderInstances + .typedsl_Record_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.fields = (java.util.Optional>) fields; + this.type = (Record_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.name = (java.util.Optional) name; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("fields", "type", "label", "doc", "name"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputSchema.java new file mode 100644 index 00000000..4980babb --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/OutputSchema.java @@ -0,0 +1,42 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#OutputSchema
+ */ +public interface OutputSchema extends IOSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/Parameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Parameter.java new file mode 100644 index 00000000..70944268 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Parameter.java @@ -0,0 +1,105 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#Parameter
+ Define an input or output parameter to a process. +
+ */ +public interface Parameter extends FieldBase, Documented, Identified, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/PrimitiveType.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/PrimitiveType.java new file mode 100644 index 00000000..a6774d37 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/PrimitiveType.java @@ -0,0 +1,43 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum PrimitiveType { + NULL("null"), + BOOLEAN("boolean"), + INT("int"), + LONG("long"), + FLOAT("float"), + DOUBLE("double"), + STRING("string"); + + private static String[] symbols = new String[] {"null", "boolean", "int", "long", "float", "double", "string"}; + private String docVal; + + private PrimitiveType(final String docVal) { + this.docVal = docVal; + } + + public static PrimitiveType fromDocumentVal(final String docVal) { + for(final PrimitiveType val : PrimitiveType.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", PrimitiveType.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/Process.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Process.java new file mode 100644 index 00000000..270750c2 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Process.java @@ -0,0 +1,107 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#Process
+ + The base executable type in CWL is the `Process` object defined by the + document. Note that the `Process` object is abstract and cannot be + directly executed. +
+ */ +public interface Process extends Identified, Labeled, Documented, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#inputs
+ *
+ * Defines the input parameters of the process. The process is ready to + * run when all required input parameters are associated with concrete + * values. Input parameters include a schema for each parameter which is + * used to validate the input object. It may also be used to build a user + * interface for constructing the input object. + * + * When accepting an input object, all input parameters must have a value. + * If an input parameter is missing from the input object, it must be + * assigned a value of `null` (or the value of `default` for that + * parameter, if provided) for the purposes of validation and evaluation + * of expressions. + * *
+ */ + + java.util.List getInputs(); + /** + * Getter for property https://w3id.org/cwl/cwl#outputs
+ *
+ * Defines the parameters representing the output of the process. May be + * used to generate and/or validate the output object. + * *
+ */ + + java.util.List getOutputs(); + /** + * Getter for property https://w3id.org/cwl/cwl#requirements
+ *
+ * Declares requirements that apply to either the runtime environment or the + * workflow engine that must be met in order to execute this process. If + * an implementation cannot satisfy all requirements, or a requirement is + * listed which is not recognized by the implementation, it is a fatal + * error and the implementation must not attempt to run the process, + * unless overridden at user option. + * *
+ */ + + java.util.Optional> getRequirements(); + /** + * Getter for property https://w3id.org/cwl/cwl#hints
+ *
+ * Declares hints applying to either the runtime environment or the + * workflow engine that may be helpful in executing this process. It is + * not an error if an implementation cannot satisfy all hints, however + * the implementation may report a warning. + * *
+ */ + + java.util.Optional> getHints(); + /** + * Getter for property https://w3id.org/cwl/cwl#cwlVersion
+ *
+ * CWL document version. Always required at the document root. Not + * required for a Process embedded inside another Process. + * *
+ */ + + java.util.Optional getCwlVersion(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ProcessRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ProcessRequirement.java new file mode 100644 index 00000000..2c658b3a --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ProcessRequirement.java @@ -0,0 +1,35 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#ProcessRequirement
+ A process requirement declares a prerequisite that may or must be fulfilled + before executing a process. See [`Process.hints`](#process) and + [`Process.requirements`](#process). + + Process requirements are the primary mechanism for specifying extensions to + the CWL core specification. +
+ */ +public interface ProcessRequirement extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/RecordField.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/RecordField.java new file mode 100644 index 00000000..30249bfd --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/RecordField.java @@ -0,0 +1,54 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/salad#RecordField
This interface is implemented by {@link RecordFieldImpl}
+ A field of a record.
+ */ +public interface RecordField extends Documented, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + String getName(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type. If it is an array, it indicates + * that the field type is a union type of its elements. + * Its elements may be duplicated. + * *
+ */ + + Object getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/RecordFieldImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/RecordFieldImpl.java new file mode 100644 index 00000000..aa1d316a --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/RecordFieldImpl.java @@ -0,0 +1,178 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/salad#RecordField
+ A field of a record.
+ */ +public class RecordFieldImpl extends SaveableImpl implements RecordField { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private String name; + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + public String getName() { + return this.name; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type. If it is an array, it indicates + * that the field type is a union type of its elements. + * Its elements may be duplicated. + * *
+ */ + + public Object getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of RecordFieldImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public RecordFieldImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("RecordFieldImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + String name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + if (name == null) { + if (__docRoot != null) { + name = __docRoot; + } else { + throw new ValidationException("Missing name"); + } + } + __baseUri = (String) name; + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object type; + try { + type = + LoaderInstances + .typedsl_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_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.doc = (Object) doc; + this.name = (String) name; + this.type = (Object) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("doc", "name", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/RecordSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/RecordSchema.java new file mode 100644 index 00000000..d8a5966f --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/RecordSchema.java @@ -0,0 +1,42 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/salad#RecordSchema
This interface is implemented by {@link RecordSchemaImpl}
+ */ +public interface RecordSchema extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + java.util.Optional> getFields(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + Record_name getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/RecordSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/RecordSchemaImpl.java new file mode 100644 index 00000000..38f3f08f --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/RecordSchemaImpl.java @@ -0,0 +1,134 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/salad#RecordSchema
+ */ +public class RecordSchemaImpl extends SaveableImpl implements RecordSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional> fields; + + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + public java.util.Optional> getFields() { + return this.fields; + } + + private Record_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + public Record_name getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of RecordSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public RecordSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("RecordSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional> fields; + + if (__doc.containsKey("fields")) { + try { + fields = + LoaderInstances + .idmap_fields_optional_array_of_RecordField + .loadField(__doc.get("fields"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + fields = null; // won't be used but prevents compiler from complaining. + final String __message = "the `fields` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + fields = null; + } + Record_name type; + try { + type = + LoaderInstances + .typedsl_Record_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.fields = (java.util.Optional>) fields; + this.type = (Record_name) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("fields", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/Record_name.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Record_name.java new file mode 100644 index 00000000..9dad005d --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Record_name.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum Record_name { + RECORD("record"); + + private static String[] symbols = new String[] {"record"}; + private String docVal; + + private Record_name(final String docVal) { + this.docVal = docVal; + } + + public static Record_name fromDocumentVal(final String docVal) { + for(final Record_name val : Record_name.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", Record_name.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ResourceRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ResourceRequirement.java new file mode 100644 index 00000000..469c950e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ResourceRequirement.java @@ -0,0 +1,112 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#ResourceRequirement
This interface is implemented by {@link ResourceRequirementImpl}
+ Specify basic hardware resource requirements. + + "min" is the minimum amount of a resource that must be reserved to schedule + a job. If "min" cannot be satisfied, the job should not be run. + + "max" is the maximum amount of a resource that the job shall be permitted + to use. If a node has sufficient resources, multiple jobs may be scheduled + on a single node provided each job's "max" resource requirements are + met. If a job attempts to exceed its "max" resource allocation, an + implementation may deny additional resources, which may result in job + failure. + + If "min" is specified but "max" is not, then "max" == "min" + If "max" is specified by "min" is not, then "min" == "max". + + It is an error if max < min. + + It is an error if the value of any of these fields is negative. + + If neither "min" nor "max" is specified for a resource, use the default values below. +
+ */ +public interface ResourceRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/class
+ *
+ * Always 'ResourceRequirement' *
+ */ + + ResourceRequirement_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/coresMin
+ *
+ * Minimum reserved number of CPU cores (default is 1) *
+ */ + + Object getCoresMin(); + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/coresMax
+ *
+ * Maximum reserved number of CPU cores *
+ */ + + Object getCoresMax(); + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/ramMin
+ *
+ * Minimum reserved RAM in mebibytes (2**20) (default is 256) *
+ */ + + Object getRamMin(); + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/ramMax
+ *
+ * Maximum reserved RAM in mebibytes (2**20) *
+ */ + + Object getRamMax(); + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/tmpdirMin
+ *
+ * Minimum reserved filesystem based storage for the designated temporary directory, in mebibytes (2**20) (default is 1024) *
+ */ + + Object getTmpdirMin(); + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/tmpdirMax
+ *
+ * Maximum reserved filesystem based storage for the designated temporary directory, in mebibytes (2**20) *
+ */ + + Object getTmpdirMax(); + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/outdirMin
+ *
+ * Minimum reserved filesystem based storage for the designated output directory, in mebibytes (2**20) (default is 1024) *
+ */ + + Object getOutdirMin(); + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/outdirMax
+ *
+ * Maximum reserved filesystem based storage for the designated output directory, in mebibytes (2**20) *
+ */ + + Object getOutdirMax(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ResourceRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ResourceRequirementImpl.java new file mode 100644 index 00000000..8b9de21d --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ResourceRequirementImpl.java @@ -0,0 +1,365 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#ResourceRequirement
+ Specify basic hardware resource requirements. + + "min" is the minimum amount of a resource that must be reserved to schedule + a job. If "min" cannot be satisfied, the job should not be run. + + "max" is the maximum amount of a resource that the job shall be permitted + to use. If a node has sufficient resources, multiple jobs may be scheduled + on a single node provided each job's "max" resource requirements are + met. If a job attempts to exceed its "max" resource allocation, an + implementation may deny additional resources, which may result in job + failure. + + If "min" is specified but "max" is not, then "max" == "min" + If "max" is specified by "min" is not, then "min" == "max". + + It is an error if max < min. + + It is an error if the value of any of these fields is negative. + + If neither "min" nor "max" is specified for a resource, use the default values below. +
+ */ +public class ResourceRequirementImpl extends SaveableImpl implements ResourceRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private ResourceRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/class
+ *
+ * Always 'ResourceRequirement' *
+ */ + + public ResourceRequirement_class getClass_() { + return this.class_; + } + + private Object coresMin; + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/coresMin
+ *
+ * Minimum reserved number of CPU cores (default is 1) *
+ */ + + public Object getCoresMin() { + return this.coresMin; + } + + private Object coresMax; + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/coresMax
+ *
+ * Maximum reserved number of CPU cores *
+ */ + + public Object getCoresMax() { + return this.coresMax; + } + + private Object ramMin; + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/ramMin
+ *
+ * Minimum reserved RAM in mebibytes (2**20) (default is 256) *
+ */ + + public Object getRamMin() { + return this.ramMin; + } + + private Object ramMax; + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/ramMax
+ *
+ * Maximum reserved RAM in mebibytes (2**20) *
+ */ + + public Object getRamMax() { + return this.ramMax; + } + + private Object tmpdirMin; + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/tmpdirMin
+ *
+ * Minimum reserved filesystem based storage for the designated temporary directory, in mebibytes (2**20) (default is 1024) *
+ */ + + public Object getTmpdirMin() { + return this.tmpdirMin; + } + + private Object tmpdirMax; + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/tmpdirMax
+ *
+ * Maximum reserved filesystem based storage for the designated temporary directory, in mebibytes (2**20) *
+ */ + + public Object getTmpdirMax() { + return this.tmpdirMax; + } + + private Object outdirMin; + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/outdirMin
+ *
+ * Minimum reserved filesystem based storage for the designated output directory, in mebibytes (2**20) (default is 1024) *
+ */ + + public Object getOutdirMin() { + return this.outdirMin; + } + + private Object outdirMax; + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/outdirMax
+ *
+ * Maximum reserved filesystem based storage for the designated output directory, in mebibytes (2**20) *
+ */ + + public Object getOutdirMax() { + return this.outdirMax; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of ResourceRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public ResourceRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("ResourceRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + ResourceRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_ResourceRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Object coresMin; + + if (__doc.containsKey("coresMin")) { + try { + coresMin = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_ExpressionLoader + .loadField(__doc.get("coresMin"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + coresMin = null; // won't be used but prevents compiler from complaining. + final String __message = "the `coresMin` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + coresMin = null; + } + Object coresMax; + + if (__doc.containsKey("coresMax")) { + try { + coresMax = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_ExpressionLoader + .loadField(__doc.get("coresMax"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + coresMax = null; // won't be used but prevents compiler from complaining. + final String __message = "the `coresMax` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + coresMax = null; + } + Object ramMin; + + if (__doc.containsKey("ramMin")) { + try { + ramMin = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_ExpressionLoader + .loadField(__doc.get("ramMin"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + ramMin = null; // won't be used but prevents compiler from complaining. + final String __message = "the `ramMin` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + ramMin = null; + } + Object ramMax; + + if (__doc.containsKey("ramMax")) { + try { + ramMax = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_ExpressionLoader + .loadField(__doc.get("ramMax"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + ramMax = null; // won't be used but prevents compiler from complaining. + final String __message = "the `ramMax` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + ramMax = null; + } + Object tmpdirMin; + + if (__doc.containsKey("tmpdirMin")) { + try { + tmpdirMin = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_ExpressionLoader + .loadField(__doc.get("tmpdirMin"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + tmpdirMin = null; // won't be used but prevents compiler from complaining. + final String __message = "the `tmpdirMin` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + tmpdirMin = null; + } + Object tmpdirMax; + + if (__doc.containsKey("tmpdirMax")) { + try { + tmpdirMax = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_ExpressionLoader + .loadField(__doc.get("tmpdirMax"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + tmpdirMax = null; // won't be used but prevents compiler from complaining. + final String __message = "the `tmpdirMax` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + tmpdirMax = null; + } + Object outdirMin; + + if (__doc.containsKey("outdirMin")) { + try { + outdirMin = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_ExpressionLoader + .loadField(__doc.get("outdirMin"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + outdirMin = null; // won't be used but prevents compiler from complaining. + final String __message = "the `outdirMin` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + outdirMin = null; + } + Object outdirMax; + + if (__doc.containsKey("outdirMax")) { + try { + outdirMax = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_ExpressionLoader + .loadField(__doc.get("outdirMax"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + outdirMax = null; // won't be used but prevents compiler from complaining. + final String __message = "the `outdirMax` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + outdirMax = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (ResourceRequirement_class) class_; + this.coresMin = (Object) coresMin; + this.coresMax = (Object) coresMax; + this.ramMin = (Object) ramMin; + this.ramMax = (Object) ramMax; + this.tmpdirMin = (Object) tmpdirMin; + this.tmpdirMax = (Object) tmpdirMax; + this.outdirMin = (Object) outdirMin; + this.outdirMax = (Object) outdirMax; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "coresMin", "coresMax", "ramMin", "ramMax", "tmpdirMin", "tmpdirMax", "outdirMin", "outdirMax"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ResourceRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ResourceRequirement_class.java new file mode 100644 index 00000000..846cbedc --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ResourceRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum ResourceRequirement_class { + RESOURCEREQUIREMENT("ResourceRequirement"); + + private static String[] symbols = new String[] {"ResourceRequirement"}; + private String docVal; + + private ResourceRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static ResourceRequirement_class fromDocumentVal(final String docVal) { + for(final ResourceRequirement_class val : ResourceRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", ResourceRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ScatterFeatureRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ScatterFeatureRequirement.java new file mode 100644 index 00000000..4387e905 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ScatterFeatureRequirement.java @@ -0,0 +1,38 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#ScatterFeatureRequirement
This interface is implemented by {@link ScatterFeatureRequirementImpl}
+ Indicates that the workflow platform must support the `scatter` and + `scatterMethod` fields of [WorkflowStep](#WorkflowStep). +
+ */ +public interface ScatterFeatureRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#ScatterFeatureRequirement/class
+ *
+ * Always 'ScatterFeatureRequirement' *
+ */ + + ScatterFeatureRequirement_class getClass_(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ScatterFeatureRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ScatterFeatureRequirementImpl.java new file mode 100644 index 00000000..ab826911 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ScatterFeatureRequirementImpl.java @@ -0,0 +1,107 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#ScatterFeatureRequirement
+ Indicates that the workflow platform must support the `scatter` and + `scatterMethod` fields of [WorkflowStep](#WorkflowStep). +
+ */ +public class ScatterFeatureRequirementImpl extends SaveableImpl implements ScatterFeatureRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private ScatterFeatureRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#ScatterFeatureRequirement/class
+ *
+ * Always 'ScatterFeatureRequirement' *
+ */ + + public ScatterFeatureRequirement_class getClass_() { + return this.class_; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of ScatterFeatureRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public ScatterFeatureRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("ScatterFeatureRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + ScatterFeatureRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_ScatterFeatureRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (ScatterFeatureRequirement_class) class_; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ScatterFeatureRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ScatterFeatureRequirement_class.java new file mode 100644 index 00000000..63f85244 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ScatterFeatureRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum ScatterFeatureRequirement_class { + SCATTERFEATUREREQUIREMENT("ScatterFeatureRequirement"); + + private static String[] symbols = new String[] {"ScatterFeatureRequirement"}; + private String docVal; + + private ScatterFeatureRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static ScatterFeatureRequirement_class fromDocumentVal(final String docVal) { + for(final ScatterFeatureRequirement_class val : ScatterFeatureRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", ScatterFeatureRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ScatterMethod.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ScatterMethod.java new file mode 100644 index 00000000..dd530a96 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ScatterMethod.java @@ -0,0 +1,39 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum ScatterMethod { + DOTPRODUCT("dotproduct"), + NESTED_CROSSPRODUCT("nested_crossproduct"), + FLAT_CROSSPRODUCT("flat_crossproduct"); + + private static String[] symbols = new String[] {"dotproduct", "nested_crossproduct", "flat_crossproduct"}; + private String docVal; + + private ScatterMethod(final String docVal) { + this.docVal = docVal; + } + + public static ScatterMethod fromDocumentVal(final String docVal) { + for(final ScatterMethod val : ScatterMethod.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", ScatterMethod.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/SchemaDefRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SchemaDefRequirement.java new file mode 100644 index 00000000..9fc51cb2 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SchemaDefRequirement.java @@ -0,0 +1,50 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#SchemaDefRequirement
This interface is implemented by {@link SchemaDefRequirementImpl}
+ This field consists of an array of type definitions which must be used when + interpreting the `inputs` and `outputs` fields. When a `type` field + contain a IRI, the implementation must check if the type is defined in + `schemaDefs` and use that definition. If the type is not found in + `schemaDefs`, it is an error. The entries in `schemaDefs` must be + processed in the order listed such that later schema definitions may refer + to earlier schema definitions. +
+ */ +public interface SchemaDefRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#SchemaDefRequirement/class
+ *
+ * Always 'SchemaDefRequirement' *
+ */ + + SchemaDefRequirement_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#SchemaDefRequirement/types
+ *
+ * The list of type definitions. *
+ */ + + java.util.List getTypes(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/SchemaDefRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SchemaDefRequirementImpl.java new file mode 100644 index 00000000..6ad1720f --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SchemaDefRequirementImpl.java @@ -0,0 +1,136 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#SchemaDefRequirement
+ This field consists of an array of type definitions which must be used when + interpreting the `inputs` and `outputs` fields. When a `type` field + contain a IRI, the implementation must check if the type is defined in + `schemaDefs` and use that definition. If the type is not found in + `schemaDefs`, it is an error. The entries in `schemaDefs` must be + processed in the order listed such that later schema definitions may refer + to earlier schema definitions. +
+ */ +public class SchemaDefRequirementImpl extends SaveableImpl implements SchemaDefRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private SchemaDefRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#SchemaDefRequirement/class
+ *
+ * Always 'SchemaDefRequirement' *
+ */ + + public SchemaDefRequirement_class getClass_() { + return this.class_; + } + + private java.util.List types; + + /** + * Getter for property https://w3id.org/cwl/cwl#SchemaDefRequirement/types
+ *
+ * The list of type definitions. *
+ */ + + public java.util.List getTypes() { + return this.types; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of SchemaDefRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public SchemaDefRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("SchemaDefRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + SchemaDefRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_SchemaDefRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.List types; + try { + types = + LoaderInstances + .array_of_union_of_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema + .loadField(__doc.get("types"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + types = null; // won't be used but prevents compiler from complaining. + final String __message = "the `types` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (SchemaDefRequirement_class) class_; + this.types = (java.util.List) types; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "types"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/SchemaDefRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SchemaDefRequirement_class.java new file mode 100644 index 00000000..22a8cb87 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SchemaDefRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum SchemaDefRequirement_class { + SCHEMADEFREQUIREMENT("SchemaDefRequirement"); + + private static String[] symbols = new String[] {"SchemaDefRequirement"}; + private String docVal; + + private SchemaDefRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static SchemaDefRequirement_class fromDocumentVal(final String docVal) { + for(final SchemaDefRequirement_class val : SchemaDefRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", SchemaDefRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/SecondaryFileSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SecondaryFileSchema.java new file mode 100644 index 00000000..805ed37d --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SecondaryFileSchema.java @@ -0,0 +1,77 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#SecondaryFileSchema
This interface is implemented by {@link SecondaryFileSchemaImpl}
+ */ +public interface SecondaryFileSchema extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#SecondaryFileSchema/pattern
+ *
+ * Provides a pattern or expression specifying files or directories that + * should be included alongside the primary file. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getPattern(); + /** + * Getter for property https://w3id.org/cwl/cwl#SecondaryFileSchema/required
+ *
+ * An implementation must not fail workflow execution if `required` is + * set to `false` and the expected secondary file does not exist. + * Default value for `required` field is `true` for secondary files on + * input and `false` for secondary files on output. + * *
+ */ + + Object getRequired(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/SecondaryFileSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SecondaryFileSchemaImpl.java new file mode 100644 index 00000000..38f071e3 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SecondaryFileSchemaImpl.java @@ -0,0 +1,169 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#SecondaryFileSchema
+ */ +public class SecondaryFileSchemaImpl extends SaveableImpl implements SecondaryFileSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private Object pattern; + + /** + * Getter for property https://w3id.org/cwl/cwl#SecondaryFileSchema/pattern
+ *
+ * Provides a pattern or expression specifying files or directories that + * should be included alongside the primary file. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getPattern() { + return this.pattern; + } + + private Object required; + + /** + * Getter for property https://w3id.org/cwl/cwl#SecondaryFileSchema/required
+ *
+ * An implementation must not fail workflow execution if `required` is + * set to `false` and the expected secondary file does not exist. + * Default value for `required` field is `true` for secondary files on + * input and `false` for secondary files on output. + * *
+ */ + + public Object getRequired() { + return this.required; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of SecondaryFileSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public SecondaryFileSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("SecondaryFileSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + Object pattern; + try { + pattern = + LoaderInstances + .union_of_StringInstance_or_ExpressionLoader + .loadField(__doc.get("pattern"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + pattern = null; // won't be used but prevents compiler from complaining. + final String __message = "the `pattern` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Object required; + + if (__doc.containsKey("required")) { + try { + required = + LoaderInstances + .union_of_NullInstance_or_BooleanInstance_or_ExpressionLoader + .loadField(__doc.get("required"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + required = null; // won't be used but prevents compiler from complaining. + final String __message = "the `required` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + required = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.pattern = (Object) pattern; + this.required = (Object) required; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("pattern", "required"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ShellCommandRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ShellCommandRequirement.java new file mode 100644 index 00000000..1ed7d619 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ShellCommandRequirement.java @@ -0,0 +1,43 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#ShellCommandRequirement
This interface is implemented by {@link ShellCommandRequirementImpl}
+ Modify the behavior of CommandLineTool to generate a single string + containing a shell command line. Each item in the argument list must be + joined into a string separated by single spaces and quoted to prevent + intepretation by the shell, unless `CommandLineBinding` for that argument + contains `shellQuote: false`. If `shellQuote: false` is specified, the + argument is joined into the command string without quoting, which allows + the use of shell metacharacters such as `|` for pipes. +
+ */ +public interface ShellCommandRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#ShellCommandRequirement/class
+ *
+ * Always 'ShellCommandRequirement' *
+ */ + + ShellCommandRequirement_class getClass_(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ShellCommandRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ShellCommandRequirementImpl.java new file mode 100644 index 00000000..2c8a635c --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ShellCommandRequirementImpl.java @@ -0,0 +1,112 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#ShellCommandRequirement
+ Modify the behavior of CommandLineTool to generate a single string + containing a shell command line. Each item in the argument list must be + joined into a string separated by single spaces and quoted to prevent + intepretation by the shell, unless `CommandLineBinding` for that argument + contains `shellQuote: false`. If `shellQuote: false` is specified, the + argument is joined into the command string without quoting, which allows + the use of shell metacharacters such as `|` for pipes. +
+ */ +public class ShellCommandRequirementImpl extends SaveableImpl implements ShellCommandRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private ShellCommandRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#ShellCommandRequirement/class
+ *
+ * Always 'ShellCommandRequirement' *
+ */ + + public ShellCommandRequirement_class getClass_() { + return this.class_; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of ShellCommandRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public ShellCommandRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("ShellCommandRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + ShellCommandRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_ShellCommandRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (ShellCommandRequirement_class) class_; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ShellCommandRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ShellCommandRequirement_class.java new file mode 100644 index 00000000..29dea997 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ShellCommandRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum ShellCommandRequirement_class { + SHELLCOMMANDREQUIREMENT("ShellCommandRequirement"); + + private static String[] symbols = new String[] {"ShellCommandRequirement"}; + private String docVal; + + private ShellCommandRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static ShellCommandRequirement_class fromDocumentVal(final String docVal) { + for(final ShellCommandRequirement_class val : ShellCommandRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", ShellCommandRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/Sink.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Sink.java new file mode 100644 index 00000000..ea563d9d --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Sink.java @@ -0,0 +1,46 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#Sink
+ */ +public interface Sink extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#source
+ *
+ * Specifies one or more workflow parameters that will provide input to + * the underlying step parameter. + * *
+ */ + + Object getSource(); + /** + * Getter for property https://w3id.org/cwl/cwl#Sink/linkMerge
+ *
+ * The method to use to merge multiple inbound links into a single array. + * If not specified, the default method is "merge_nested". + * *
+ */ + + java.util.Optional getLinkMerge(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/SoftwarePackage.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SoftwarePackage.java new file mode 100644 index 00000000..d30b9d69 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SoftwarePackage.java @@ -0,0 +1,95 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#SoftwarePackage
This interface is implemented by {@link SoftwarePackageImpl}
+ */ +public interface SoftwarePackage extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/package
+ *
+ * The name of the software to be made available. If the name is + * common, inconsistent, or otherwise ambiguous it should be combined with + * one or more identifiers in the `specs` field. + * *
+ */ + + String getPackage(); + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/version
+ *
+ * The (optional) versions of the software that are known to be + * compatible. + * *
+ */ + + java.util.Optional> getVersion(); + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/specs
+ *
+ * One or more [IRI](https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier)s + * identifying resources for installing or enabling the software named in + * the `package` field. Implementations may provide resolvers which map + * these software identifer IRIs to some configuration action; or they can + * use only the name from the `package` field on a best effort basis. + * + * For example, the IRI https://packages.debian.org/bowtie could + * be resolved with `apt-get install bowtie`. The IRI + * https://anaconda.org/bioconda/bowtie could be resolved with `conda + * install -c bioconda bowtie`. + * + * IRIs can also be system independent and used to map to a specific + * software installation or selection mechanism. + * Using [RRID](https://www.identifiers.org/rrid/) as an example: + * https://identifiers.org/rrid/RRID:SCR_005476 + * could be fulfilled using the above mentioned Debian or bioconda + * package, a local installation managed by [Environement Modules](http://modules.sourceforge.net/), + * or any other mechanism the platform chooses. IRIs can also be from + * identifer sources that are discipline specific yet still system + * independent. As an example, the equivalent [ELIXIR Tools and Data + * Service Registry](https://bio.tools) IRI to the previous RRID example is + * https://bio.tools/tool/bowtie2/version/2.2.8. + * If supported by a given registry, implementations are encouraged to + * query these system independent sofware identifier IRIs directly for + * links to packaging systems. + * + * A site specific IRI can be listed as well. For example, an academic + * computing cluster using Environement Modules could list the IRI + * `https://hpc.example.edu/modules/bowtie-tbb/1.22` to indicate that + * `module load bowtie-tbb/1.1.2` should be executed to make available + * `bowtie` version 1.1.2 compiled with the TBB library prior to running + * the accompanying Workflow or CommandLineTool. Note that the example IRI + * is specific to a particular institution and computing environment as + * the Environment Modules system does not have a common namespace or + * standardized naming convention. + * + * This last example is the least portable and should only be used if + * mechanisms based off of the `package` field or more generic IRIs are + * unavailable or unsuitable. While harmless to other sites, site specific + * software IRIs should be left out of shared CWL descriptions to avoid + * clutter. + * *
+ */ + + java.util.Optional> getSpecs(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/SoftwarePackageImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SoftwarePackageImpl.java new file mode 100644 index 00000000..fd5445fa --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SoftwarePackageImpl.java @@ -0,0 +1,210 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#SoftwarePackage
+ */ +public class SoftwarePackageImpl extends SaveableImpl implements SoftwarePackage { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private String package_; + + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/package
+ *
+ * The name of the software to be made available. If the name is + * common, inconsistent, or otherwise ambiguous it should be combined with + * one or more identifiers in the `specs` field. + * *
+ */ + + public String getPackage() { + return this.package_; + } + + private java.util.Optional> version; + + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/version
+ *
+ * The (optional) versions of the software that are known to be + * compatible. + * *
+ */ + + public java.util.Optional> getVersion() { + return this.version; + } + + private java.util.Optional> specs; + + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/specs
+ *
+ * One or more [IRI](https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier)s + * identifying resources for installing or enabling the software named in + * the `package` field. Implementations may provide resolvers which map + * these software identifer IRIs to some configuration action; or they can + * use only the name from the `package` field on a best effort basis. + * + * For example, the IRI https://packages.debian.org/bowtie could + * be resolved with `apt-get install bowtie`. The IRI + * https://anaconda.org/bioconda/bowtie could be resolved with `conda + * install -c bioconda bowtie`. + * + * IRIs can also be system independent and used to map to a specific + * software installation or selection mechanism. + * Using [RRID](https://www.identifiers.org/rrid/) as an example: + * https://identifiers.org/rrid/RRID:SCR_005476 + * could be fulfilled using the above mentioned Debian or bioconda + * package, a local installation managed by [Environement Modules](http://modules.sourceforge.net/), + * or any other mechanism the platform chooses. IRIs can also be from + * identifer sources that are discipline specific yet still system + * independent. As an example, the equivalent [ELIXIR Tools and Data + * Service Registry](https://bio.tools) IRI to the previous RRID example is + * https://bio.tools/tool/bowtie2/version/2.2.8. + * If supported by a given registry, implementations are encouraged to + * query these system independent sofware identifier IRIs directly for + * links to packaging systems. + * + * A site specific IRI can be listed as well. For example, an academic + * computing cluster using Environement Modules could list the IRI + * `https://hpc.example.edu/modules/bowtie-tbb/1.22` to indicate that + * `module load bowtie-tbb/1.1.2` should be executed to make available + * `bowtie` version 1.1.2 compiled with the TBB library prior to running + * the accompanying Workflow or CommandLineTool. Note that the example IRI + * is specific to a particular institution and computing environment as + * the Environment Modules system does not have a common namespace or + * standardized naming convention. + * + * This last example is the least portable and should only be used if + * mechanisms based off of the `package` field or more generic IRIs are + * unavailable or unsuitable. While harmless to other sites, site specific + * software IRIs should be left out of shared CWL descriptions to avoid + * clutter. + * *
+ */ + + public java.util.Optional> getSpecs() { + return this.specs; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of SoftwarePackageImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public SoftwarePackageImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("SoftwarePackageImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + String package_; + try { + package_ = + LoaderInstances + .StringInstance + .loadField(__doc.get("package"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + package_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `package` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional> version; + + if (__doc.containsKey("version")) { + try { + version = + LoaderInstances + .optional_array_of_StringInstance + .loadField(__doc.get("version"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + version = null; // won't be used but prevents compiler from complaining. + final String __message = "the `version` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + version = null; + } + java.util.Optional> specs; + + if (__doc.containsKey("specs")) { + try { + specs = + LoaderInstances + .uri_optional_array_of_StringInstance_False_False_None_True + .loadField(__doc.get("specs"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + specs = null; // won't be used but prevents compiler from complaining. + final String __message = "the `specs` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + specs = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.package_ = (String) package_; + this.version = (java.util.Optional>) version; + this.specs = (java.util.Optional>) specs; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("package", "version", "specs"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/SoftwareRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SoftwareRequirement.java new file mode 100644 index 00000000..88a6940e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SoftwareRequirement.java @@ -0,0 +1,45 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#SoftwareRequirement
This interface is implemented by {@link SoftwareRequirementImpl}
+ A list of software packages that should be configured in the environment of + the defined process. +
+ */ +public interface SoftwareRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwareRequirement/class
+ *
+ * Always 'SoftwareRequirement' *
+ */ + + SoftwareRequirement_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwareRequirement/packages
+ *
+ * The list of software to be configured. *
+ */ + + java.util.List getPackages(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/SoftwareRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SoftwareRequirementImpl.java new file mode 100644 index 00000000..9f623c3f --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SoftwareRequirementImpl.java @@ -0,0 +1,131 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#SoftwareRequirement
+ A list of software packages that should be configured in the environment of + the defined process. +
+ */ +public class SoftwareRequirementImpl extends SaveableImpl implements SoftwareRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private SoftwareRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwareRequirement/class
+ *
+ * Always 'SoftwareRequirement' *
+ */ + + public SoftwareRequirement_class getClass_() { + return this.class_; + } + + private java.util.List packages; + + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwareRequirement/packages
+ *
+ * The list of software to be configured. *
+ */ + + public java.util.List getPackages() { + return this.packages; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of SoftwareRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public SoftwareRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("SoftwareRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + SoftwareRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_SoftwareRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.List packages; + try { + packages = + LoaderInstances + .idmap_packages_array_of_SoftwarePackage + .loadField(__doc.get("packages"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + packages = null; // won't be used but prevents compiler from complaining. + final String __message = "the `packages` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (SoftwareRequirement_class) class_; + this.packages = (java.util.List) packages; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "packages"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/SoftwareRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SoftwareRequirement_class.java new file mode 100644 index 00000000..ae0fa1e6 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SoftwareRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum SoftwareRequirement_class { + SOFTWAREREQUIREMENT("SoftwareRequirement"); + + private static String[] symbols = new String[] {"SoftwareRequirement"}; + private String docVal; + + private SoftwareRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static SoftwareRequirement_class fromDocumentVal(final String docVal) { + for(final SoftwareRequirement_class val : SoftwareRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", SoftwareRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/StepInputExpressionRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/StepInputExpressionRequirement.java new file mode 100644 index 00000000..e6363436 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/StepInputExpressionRequirement.java @@ -0,0 +1,38 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#StepInputExpressionRequirement
This interface is implemented by {@link StepInputExpressionRequirementImpl}
+ Indicate that the workflow platform must support the `valueFrom` field + of [WorkflowStepInput](#WorkflowStepInput). +
+ */ +public interface StepInputExpressionRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#StepInputExpressionRequirement/class
+ *
+ * Always 'StepInputExpressionRequirement' *
+ */ + + StepInputExpressionRequirement_class getClass_(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/StepInputExpressionRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/StepInputExpressionRequirementImpl.java new file mode 100644 index 00000000..2bf4d2ce --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/StepInputExpressionRequirementImpl.java @@ -0,0 +1,107 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#StepInputExpressionRequirement
+ Indicate that the workflow platform must support the `valueFrom` field + of [WorkflowStepInput](#WorkflowStepInput). +
+ */ +public class StepInputExpressionRequirementImpl extends SaveableImpl implements StepInputExpressionRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private StepInputExpressionRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#StepInputExpressionRequirement/class
+ *
+ * Always 'StepInputExpressionRequirement' *
+ */ + + public StepInputExpressionRequirement_class getClass_() { + return this.class_; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of StepInputExpressionRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public StepInputExpressionRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("StepInputExpressionRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + StepInputExpressionRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_StepInputExpressionRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (StepInputExpressionRequirement_class) class_; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/StepInputExpressionRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/StepInputExpressionRequirement_class.java new file mode 100644 index 00000000..a6bf0b81 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/StepInputExpressionRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum StepInputExpressionRequirement_class { + STEPINPUTEXPRESSIONREQUIREMENT("StepInputExpressionRequirement"); + + private static String[] symbols = new String[] {"StepInputExpressionRequirement"}; + private String docVal; + + private StepInputExpressionRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static StepInputExpressionRequirement_class fromDocumentVal(final String docVal) { + for(final StepInputExpressionRequirement_class val : StepInputExpressionRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", StepInputExpressionRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/SubworkflowFeatureRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SubworkflowFeatureRequirement.java new file mode 100644 index 00000000..ce5d6ae1 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SubworkflowFeatureRequirement.java @@ -0,0 +1,38 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#SubworkflowFeatureRequirement
This interface is implemented by {@link SubworkflowFeatureRequirementImpl}
+ Indicates that the workflow platform must support nested workflows in + the `run` field of [WorkflowStep](#WorkflowStep). +
+ */ +public interface SubworkflowFeatureRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#SubworkflowFeatureRequirement/class
+ *
+ * Always 'SubworkflowFeatureRequirement' *
+ */ + + SubworkflowFeatureRequirement_class getClass_(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/SubworkflowFeatureRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SubworkflowFeatureRequirementImpl.java new file mode 100644 index 00000000..230383db --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SubworkflowFeatureRequirementImpl.java @@ -0,0 +1,107 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#SubworkflowFeatureRequirement
+ Indicates that the workflow platform must support nested workflows in + the `run` field of [WorkflowStep](#WorkflowStep). +
+ */ +public class SubworkflowFeatureRequirementImpl extends SaveableImpl implements SubworkflowFeatureRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private SubworkflowFeatureRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#SubworkflowFeatureRequirement/class
+ *
+ * Always 'SubworkflowFeatureRequirement' *
+ */ + + public SubworkflowFeatureRequirement_class getClass_() { + return this.class_; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of SubworkflowFeatureRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public SubworkflowFeatureRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("SubworkflowFeatureRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + SubworkflowFeatureRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_SubworkflowFeatureRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (SubworkflowFeatureRequirement_class) class_; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/SubworkflowFeatureRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SubworkflowFeatureRequirement_class.java new file mode 100644 index 00000000..63d465dd --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/SubworkflowFeatureRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum SubworkflowFeatureRequirement_class { + SUBWORKFLOWFEATUREREQUIREMENT("SubworkflowFeatureRequirement"); + + private static String[] symbols = new String[] {"SubworkflowFeatureRequirement"}; + private String docVal; + + private SubworkflowFeatureRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static SubworkflowFeatureRequirement_class fromDocumentVal(final String docVal) { + for(final SubworkflowFeatureRequirement_class val : SubworkflowFeatureRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", SubworkflowFeatureRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ToolTimeLimit.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ToolTimeLimit.java new file mode 100644 index 00000000..0c738c6e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ToolTimeLimit.java @@ -0,0 +1,52 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#ToolTimeLimit
This interface is implemented by {@link ToolTimeLimitImpl}
+ Set an upper limit on the execution time of a CommandLineTool. + A CommandLineTool whose execution duration exceeds the time + limit may be preemptively terminated and considered failed. + May also be used by batch systems to make scheduling decisions. + The execution duration excludes external operations, such as + staging of files, pulling a docker image etc, and only counts + wall-time for the execution of the command line itself. +
+ */ +public interface ToolTimeLimit extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#ToolTimeLimit/class
+ *
+ * Always 'ToolTimeLimit' *
+ */ + + ToolTimeLimit_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#ToolTimeLimit/timelimit
+ *
+ * The time limit, in seconds. A time limit of zero means no + * time limit. Negative time limits are an error. + * *
+ */ + + Object getTimelimit(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ToolTimeLimitImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ToolTimeLimitImpl.java new file mode 100644 index 00000000..2b4954d9 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ToolTimeLimitImpl.java @@ -0,0 +1,138 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#ToolTimeLimit
+ Set an upper limit on the execution time of a CommandLineTool. + A CommandLineTool whose execution duration exceeds the time + limit may be preemptively terminated and considered failed. + May also be used by batch systems to make scheduling decisions. + The execution duration excludes external operations, such as + staging of files, pulling a docker image etc, and only counts + wall-time for the execution of the command line itself. +
+ */ +public class ToolTimeLimitImpl extends SaveableImpl implements ToolTimeLimit { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private ToolTimeLimit_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#ToolTimeLimit/class
+ *
+ * Always 'ToolTimeLimit' *
+ */ + + public ToolTimeLimit_class getClass_() { + return this.class_; + } + + private Object timelimit; + + /** + * Getter for property https://w3id.org/cwl/cwl#ToolTimeLimit/timelimit
+ *
+ * The time limit, in seconds. A time limit of zero means no + * time limit. Negative time limits are an error. + * *
+ */ + + public Object getTimelimit() { + return this.timelimit; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of ToolTimeLimitImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public ToolTimeLimitImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("ToolTimeLimitImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + ToolTimeLimit_class class_; + try { + class_ = + LoaderInstances + .uri_ToolTimeLimit_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Object timelimit; + try { + timelimit = + LoaderInstances + .union_of_IntegerInstance_or_LongInstance_or_ExpressionLoader + .loadField(__doc.get("timelimit"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + timelimit = null; // won't be used but prevents compiler from complaining. + final String __message = "the `timelimit` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (ToolTimeLimit_class) class_; + this.timelimit = (Object) timelimit; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "timelimit"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/ToolTimeLimit_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ToolTimeLimit_class.java new file mode 100644 index 00000000..078a8f0c --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/ToolTimeLimit_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum ToolTimeLimit_class { + TOOLTIMELIMIT("ToolTimeLimit"); + + private static String[] symbols = new String[] {"ToolTimeLimit"}; + private String docVal; + + private ToolTimeLimit_class(final String docVal) { + this.docVal = docVal; + } + + public static ToolTimeLimit_class fromDocumentVal(final String docVal) { + for(final ToolTimeLimit_class val : ToolTimeLimit_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", ToolTimeLimit_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/UnionSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/UnionSchema.java new file mode 100644 index 00000000..52067ba2 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/UnionSchema.java @@ -0,0 +1,42 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/salad#UnionSchema
This interface is implemented by {@link UnionSchemaImpl}
+ */ +public interface UnionSchema extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#names
+ *
+ * Defines the type of the union elements. *
+ */ + + Object getNames(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `union` *
+ */ + + Union_name getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/UnionSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/UnionSchemaImpl.java new file mode 100644 index 00000000..ed701215 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/UnionSchemaImpl.java @@ -0,0 +1,128 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/salad#UnionSchema
+ */ +public class UnionSchemaImpl extends SaveableImpl implements UnionSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private Object names; + + /** + * Getter for property https://w3id.org/cwl/salad#names
+ *
+ * Defines the type of the union elements. *
+ */ + + public Object getNames() { + return this.names; + } + + private Union_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `union` *
+ */ + + public Union_name getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of UnionSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public UnionSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("UnionSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + Object names; + try { + names = + LoaderInstances + .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 + .loadField(__doc.get("names"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + names = null; // won't be used but prevents compiler from complaining. + final String __message = "the `names` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Union_name type; + try { + type = + LoaderInstances + .typedsl_Union_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.names = (Object) names; + this.type = (Union_name) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("names", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/Union_name.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Union_name.java new file mode 100644 index 00000000..c7d160c6 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Union_name.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum Union_name { + UNION("union"); + + private static String[] symbols = new String[] {"union"}; + private String docVal; + + private Union_name(final String docVal) { + this.docVal = docVal; + } + + public static Union_name fromDocumentVal(final String docVal) { + for(final Union_name val : Union_name.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", Union_name.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkReuse.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkReuse.java new file mode 100644 index 00000000..e3de98d8 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkReuse.java @@ -0,0 +1,51 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#WorkReuse
This interface is implemented by {@link WorkReuseImpl}
+ For implementations that support reusing output from past work (on + the assumption that same code and same input produce same + results), control whether to enable or disable the reuse behavior + for a particular tool or step (to accomodate situations where that + assumption is incorrect). A reused step is not executed but + instead returns the same output as the original execution. + + If `enableReuse` is not specified, correct tools should assume it + is enabled by default. +
+ */ +public interface WorkReuse extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#WorkReuse/class
+ *
+ * Always 'WorkReuse' *
+ */ + + WorkReuse_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#WorkReuse/enableReuse
+ + */ + + Object getEnableReuse(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkReuseImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkReuseImpl.java new file mode 100644 index 00000000..5e1f2448 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkReuseImpl.java @@ -0,0 +1,137 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkReuse
+ For implementations that support reusing output from past work (on + the assumption that same code and same input produce same + results), control whether to enable or disable the reuse behavior + for a particular tool or step (to accomodate situations where that + assumption is incorrect). A reused step is not executed but + instead returns the same output as the original execution. + + If `enableReuse` is not specified, correct tools should assume it + is enabled by default. +
+ */ +public class WorkReuseImpl extends SaveableImpl implements WorkReuse { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private WorkReuse_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#WorkReuse/class
+ *
+ * Always 'WorkReuse' *
+ */ + + public WorkReuse_class getClass_() { + return this.class_; + } + + private Object enableReuse; + + /** + * Getter for property https://w3id.org/cwl/cwl#WorkReuse/enableReuse
+ + */ + + public Object getEnableReuse() { + return this.enableReuse; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of WorkReuseImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public WorkReuseImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("WorkReuseImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + WorkReuse_class class_; + try { + class_ = + LoaderInstances + .uri_WorkReuse_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Object enableReuse; + try { + enableReuse = + LoaderInstances + .union_of_BooleanInstance_or_ExpressionLoader + .loadField(__doc.get("enableReuse"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + enableReuse = null; // won't be used but prevents compiler from complaining. + final String __message = "the `enableReuse` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (WorkReuse_class) class_; + this.enableReuse = (Object) enableReuse; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "enableReuse"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkReuse_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkReuse_class.java new file mode 100644 index 00000000..756e2a46 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkReuse_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum WorkReuse_class { + WORKREUSE("WorkReuse"); + + private static String[] symbols = new String[] {"WorkReuse"}; + private String docVal; + + private WorkReuse_class(final String docVal) { + this.docVal = docVal; + } + + public static WorkReuse_class fromDocumentVal(final String docVal) { + for(final WorkReuse_class val : WorkReuse_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", WorkReuse_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/Workflow.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Workflow.java new file mode 100644 index 00000000..400b8e3b --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Workflow.java @@ -0,0 +1,172 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#Workflow
This interface is implemented by {@link WorkflowImpl}
+ A workflow describes a set of **steps** and the **dependencies** between + those steps. When a step produces output that will be consumed by a + second step, the first step is a dependency of the second step. + + When there is a dependency, the workflow engine must execute the preceding + step and wait for it to successfully produce output before executing the + dependent step. If two steps are defined in the workflow graph that + are not directly or indirectly dependent, these steps are **independent**, + and may execute in any order or execute concurrently. A workflow is + complete when all steps have been executed. + + Dependencies between parameters are expressed using the `source` field on + [workflow step input parameters](#WorkflowStepInput) and [workflow output + parameters](#WorkflowOutputParameter). + + The `source` field expresses the dependency of one parameter on another + such that when a value is associated with the parameter specified by + `source`, that value is propagated to the destination parameter. When all + data links inbound to a given step are fufilled, the step is ready to + execute. + + ## Workflow success and failure + + A completed step must result in one of `success`, `temporaryFailure` or + `permanentFailure` states. An implementation may choose to retry a step + execution which resulted in `temporaryFailure`. An implementation may + choose to either continue running other steps of a workflow, or terminate + immediately upon `permanentFailure`. + + * If any step of a workflow execution results in `permanentFailure`, then + the workflow status is `permanentFailure`. + + * If one or more steps result in `temporaryFailure` and all other steps + complete `success` or are not executed, then the workflow status is + `temporaryFailure`. + + * If all workflow steps are executed and complete with `success`, then the + workflow status is `success`. + + # Extensions + + [ScatterFeatureRequirement](#ScatterFeatureRequirement) and + [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) are + available as standard [extensions](#Extensions_and_Metadata) to core + workflow semantics. +
+ */ +public interface Workflow extends Process, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#Workflow/class
+ + */ + + Workflow_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#inputs
+ *
+ * Defines the input parameters of the process. The process is ready to + * run when all required input parameters are associated with concrete + * values. Input parameters include a schema for each parameter which is + * used to validate the input object. It may also be used to build a user + * interface for constructing the input object. + * + * When accepting an input object, all input parameters must have a value. + * If an input parameter is missing from the input object, it must be + * assigned a value of `null` (or the value of `default` for that + * parameter, if provided) for the purposes of validation and evaluation + * of expressions. + * *
+ */ + + java.util.List getInputs(); + /** + * Getter for property https://w3id.org/cwl/cwl#outputs
+ *
+ * Defines the parameters representing the output of the process. May be + * used to generate and/or validate the output object. + * *
+ */ + + java.util.List getOutputs(); + /** + * Getter for property https://w3id.org/cwl/cwl#requirements
+ *
+ * Declares requirements that apply to either the runtime environment or the + * workflow engine that must be met in order to execute this process. If + * an implementation cannot satisfy all requirements, or a requirement is + * listed which is not recognized by the implementation, it is a fatal + * error and the implementation must not attempt to run the process, + * unless overridden at user option. + * *
+ */ + + java.util.Optional> getRequirements(); + /** + * Getter for property https://w3id.org/cwl/cwl#hints
+ *
+ * Declares hints applying to either the runtime environment or the + * workflow engine that may be helpful in executing this process. It is + * not an error if an implementation cannot satisfy all hints, however + * the implementation may report a warning. + * *
+ */ + + java.util.Optional> getHints(); + /** + * Getter for property https://w3id.org/cwl/cwl#cwlVersion
+ *
+ * CWL document version. Always required at the document root. Not + * required for a Process embedded inside another Process. + * *
+ */ + + java.util.Optional getCwlVersion(); + /** + * Getter for property https://w3id.org/cwl/cwl#Workflow/steps
+ *
+ * The individual steps that make up the workflow. Each step is executed when all of its + * input data links are fufilled. An implementation may choose to execute + * the steps in a different order than listed and/or execute steps + * concurrently, provided that dependencies between steps are met. + * *
+ */ + + java.util.List getSteps(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowImpl.java new file mode 100644 index 00000000..bdf7c0c6 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowImpl.java @@ -0,0 +1,444 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#Workflow
+ A workflow describes a set of **steps** and the **dependencies** between + those steps. When a step produces output that will be consumed by a + second step, the first step is a dependency of the second step. + + When there is a dependency, the workflow engine must execute the preceding + step and wait for it to successfully produce output before executing the + dependent step. If two steps are defined in the workflow graph that + are not directly or indirectly dependent, these steps are **independent**, + and may execute in any order or execute concurrently. A workflow is + complete when all steps have been executed. + + Dependencies between parameters are expressed using the `source` field on + [workflow step input parameters](#WorkflowStepInput) and [workflow output + parameters](#WorkflowOutputParameter). + + The `source` field expresses the dependency of one parameter on another + such that when a value is associated with the parameter specified by + `source`, that value is propagated to the destination parameter. When all + data links inbound to a given step are fufilled, the step is ready to + execute. + + ## Workflow success and failure + + A completed step must result in one of `success`, `temporaryFailure` or + `permanentFailure` states. An implementation may choose to retry a step + execution which resulted in `temporaryFailure`. An implementation may + choose to either continue running other steps of a workflow, or terminate + immediately upon `permanentFailure`. + + * If any step of a workflow execution results in `permanentFailure`, then + the workflow status is `permanentFailure`. + + * If one or more steps result in `temporaryFailure` and all other steps + complete `success` or are not executed, then the workflow status is + `temporaryFailure`. + + * If all workflow steps are executed and complete with `success`, then the + workflow status is `success`. + + # Extensions + + [ScatterFeatureRequirement](#ScatterFeatureRequirement) and + [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) are + available as standard [extensions](#Extensions_and_Metadata) to core + workflow semantics. +
+ */ +public class WorkflowImpl extends SaveableImpl implements Workflow { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private Workflow_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#Workflow/class
+ + */ + + public Workflow_class getClass_() { + return this.class_; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private java.util.List inputs; + + /** + * Getter for property https://w3id.org/cwl/cwl#inputs
+ *
+ * Defines the input parameters of the process. The process is ready to + * run when all required input parameters are associated with concrete + * values. Input parameters include a schema for each parameter which is + * used to validate the input object. It may also be used to build a user + * interface for constructing the input object. + * + * When accepting an input object, all input parameters must have a value. + * If an input parameter is missing from the input object, it must be + * assigned a value of `null` (or the value of `default` for that + * parameter, if provided) for the purposes of validation and evaluation + * of expressions. + * *
+ */ + + public java.util.List getInputs() { + return this.inputs; + } + + private java.util.List outputs; + + /** + * Getter for property https://w3id.org/cwl/cwl#outputs
+ *
+ * Defines the parameters representing the output of the process. May be + * used to generate and/or validate the output object. + * *
+ */ + + public java.util.List getOutputs() { + return this.outputs; + } + + private java.util.Optional> requirements; + + /** + * Getter for property https://w3id.org/cwl/cwl#requirements
+ *
+ * Declares requirements that apply to either the runtime environment or the + * workflow engine that must be met in order to execute this process. If + * an implementation cannot satisfy all requirements, or a requirement is + * listed which is not recognized by the implementation, it is a fatal + * error and the implementation must not attempt to run the process, + * unless overridden at user option. + * *
+ */ + + public java.util.Optional> getRequirements() { + return this.requirements; + } + + private java.util.Optional> hints; + + /** + * Getter for property https://w3id.org/cwl/cwl#hints
+ *
+ * Declares hints applying to either the runtime environment or the + * workflow engine that may be helpful in executing this process. It is + * not an error if an implementation cannot satisfy all hints, however + * the implementation may report a warning. + * *
+ */ + + public java.util.Optional> getHints() { + return this.hints; + } + + private java.util.Optional cwlVersion; + + /** + * Getter for property https://w3id.org/cwl/cwl#cwlVersion
+ *
+ * CWL document version. Always required at the document root. Not + * required for a Process embedded inside another Process. + * *
+ */ + + public java.util.Optional getCwlVersion() { + return this.cwlVersion; + } + + private java.util.List steps; + + /** + * Getter for property https://w3id.org/cwl/cwl#Workflow/steps
+ *
+ * The individual steps that make up the workflow. Each step is executed when all of its + * input data links are fufilled. An implementation may choose to execute + * the steps in a different order than listed and/or execute steps + * concurrently, provided that dependencies between steps are met. + * *
+ */ + + public java.util.List getSteps() { + return this.steps; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of WorkflowImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public WorkflowImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("WorkflowImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + Workflow_class class_; + try { + class_ = + LoaderInstances + .uri_Workflow_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + java.util.List inputs; + try { + inputs = + LoaderInstances + .idmap_inputs_array_of_WorkflowInputParameter + .loadField(__doc.get("inputs"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputs = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputs` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.List outputs; + try { + outputs = + LoaderInstances + .idmap_outputs_array_of_WorkflowOutputParameter + .loadField(__doc.get("outputs"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + outputs = null; // won't be used but prevents compiler from complaining. + final String __message = "the `outputs` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional> requirements; + + if (__doc.containsKey("requirements")) { + try { + requirements = + LoaderInstances + .idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement + .loadField(__doc.get("requirements"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + requirements = null; // won't be used but prevents compiler from complaining. + final String __message = "the `requirements` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + requirements = null; + } + java.util.Optional> hints; + + if (__doc.containsKey("hints")) { + try { + hints = + LoaderInstances + .idmap_hints_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance + .loadField(__doc.get("hints"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + hints = null; // won't be used but prevents compiler from complaining. + final String __message = "the `hints` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + hints = null; + } + java.util.Optional cwlVersion; + + if (__doc.containsKey("cwlVersion")) { + try { + cwlVersion = + LoaderInstances + .uri_optional_CWLVersion_False_True_None_None + .loadField(__doc.get("cwlVersion"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + cwlVersion = null; // won't be used but prevents compiler from complaining. + final String __message = "the `cwlVersion` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + cwlVersion = null; + } + java.util.List steps; + try { + steps = + LoaderInstances + .idmap_steps_array_of_WorkflowStep + .loadField(__doc.get("steps"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + steps = null; // won't be used but prevents compiler from complaining. + final String __message = "the `steps` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.id = (java.util.Optional) id; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.inputs = (java.util.List) inputs; + this.outputs = (java.util.List) outputs; + this.requirements = (java.util.Optional>) requirements; + this.hints = (java.util.Optional>) hints; + this.cwlVersion = (java.util.Optional) cwlVersion; + this.class_ = (Workflow_class) class_; + this.steps = (java.util.List) steps; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("id", "label", "doc", "inputs", "outputs", "requirements", "hints", "cwlVersion", "class", "steps"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowInputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowInputParameter.java new file mode 100644 index 00000000..2e890650 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowInputParameter.java @@ -0,0 +1,179 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowInputParameter
This interface is implemented by {@link WorkflowInputParameterImpl}
+ */ +public interface WorkflowInputParameter extends InputParameter, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferrably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + Object getFormat(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Read up to the first 64 KiB of text from the file and place it in the + * "contents" field of the file object for use by expressions. + * *
+ */ + + java.util.Optional getLoadContents(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + java.util.Optional getLoadListing(); + /** + * Getter for property https://w3id.org/cwl/salad#default
+ *
+ * The default value to use for this parameter if the parameter is missing + * from the input object, or if the value of the parameter in the input + * object is `null`. Default values are applied before evaluating expressions + * (e.g. dependent `valueFrom` fields). + * *
+ */ + + java.util.Optional getDefault(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * *
+ */ + + Object getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#WorkflowInputParameter/inputBinding
+ *
+ * Deprecated. Preserved for v1.0 backwards compatability. Will be removed in + * CWL v2.0. Use `WorkflowInputParameter.loadContents` instead. + * *
+ */ + + java.util.Optional getInputBinding(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowInputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowInputParameterImpl.java new file mode 100644 index 00000000..986b788a --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowInputParameterImpl.java @@ -0,0 +1,492 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowInputParameter
+ */ +public class WorkflowInputParameterImpl extends SaveableImpl implements WorkflowInputParameter { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional streamable; + + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + public java.util.Optional getStreamable() { + return this.streamable; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferrably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + public Object getFormat() { + return this.format; + } + + private java.util.Optional loadContents; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Read up to the first 64 KiB of text from the file and place it in the + * "contents" field of the file object for use by expressions. + * *
+ */ + + public java.util.Optional getLoadContents() { + return this.loadContents; + } + + private java.util.Optional loadListing; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + public java.util.Optional getLoadListing() { + return this.loadListing; + } + + private java.util.Optional default_; + + /** + * Getter for property https://w3id.org/cwl/salad#default
+ *
+ * The default value to use for this parameter if the parameter is missing + * from the input object, or if the value of the parameter in the input + * object is `null`. Default values are applied before evaluating expressions + * (e.g. dependent `valueFrom` fields). + * *
+ */ + + public java.util.Optional getDefault() { + return this.default_; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * *
+ */ + + public Object getType() { + return this.type; + } + + private java.util.Optional inputBinding; + + /** + * Getter for property https://w3id.org/cwl/cwl#WorkflowInputParameter/inputBinding
+ *
+ * Deprecated. Preserved for v1.0 backwards compatability. Will be removed in + * CWL v2.0. Use `WorkflowInputParameter.loadContents` instead. + * *
+ */ + + public java.util.Optional getInputBinding() { + return this.inputBinding; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of WorkflowInputParameterImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public WorkflowInputParameterImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("WorkflowInputParameterImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional streamable; + + if (__doc.containsKey("streamable")) { + try { + streamable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + streamable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `streamable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + streamable = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + java.util.Optional loadContents; + + if (__doc.containsKey("loadContents")) { + try { + loadContents = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadContents = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadContents` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadContents = null; + } + java.util.Optional loadListing; + + if (__doc.containsKey("loadListing")) { + try { + loadListing = + LoaderInstances + .optional_LoadListingEnum + .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadListing = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadListing` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadListing = null; + } + java.util.Optional default_; + + if (__doc.containsKey("default")) { + try { + default_ = + LoaderInstances + .optional_CWLObjectType + .loadField(__doc.get("default"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + default_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `default` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + default_ = null; + } + Object type; + try { + type = + LoaderInstances + .typedsl_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional inputBinding; + + if (__doc.containsKey("inputBinding")) { + try { + inputBinding = + LoaderInstances + .optional_InputBinding + .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputBinding = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputBinding` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + inputBinding = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.label = (java.util.Optional) label; + this.secondaryFiles = (Object) secondaryFiles; + this.streamable = (java.util.Optional) streamable; + this.doc = (Object) doc; + this.id = (java.util.Optional) id; + this.format = (Object) format; + this.loadContents = (java.util.Optional) loadContents; + this.loadListing = (java.util.Optional) loadListing; + this.default_ = (java.util.Optional) default_; + this.type = (Object) type; + this.inputBinding = (java.util.Optional) inputBinding; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("label", "secondaryFiles", "streamable", "doc", "id", "format", "loadContents", "loadListing", "default", "type", "inputBinding"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowOutputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowOutputParameter.java new file mode 100644 index 00000000..12967443 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowOutputParameter.java @@ -0,0 +1,152 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowOutputParameter
This interface is implemented by {@link WorkflowOutputParameterImpl}
+ Describe an output parameter of a workflow. The parameter must be + connected to one or more parameters defined in the workflow that + will provide the value of the output parameter. It is legal to + connect a WorkflowInputParameter to a WorkflowOutputParameter. +
+ */ +public interface WorkflowOutputParameter extends OutputParameter, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + Object getFormat(); + /** + * Getter for property https://w3id.org/cwl/cwl#outputSource
+ *
+ * Specifies one or more workflow parameters that supply the value of to + * the output parameter. + * *
+ */ + + Object getOutputSource(); + /** + * Getter for property https://w3id.org/cwl/cwl#WorkflowOutputParameter/linkMerge
+ *
+ * The method to use to merge multiple sources into a single array. + * If not specified, the default method is "merge_nested". + * *
+ */ + + java.util.Optional getLinkMerge(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * *
+ */ + + Object getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowOutputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowOutputParameterImpl.java new file mode 100644 index 00000000..3e196dd7 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowOutputParameterImpl.java @@ -0,0 +1,419 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowOutputParameter
+ Describe an output parameter of a workflow. The parameter must be + connected to one or more parameters defined in the workflow that + will provide the value of the output parameter. It is legal to + connect a WorkflowInputParameter to a WorkflowOutputParameter. +
+ */ +public class WorkflowOutputParameterImpl extends SaveableImpl implements WorkflowOutputParameter { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional streamable; + + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + public java.util.Optional getStreamable() { + return this.streamable; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + public Object getFormat() { + return this.format; + } + + private Object outputSource; + + /** + * Getter for property https://w3id.org/cwl/cwl#outputSource
+ *
+ * Specifies one or more workflow parameters that supply the value of to + * the output parameter. + * *
+ */ + + public Object getOutputSource() { + return this.outputSource; + } + + private java.util.Optional linkMerge; + + /** + * Getter for property https://w3id.org/cwl/cwl#WorkflowOutputParameter/linkMerge
+ *
+ * The method to use to merge multiple sources into a single array. + * If not specified, the default method is "merge_nested". + * *
+ */ + + public java.util.Optional getLinkMerge() { + return this.linkMerge; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * *
+ */ + + public Object getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of WorkflowOutputParameterImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public WorkflowOutputParameterImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("WorkflowOutputParameterImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional streamable; + + if (__doc.containsKey("streamable")) { + try { + streamable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + streamable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `streamable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + streamable = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + Object outputSource; + + if (__doc.containsKey("outputSource")) { + try { + outputSource = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_1_None + .loadField(__doc.get("outputSource"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + outputSource = null; // won't be used but prevents compiler from complaining. + final String __message = "the `outputSource` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + outputSource = null; + } + java.util.Optional linkMerge; + + if (__doc.containsKey("linkMerge")) { + try { + linkMerge = + LoaderInstances + .optional_LinkMergeMethod + .loadField(__doc.get("linkMerge"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + linkMerge = null; // won't be used but prevents compiler from complaining. + final String __message = "the `linkMerge` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + linkMerge = null; + } + Object type; + try { + type = + LoaderInstances + .typedsl_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.label = (java.util.Optional) label; + this.secondaryFiles = (Object) secondaryFiles; + this.streamable = (java.util.Optional) streamable; + this.doc = (Object) doc; + this.id = (java.util.Optional) id; + this.format = (Object) format; + this.outputSource = (Object) outputSource; + this.linkMerge = (java.util.Optional) linkMerge; + this.type = (Object) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("label", "secondaryFiles", "streamable", "doc", "id", "format", "outputSource", "linkMerge", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowStep.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowStep.java new file mode 100644 index 00000000..1ace23c2 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowStep.java @@ -0,0 +1,172 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowStep
This interface is implemented by {@link WorkflowStepImpl}
+ A workflow step is an executable element of a workflow. It specifies the + underlying process implementation (such as `CommandLineTool` or another + `Workflow`) in the `run` field and connects the input and output parameters + of the underlying process to workflow parameters. + + # Scatter/gather + + To use scatter/gather, + [ScatterFeatureRequirement](#ScatterFeatureRequirement) must be specified + in the workflow or workflow step requirements. + + A "scatter" operation specifies that the associated workflow step or + subworkflow should execute separately over a list of input elements. Each + job making up a scatter operation is independent and may be executed + concurrently. + + The `scatter` field specifies one or more input parameters which will be + scattered. An input parameter may be listed more than once. The declared + type of each input parameter is implicitly becomes an array of items of the + input parameter type. If a parameter is listed more than once, it becomes + a nested array. As a result, upstream parameters which are connected to + scattered parameters must be arrays. + + All output parameter types are also implicitly wrapped in arrays. Each job + in the scatter results in an entry in the output array. + + If any scattered parameter runtime value is an empty array, all outputs are + set to empty arrays and no work is done for the step, according to + applicable scattering rules. + + If `scatter` declares more than one input parameter, `scatterMethod` + describes how to decompose the input into a discrete set of jobs. + + * **dotproduct** specifies that each of the input arrays are aligned and one + element taken from each array to construct each job. It is an error + if all input arrays are not the same length. + + * **nested_crossproduct** specifies the Cartesian product of the inputs, + producing a job for every combination of the scattered inputs. The + output must be nested arrays for each level of scattering, in the + order that the input arrays are listed in the `scatter` field. + + * **flat_crossproduct** specifies the Cartesian product of the inputs, + producing a job for every combination of the scattered inputs. The + output arrays must be flattened to a single level, but otherwise listed in the + order that the input arrays are listed in the `scatter` field. + + # Subworkflows + + To specify a nested workflow as part of a workflow step, + [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) must be + specified in the workflow or workflow step requirements. + + It is a fatal error if a workflow directly or indirectly invokes itself as + a subworkflow (recursive workflows are not allowed). +
+ */ +public interface WorkflowStep extends Identified, Labeled, Documented, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#in
+ *
+ * Defines the input parameters of the workflow step. The process is ready to + * run when all required input parameters are associated with concrete + * values. Input parameters include a schema for each parameter which is + * used to validate the input object. It may also be used build a user + * interface for constructing the input object. + * *
+ */ + + java.util.List getIn(); + /** + * Getter for property https://w3id.org/cwl/cwl#out
+ *
+ * Defines the parameters representing the output of the process. May be + * used to generate and/or validate the output object. + * *
+ */ + + java.util.List getOut(); + /** + * Getter for property https://w3id.org/cwl/cwl#requirements
+ *
+ * Declares requirements that apply to either the runtime environment or the + * workflow engine that must be met in order to execute this workflow step. If + * an implementation cannot satisfy all requirements, or a requirement is + * listed which is not recognized by the implementation, it is a fatal + * error and the implementation must not attempt to run the process, + * unless overridden at user option. + * *
+ */ + + java.util.Optional> getRequirements(); + /** + * Getter for property https://w3id.org/cwl/cwl#hints
+ *
+ * Declares hints applying to either the runtime environment or the + * workflow engine that may be helpful in executing this workflow step. It is + * not an error if an implementation cannot satisfy all hints, however + * the implementation may report a warning. + * *
+ */ + + java.util.Optional> getHints(); + /** + * Getter for property https://w3id.org/cwl/cwl#run
+ *
+ * Specifies the process to run. + * *
+ */ + + Object getRun(); + /** + * Getter for property https://w3id.org/cwl/cwl#scatter
+ + */ + + Object getScatter(); + /** + * Getter for property https://w3id.org/cwl/cwl#scatterMethod
+ *
+ * Required if `scatter` is an array of more than one element. + * *
+ */ + + java.util.Optional getScatterMethod(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowStepImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowStepImpl.java new file mode 100644 index 00000000..90b6ce04 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowStepImpl.java @@ -0,0 +1,450 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowStep
+ A workflow step is an executable element of a workflow. It specifies the + underlying process implementation (such as `CommandLineTool` or another + `Workflow`) in the `run` field and connects the input and output parameters + of the underlying process to workflow parameters. + + # Scatter/gather + + To use scatter/gather, + [ScatterFeatureRequirement](#ScatterFeatureRequirement) must be specified + in the workflow or workflow step requirements. + + A "scatter" operation specifies that the associated workflow step or + subworkflow should execute separately over a list of input elements. Each + job making up a scatter operation is independent and may be executed + concurrently. + + The `scatter` field specifies one or more input parameters which will be + scattered. An input parameter may be listed more than once. The declared + type of each input parameter is implicitly becomes an array of items of the + input parameter type. If a parameter is listed more than once, it becomes + a nested array. As a result, upstream parameters which are connected to + scattered parameters must be arrays. + + All output parameter types are also implicitly wrapped in arrays. Each job + in the scatter results in an entry in the output array. + + If any scattered parameter runtime value is an empty array, all outputs are + set to empty arrays and no work is done for the step, according to + applicable scattering rules. + + If `scatter` declares more than one input parameter, `scatterMethod` + describes how to decompose the input into a discrete set of jobs. + + * **dotproduct** specifies that each of the input arrays are aligned and one + element taken from each array to construct each job. It is an error + if all input arrays are not the same length. + + * **nested_crossproduct** specifies the Cartesian product of the inputs, + producing a job for every combination of the scattered inputs. The + output must be nested arrays for each level of scattering, in the + order that the input arrays are listed in the `scatter` field. + + * **flat_crossproduct** specifies the Cartesian product of the inputs, + producing a job for every combination of the scattered inputs. The + output arrays must be flattened to a single level, but otherwise listed in the + order that the input arrays are listed in the `scatter` field. + + # Subworkflows + + To specify a nested workflow as part of a workflow step, + [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) must be + specified in the workflow or workflow step requirements. + + It is a fatal error if a workflow directly or indirectly invokes itself as + a subworkflow (recursive workflows are not allowed). +
+ */ +public class WorkflowStepImpl extends SaveableImpl implements WorkflowStep { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private java.util.List in; + + /** + * Getter for property https://w3id.org/cwl/cwl#in
+ *
+ * Defines the input parameters of the workflow step. The process is ready to + * run when all required input parameters are associated with concrete + * values. Input parameters include a schema for each parameter which is + * used to validate the input object. It may also be used build a user + * interface for constructing the input object. + * *
+ */ + + public java.util.List getIn() { + return this.in; + } + + private java.util.List out; + + /** + * Getter for property https://w3id.org/cwl/cwl#out
+ *
+ * Defines the parameters representing the output of the process. May be + * used to generate and/or validate the output object. + * *
+ */ + + public java.util.List getOut() { + return this.out; + } + + private java.util.Optional> requirements; + + /** + * Getter for property https://w3id.org/cwl/cwl#requirements
+ *
+ * Declares requirements that apply to either the runtime environment or the + * workflow engine that must be met in order to execute this workflow step. If + * an implementation cannot satisfy all requirements, or a requirement is + * listed which is not recognized by the implementation, it is a fatal + * error and the implementation must not attempt to run the process, + * unless overridden at user option. + * *
+ */ + + public java.util.Optional> getRequirements() { + return this.requirements; + } + + private java.util.Optional> hints; + + /** + * Getter for property https://w3id.org/cwl/cwl#hints
+ *
+ * Declares hints applying to either the runtime environment or the + * workflow engine that may be helpful in executing this workflow step. It is + * not an error if an implementation cannot satisfy all hints, however + * the implementation may report a warning. + * *
+ */ + + public java.util.Optional> getHints() { + return this.hints; + } + + private Object run; + + /** + * Getter for property https://w3id.org/cwl/cwl#run
+ *
+ * Specifies the process to run. + * *
+ */ + + public Object getRun() { + return this.run; + } + + private Object scatter; + + /** + * Getter for property https://w3id.org/cwl/cwl#scatter
+ + */ + + public Object getScatter() { + return this.scatter; + } + + private java.util.Optional scatterMethod; + + /** + * Getter for property https://w3id.org/cwl/cwl#scatterMethod
+ *
+ * Required if `scatter` is an array of more than one element. + * *
+ */ + + public java.util.Optional getScatterMethod() { + return this.scatterMethod; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of WorkflowStepImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public WorkflowStepImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("WorkflowStepImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + java.util.List in; + try { + in = + LoaderInstances + .idmap_in_array_of_WorkflowStepInput + .loadField(__doc.get("in"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + in = null; // won't be used but prevents compiler from complaining. + final String __message = "the `in` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.List out; + try { + out = + LoaderInstances + .uri_array_of_union_of_StringInstance_or_WorkflowStepOutput_True_False_None_None + .loadField(__doc.get("out"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + out = null; // won't be used but prevents compiler from complaining. + final String __message = "the `out` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional> requirements; + + if (__doc.containsKey("requirements")) { + try { + requirements = + LoaderInstances + .idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement + .loadField(__doc.get("requirements"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + requirements = null; // won't be used but prevents compiler from complaining. + final String __message = "the `requirements` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + requirements = null; + } + java.util.Optional> hints; + + if (__doc.containsKey("hints")) { + try { + hints = + LoaderInstances + .idmap_hints_optional_array_of_AnyInstance + .loadField(__doc.get("hints"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + hints = null; // won't be used but prevents compiler from complaining. + final String __message = "the `hints` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + hints = null; + } + Object run; + try { + run = + LoaderInstances + .uri_union_of_StringInstance_or_CommandLineTool_or_ExpressionTool_or_Workflow_False_False_None_None + .loadField(__doc.get("run"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + run = null; // won't be used but prevents compiler from complaining. + final String __message = "the `run` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Object scatter; + + if (__doc.containsKey("scatter")) { + try { + scatter = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_0_None + .loadField(__doc.get("scatter"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + scatter = null; // won't be used but prevents compiler from complaining. + final String __message = "the `scatter` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + scatter = null; + } + java.util.Optional scatterMethod; + + if (__doc.containsKey("scatterMethod")) { + try { + scatterMethod = + LoaderInstances + .uri_optional_ScatterMethod_False_True_None_None + .loadField(__doc.get("scatterMethod"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + scatterMethod = null; // won't be used but prevents compiler from complaining. + final String __message = "the `scatterMethod` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + scatterMethod = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.id = (java.util.Optional) id; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.in = (java.util.List) in; + this.out = (java.util.List) out; + this.requirements = (java.util.Optional>) requirements; + this.hints = (java.util.Optional>) hints; + this.run = (Object) run; + this.scatter = (Object) scatter; + this.scatterMethod = (java.util.Optional) scatterMethod; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("id", "label", "doc", "in", "out", "requirements", "hints", "run", "scatter", "scatterMethod"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowStepInput.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowStepInput.java new file mode 100644 index 00000000..a28e88ae --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowStepInput.java @@ -0,0 +1,171 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowStepInput
This interface is implemented by {@link WorkflowStepInputImpl}
+ The input of a workflow step connects an upstream parameter (from the + workflow inputs, or the outputs of other workflows steps) with the input + parameters of the process specified by the `run` field. Only input parameters + declared by the target process will be passed through at runtime to the process + though additonal parameters may be specified (for use within `valueFrom` + expressions for instance) - unconnected or unused parameters do not represent an + error condition. + + ## Input object + + A WorkflowStepInput object must contain an `id` field in the form + `#fieldname` or `#prefix/fieldname`. When the `id` field contains a slash + `/` the field name consists of the characters following the final slash + (the prefix portion may contain one or more slashes to indicate scope). + This defines a field of the workflow step input object with the value of + the `source` parameter(s). + + ## Merging + + To merge multiple inbound data links, + [MultipleInputFeatureRequirement](#MultipleInputFeatureRequirement) must be specified + in the workflow or workflow step requirements. + + If the sink parameter is an array, or named in a [workflow + scatter](#WorkflowStep) operation, there may be multiple inbound data links + listed in the `source` field. The values from the input links are merged + depending on the method specified in the `linkMerge` field. If not + specified, the default method is "merge_nested". + + * **merge_nested** + + The input must be an array consisting of exactly one entry for each + input link. If "merge_nested" is specified with a single link, the value + from the link must be wrapped in a single-item list. + + * **merge_flattened** + + 1. The source and sink parameters must be compatible types, or the source + type must be compatible with single element from the "items" type of + the destination array parameter. + 2. Source parameters which are arrays are concatenated. + Source parameters which are single element types are appended as + single elements. +
+ */ +public interface WorkflowStepInput extends Identified, Sink, LoadContents, Labeled, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#source
+ *
+ * Specifies one or more workflow parameters that will provide input to + * the underlying step parameter. + * *
+ */ + + Object getSource(); + /** + * Getter for property https://w3id.org/cwl/cwl#Sink/linkMerge
+ *
+ * The method to use to merge multiple inbound links into a single array. + * If not specified, the default method is "merge_nested". + * *
+ */ + + java.util.Optional getLinkMerge(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Read up to the first 64 KiB of text from the file and place it in the + * "contents" field of the file object for use by expressions. + * *
+ */ + + java.util.Optional getLoadContents(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + java.util.Optional getLoadListing(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#default
+ *
+ * The default value for this parameter to use if either there is no + * `source` field, or the value produced by the `source` is `null`. The + * default must be applied prior to scattering or evaluating `valueFrom`. + * *
+ */ + + java.util.Optional getDefault(); + /** + * Getter for property https://w3id.org/cwl/cwl#WorkflowStepInput/valueFrom
+ *
+ * To use valueFrom, [StepInputExpressionRequirement](#StepInputExpressionRequirement) must + * be specified in the workflow or workflow step requirements. + * + * If `valueFrom` is a constant string value, use this as the value for + * this input parameter. + * + * If `valueFrom` is a parameter reference or expression, it must be + * evaluated to yield the actual value to be assiged to the input field. + * + * The `self` value in the parameter reference or expression must be + * 1. `null` if there is no `source` field + * 2. the value of the parameter(s) specified in the `source` field when this + * workflow input parameter **is not** specified in this workflow step's `scatter` field. + * 3. an element of the parameter specified in the `source` field when this workflow input + * parameter **is** specified in this workflow step's `scatter` field. + * + * The value of `inputs` in the parameter reference or expression must be + * the input object to the workflow step after assigning the `source` + * values, applying `default`, and then scattering. The order of + * evaluating `valueFrom` among step input parameters is undefined and the + * result of evaluating `valueFrom` on a parameter must not be visible to + * evaluation of `valueFrom` on other parameters. + * *
+ */ + + Object getValueFrom(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowStepInputImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowStepInputImpl.java new file mode 100644 index 00000000..b5911fb9 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowStepInputImpl.java @@ -0,0 +1,421 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowStepInput
+ The input of a workflow step connects an upstream parameter (from the + workflow inputs, or the outputs of other workflows steps) with the input + parameters of the process specified by the `run` field. Only input parameters + declared by the target process will be passed through at runtime to the process + though additonal parameters may be specified (for use within `valueFrom` + expressions for instance) - unconnected or unused parameters do not represent an + error condition. + + ## Input object + + A WorkflowStepInput object must contain an `id` field in the form + `#fieldname` or `#prefix/fieldname`. When the `id` field contains a slash + `/` the field name consists of the characters following the final slash + (the prefix portion may contain one or more slashes to indicate scope). + This defines a field of the workflow step input object with the value of + the `source` parameter(s). + + ## Merging + + To merge multiple inbound data links, + [MultipleInputFeatureRequirement](#MultipleInputFeatureRequirement) must be specified + in the workflow or workflow step requirements. + + If the sink parameter is an array, or named in a [workflow + scatter](#WorkflowStep) operation, there may be multiple inbound data links + listed in the `source` field. The values from the input links are merged + depending on the method specified in the `linkMerge` field. If not + specified, the default method is "merge_nested". + + * **merge_nested** + + The input must be an array consisting of exactly one entry for each + input link. If "merge_nested" is specified with a single link, the value + from the link must be wrapped in a single-item list. + + * **merge_flattened** + + 1. The source and sink parameters must be compatible types, or the source + type must be compatible with single element from the "items" type of + the destination array parameter. + 2. Source parameters which are arrays are concatenated. + Source parameters which are single element types are appended as + single elements. +
+ */ +public class WorkflowStepInputImpl extends SaveableImpl implements WorkflowStepInput { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private Object source; + + /** + * Getter for property https://w3id.org/cwl/cwl#source
+ *
+ * Specifies one or more workflow parameters that will provide input to + * the underlying step parameter. + * *
+ */ + + public Object getSource() { + return this.source; + } + + private java.util.Optional linkMerge; + + /** + * Getter for property https://w3id.org/cwl/cwl#Sink/linkMerge
+ *
+ * The method to use to merge multiple inbound links into a single array. + * If not specified, the default method is "merge_nested". + * *
+ */ + + public java.util.Optional getLinkMerge() { + return this.linkMerge; + } + + private java.util.Optional loadContents; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Read up to the first 64 KiB of text from the file and place it in the + * "contents" field of the file object for use by expressions. + * *
+ */ + + public java.util.Optional getLoadContents() { + return this.loadContents; + } + + private java.util.Optional loadListing; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + public java.util.Optional getLoadListing() { + return this.loadListing; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private java.util.Optional default_; + + /** + * Getter for property https://w3id.org/cwl/salad#default
+ *
+ * The default value for this parameter to use if either there is no + * `source` field, or the value produced by the `source` is `null`. The + * default must be applied prior to scattering or evaluating `valueFrom`. + * *
+ */ + + public java.util.Optional getDefault() { + return this.default_; + } + + private Object valueFrom; + + /** + * Getter for property https://w3id.org/cwl/cwl#WorkflowStepInput/valueFrom
+ *
+ * To use valueFrom, [StepInputExpressionRequirement](#StepInputExpressionRequirement) must + * be specified in the workflow or workflow step requirements. + * + * If `valueFrom` is a constant string value, use this as the value for + * this input parameter. + * + * If `valueFrom` is a parameter reference or expression, it must be + * evaluated to yield the actual value to be assiged to the input field. + * + * The `self` value in the parameter reference or expression must be + * 1. `null` if there is no `source` field + * 2. the value of the parameter(s) specified in the `source` field when this + * workflow input parameter **is not** specified in this workflow step's `scatter` field. + * 3. an element of the parameter specified in the `source` field when this workflow input + * parameter **is** specified in this workflow step's `scatter` field. + * + * The value of `inputs` in the parameter reference or expression must be + * the input object to the workflow step after assigning the `source` + * values, applying `default`, and then scattering. The order of + * evaluating `valueFrom` among step input parameters is undefined and the + * result of evaluating `valueFrom` on a parameter must not be visible to + * evaluation of `valueFrom` on other parameters. + * *
+ */ + + public Object getValueFrom() { + return this.valueFrom; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of WorkflowStepInputImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public WorkflowStepInputImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("WorkflowStepInputImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + Object source; + + if (__doc.containsKey("source")) { + try { + source = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_2_None + .loadField(__doc.get("source"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + source = null; // won't be used but prevents compiler from complaining. + final String __message = "the `source` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + source = null; + } + java.util.Optional linkMerge; + + if (__doc.containsKey("linkMerge")) { + try { + linkMerge = + LoaderInstances + .optional_LinkMergeMethod + .loadField(__doc.get("linkMerge"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + linkMerge = null; // won't be used but prevents compiler from complaining. + final String __message = "the `linkMerge` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + linkMerge = null; + } + java.util.Optional loadContents; + + if (__doc.containsKey("loadContents")) { + try { + loadContents = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadContents = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadContents` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadContents = null; + } + java.util.Optional loadListing; + + if (__doc.containsKey("loadListing")) { + try { + loadListing = + LoaderInstances + .optional_LoadListingEnum + .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadListing = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadListing` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadListing = null; + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + java.util.Optional default_; + + if (__doc.containsKey("default")) { + try { + default_ = + LoaderInstances + .optional_CWLObjectType + .loadField(__doc.get("default"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + default_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `default` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + default_ = null; + } + Object valueFrom; + + if (__doc.containsKey("valueFrom")) { + try { + valueFrom = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_ExpressionLoader + .loadField(__doc.get("valueFrom"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + valueFrom = null; // won't be used but prevents compiler from complaining. + final String __message = "the `valueFrom` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + valueFrom = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.id = (java.util.Optional) id; + this.source = (Object) source; + this.linkMerge = (java.util.Optional) linkMerge; + this.loadContents = (java.util.Optional) loadContents; + this.loadListing = (java.util.Optional) loadListing; + this.label = (java.util.Optional) label; + this.default_ = (java.util.Optional) default_; + this.valueFrom = (Object) valueFrom; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("id", "source", "linkMerge", "loadContents", "loadListing", "label", "default", "valueFrom"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowStepOutput.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowStepOutput.java new file mode 100644 index 00000000..f0762883 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowStepOutput.java @@ -0,0 +1,44 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowStepOutput
This interface is implemented by {@link WorkflowStepOutputImpl}
+ Associate an output parameter of the underlying process with a workflow + parameter. The workflow parameter (given in the `id` field) be may be used + as a `source` to connect with input parameters of other workflow steps, or + with an output parameter of the process. + + A unique identifier for this workflow output parameter. This is + the identifier to use in the `source` field of `WorkflowStepInput` + to connect the output value to downstream parameters. +
+ */ +public interface WorkflowStepOutput extends Identified, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowStepOutputImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowStepOutputImpl.java new file mode 100644 index 00000000..cf8bb936 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/WorkflowStepOutputImpl.java @@ -0,0 +1,133 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_1.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_1.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowStepOutput
+ Associate an output parameter of the underlying process with a workflow + parameter. The workflow parameter (given in the `id` field) be may be used + as a `source` to connect with input parameters of other workflow steps, or + with an output parameter of the process. + + A unique identifier for this workflow output parameter. This is + the identifier to use in the `source` field of `WorkflowStepInput` + to connect the output value to downstream parameters. +
+ */ +public class WorkflowStepOutputImpl extends SaveableImpl implements WorkflowStepOutput { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_1.utils.RootLoader} to construct instances of WorkflowStepOutputImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public WorkflowStepOutputImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("WorkflowStepOutputImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.id = (java.util.Optional) id; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("id"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/Workflow_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Workflow_class.java new file mode 100644 index 00000000..17a1ead3 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/Workflow_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum Workflow_class { + WORKFLOW("Workflow"); + + private static String[] symbols = new String[] {"Workflow"}; + private String docVal; + + private Workflow_class(final String docVal) { + this.docVal = docVal; + } + + public static Workflow_class fromDocumentVal(final String docVal) { + for(final Workflow_class val : Workflow_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", Workflow_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/package.html b/src/main/java/org/commonwl/cwlsdk/cwl1_1/package.html similarity index 100% rename from src/main/java/org/w3id/cwl/cwl1_1/package.html rename to src/main/java/org/commonwl/cwlsdk/cwl1_1/package.html diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/stderr.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/stderr.java new file mode 100644 index 00000000..dcde2ceb --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/stderr.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum stderr { + STDERR("stderr"); + + private static String[] symbols = new String[] {"stderr"}; + private String docVal; + + private stderr(final String docVal) { + this.docVal = docVal; + } + + public static stderr fromDocumentVal(final String docVal) { + for(final stderr val : stderr.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", stderr.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/stdin.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/stdin.java new file mode 100644 index 00000000..dd99c871 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/stdin.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum stdin { + STDIN("stdin"); + + private static String[] symbols = new String[] {"stdin"}; + private String docVal; + + private stdin(final String docVal) { + this.docVal = docVal; + } + + public static stdin fromDocumentVal(final String docVal) { + for(final stdin val : stdin.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", stdin.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/stdout.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/stdout.java new file mode 100644 index 00000000..04743421 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/stdout.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_1; + +import org.commonwl.cwlsdk.cwl1_1.utils.ValidationException; + +public enum stdout { + STDOUT("stdout"); + + private static String[] symbols = new String[] {"stdout"}; + private String docVal; + + private stdout(final String docVal) { + this.docVal = docVal; + } + + public static stdout fromDocumentVal(final String docVal) { + for(final stdout val : stdout.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", stdout.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/AnyLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/AnyLoader.java new file mode 100644 index 00000000..b6158c12 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/AnyLoader.java @@ -0,0 +1,15 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +public class AnyLoader implements Loader { + + public Object load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + if (doc == null) { + throw new ValidationException("Expected non-null"); + } + return doc; + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/ArrayLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/ArrayLoader.java new file mode 100644 index 00000000..47f2f247 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/ArrayLoader.java @@ -0,0 +1,43 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.util.ArrayList; +import java.util.List; + +public class ArrayLoader implements Loader> { + private final Loader itemLoader; + + public ArrayLoader(Loader itemLoader) { + this.itemLoader = itemLoader; + } + + public List load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + final List docList = (List) Loader.validateOfJavaType(List.class, doc); + final List r = new ArrayList(); + final List loaders = new ArrayList(); + loaders.add(this); + loaders.add(this.itemLoader); + final UnionLoader unionLoader = new UnionLoader(loaders); + final List errors = new ArrayList(); + for (final Object el : docList) { + try { + final Object loadedField = unionLoader.loadField(el, baseUri, loadingOptions); + final boolean flatten = !"@list".equals(loadingOptions.container); + if (flatten && loadedField instanceof List) { + r.addAll((List) loadedField); + } else { + r.add((T) loadedField); + } + } catch (final ValidationException e) { + errors.add(e); + } + } + if (!errors.isEmpty()) { + throw new ValidationException("", errors); + } + return r; + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/ConstantMaps.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/ConstantMaps.java new file mode 100644 index 00000000..73c60751 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/ConstantMaps.java @@ -0,0 +1,271 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.util.HashMap; + +public class ConstantMaps { + // declare as HashMap for clone(). + public static final HashMap vocab = new HashMap(); + public static final HashMap rvocab = new HashMap(); + + static { + vocab.put("Any", "https://w3id.org/cwl/salad#Any"); + vocab.put("ArraySchema", "https://w3id.org/cwl/salad#ArraySchema"); + vocab.put("CWLArraySchema", "https://w3id.org/cwl/cwl#CWLArraySchema"); + vocab.put("CWLInputFile", "https://w3id.org/cwl/cwl#CWLInputFile"); + vocab.put("CWLObjectType", "https://w3id.org/cwl/cwl#CWLObjectType"); + vocab.put("CWLRecordField", "https://w3id.org/cwl/cwl#CWLRecordField"); + vocab.put("CWLRecordSchema", "https://w3id.org/cwl/cwl#CWLRecordSchema"); + vocab.put("CWLType", "https://w3id.org/cwl/cwl#CWLType"); + vocab.put("CWLVersion", "https://w3id.org/cwl/cwl#CWLVersion"); + vocab.put("CommandInputArraySchema", "https://w3id.org/cwl/cwl#CommandInputArraySchema"); + vocab.put("CommandInputEnumSchema", "https://w3id.org/cwl/cwl#CommandInputEnumSchema"); + vocab.put("CommandInputParameter", "https://w3id.org/cwl/cwl#CommandInputParameter"); + vocab.put("CommandInputRecordField", "https://w3id.org/cwl/cwl#CommandInputRecordField"); + vocab.put("CommandInputRecordSchema", "https://w3id.org/cwl/cwl#CommandInputRecordSchema"); + vocab.put("CommandInputSchema", "https://w3id.org/cwl/cwl#CommandInputSchema"); + vocab.put("CommandLineBindable", "https://w3id.org/cwl/cwl#CommandLineBindable"); + vocab.put("CommandLineBinding", "https://w3id.org/cwl/cwl#CommandLineBinding"); + vocab.put("CommandLineTool", "CommandLineTool"); + vocab.put("CommandOutputArraySchema", "https://w3id.org/cwl/cwl#CommandOutputArraySchema"); + vocab.put("CommandOutputBinding", "https://w3id.org/cwl/cwl#CommandOutputBinding"); + vocab.put("CommandOutputEnumSchema", "https://w3id.org/cwl/cwl#CommandOutputEnumSchema"); + vocab.put("CommandOutputParameter", "https://w3id.org/cwl/cwl#CommandOutputParameter"); + vocab.put("CommandOutputRecordField", "https://w3id.org/cwl/cwl#CommandOutputRecordField"); + vocab.put("CommandOutputRecordSchema", "https://w3id.org/cwl/cwl#CommandOutputRecordSchema"); + vocab.put("Directory", "Directory"); + vocab.put("Dirent", "https://w3id.org/cwl/cwl#Dirent"); + vocab.put("DockerRequirement", "DockerRequirement"); + vocab.put("Documented", "https://w3id.org/cwl/salad#Documented"); + vocab.put("EnumSchema", "https://w3id.org/cwl/salad#EnumSchema"); + vocab.put("EnvVarRequirement", "EnvVarRequirement"); + vocab.put("EnvironmentDef", "https://w3id.org/cwl/cwl#EnvironmentDef"); + vocab.put("Expression", "https://w3id.org/cwl/cwl#Expression"); + vocab.put("ExpressionPlaceholder", "https://w3id.org/cwl/cwl#ExpressionPlaceholder"); + vocab.put("ExpressionTool", "ExpressionTool"); + vocab.put("ExpressionToolOutputParameter", "https://w3id.org/cwl/cwl#ExpressionToolOutputParameter"); + vocab.put("FieldBase", "https://w3id.org/cwl/cwl#FieldBase"); + vocab.put("File", "File"); + vocab.put("IOSchema", "https://w3id.org/cwl/cwl#IOSchema"); + vocab.put("Identified", "https://w3id.org/cwl/cwl#Identified"); + vocab.put("InitialWorkDirRequirement", "InitialWorkDirRequirement"); + vocab.put("InlineJavascriptRequirement", "InlineJavascriptRequirement"); + vocab.put("InplaceUpdateRequirement", "InplaceUpdateRequirement"); + vocab.put("InputArraySchema", "https://w3id.org/cwl/cwl#InputArraySchema"); + vocab.put("InputBinding", "https://w3id.org/cwl/cwl#InputBinding"); + vocab.put("InputEnumSchema", "https://w3id.org/cwl/cwl#InputEnumSchema"); + vocab.put("InputFormat", "https://w3id.org/cwl/cwl#InputFormat"); + vocab.put("InputParameter", "https://w3id.org/cwl/cwl#InputParameter"); + vocab.put("InputRecordField", "https://w3id.org/cwl/cwl#InputRecordField"); + vocab.put("InputRecordSchema", "https://w3id.org/cwl/cwl#InputRecordSchema"); + vocab.put("InputSchema", "https://w3id.org/cwl/cwl#InputSchema"); + vocab.put("Labeled", "https://w3id.org/cwl/cwl#Labeled"); + vocab.put("LinkMergeMethod", "https://w3id.org/cwl/cwl#LinkMergeMethod"); + vocab.put("LoadContents", "https://w3id.org/cwl/cwl#LoadContents"); + vocab.put("LoadListingEnum", "https://w3id.org/cwl/cwl#LoadListingEnum"); + vocab.put("LoadListingRequirement", "LoadListingRequirement"); + vocab.put("MapSchema", "https://w3id.org/cwl/salad#MapSchema"); + vocab.put("MultipleInputFeatureRequirement", "MultipleInputFeatureRequirement"); + vocab.put("NetworkAccess", "NetworkAccess"); + vocab.put("OutputArraySchema", "https://w3id.org/cwl/cwl#OutputArraySchema"); + vocab.put("OutputEnumSchema", "https://w3id.org/cwl/cwl#OutputEnumSchema"); + vocab.put("OutputFormat", "https://w3id.org/cwl/cwl#OutputFormat"); + vocab.put("OutputParameter", "https://w3id.org/cwl/cwl#OutputParameter"); + vocab.put("OutputRecordField", "https://w3id.org/cwl/cwl#OutputRecordField"); + vocab.put("OutputRecordSchema", "https://w3id.org/cwl/cwl#OutputRecordSchema"); + vocab.put("OutputSchema", "https://w3id.org/cwl/cwl#OutputSchema"); + vocab.put("Parameter", "https://w3id.org/cwl/cwl#Parameter"); + vocab.put("PrimitiveType", "https://w3id.org/cwl/salad#PrimitiveType"); + vocab.put("Process", "https://w3id.org/cwl/cwl#Process"); + vocab.put("ProcessRequirement", "https://w3id.org/cwl/cwl#ProcessRequirement"); + vocab.put("RecordField", "https://w3id.org/cwl/salad#RecordField"); + vocab.put("RecordSchema", "https://w3id.org/cwl/salad#RecordSchema"); + vocab.put("ResourceRequirement", "ResourceRequirement"); + vocab.put("ScatterFeatureRequirement", "ScatterFeatureRequirement"); + vocab.put("ScatterMethod", "https://w3id.org/cwl/cwl#ScatterMethod"); + vocab.put("SchemaDefRequirement", "SchemaDefRequirement"); + vocab.put("SecondaryFileSchema", "https://w3id.org/cwl/cwl#SecondaryFileSchema"); + vocab.put("ShellCommandRequirement", "ShellCommandRequirement"); + vocab.put("Sink", "https://w3id.org/cwl/cwl#Sink"); + vocab.put("SoftwarePackage", "https://w3id.org/cwl/cwl#SoftwarePackage"); + vocab.put("SoftwareRequirement", "SoftwareRequirement"); + vocab.put("StepInputExpressionRequirement", "StepInputExpressionRequirement"); + vocab.put("SubworkflowFeatureRequirement", "SubworkflowFeatureRequirement"); + vocab.put("ToolTimeLimit", "ToolTimeLimit"); + vocab.put("UnionSchema", "https://w3id.org/cwl/salad#UnionSchema"); + vocab.put("WorkReuse", "WorkReuse"); + vocab.put("Workflow", "Workflow"); + vocab.put("WorkflowInputParameter", "https://w3id.org/cwl/cwl#WorkflowInputParameter"); + vocab.put("WorkflowOutputParameter", "https://w3id.org/cwl/cwl#WorkflowOutputParameter"); + vocab.put("WorkflowStep", "https://w3id.org/cwl/cwl#WorkflowStep"); + vocab.put("WorkflowStepInput", "https://w3id.org/cwl/cwl#WorkflowStepInput"); + vocab.put("WorkflowStepOutput", "https://w3id.org/cwl/cwl#WorkflowStepOutput"); + vocab.put("array", "array"); + vocab.put("boolean", "http://www.w3.org/2001/XMLSchema#boolean"); + vocab.put("deep_listing", "https://w3id.org/cwl/cwl#LoadListingEnum/deep_listing"); + vocab.put("dotproduct", "https://w3id.org/cwl/cwl#ScatterMethod/dotproduct"); + vocab.put("double", "http://www.w3.org/2001/XMLSchema#double"); + vocab.put("draft-2", "https://w3id.org/cwl/cwl#draft-2"); + vocab.put("draft-3", "https://w3id.org/cwl/cwl#draft-3"); + vocab.put("draft-3.dev1", "https://w3id.org/cwl/cwl#draft-3.dev1"); + vocab.put("draft-3.dev2", "https://w3id.org/cwl/cwl#draft-3.dev2"); + vocab.put("draft-3.dev3", "https://w3id.org/cwl/cwl#draft-3.dev3"); + vocab.put("draft-3.dev4", "https://w3id.org/cwl/cwl#draft-3.dev4"); + vocab.put("draft-3.dev5", "https://w3id.org/cwl/cwl#draft-3.dev5"); + vocab.put("draft-4.dev1", "https://w3id.org/cwl/cwl#draft-4.dev1"); + vocab.put("draft-4.dev2", "https://w3id.org/cwl/cwl#draft-4.dev2"); + vocab.put("draft-4.dev3", "https://w3id.org/cwl/cwl#draft-4.dev3"); + vocab.put("enum", "enum"); + vocab.put("flat_crossproduct", "https://w3id.org/cwl/cwl#ScatterMethod/flat_crossproduct"); + vocab.put("float", "http://www.w3.org/2001/XMLSchema#float"); + vocab.put("int", "http://www.w3.org/2001/XMLSchema#int"); + vocab.put("long", "http://www.w3.org/2001/XMLSchema#long"); + vocab.put("map", "map"); + vocab.put("merge_flattened", "https://w3id.org/cwl/cwl#LinkMergeMethod/merge_flattened"); + vocab.put("merge_nested", "https://w3id.org/cwl/cwl#LinkMergeMethod/merge_nested"); + vocab.put("nested_crossproduct", "https://w3id.org/cwl/cwl#ScatterMethod/nested_crossproduct"); + vocab.put("no_listing", "https://w3id.org/cwl/cwl#LoadListingEnum/no_listing"); + vocab.put("null", "https://w3id.org/cwl/salad#null"); + vocab.put("record", "record"); + vocab.put("shallow_listing", "https://w3id.org/cwl/cwl#LoadListingEnum/shallow_listing"); + vocab.put("stderr", "https://w3id.org/cwl/cwl#stderr"); + vocab.put("stdin", "https://w3id.org/cwl/cwl#stdin"); + vocab.put("stdout", "https://w3id.org/cwl/cwl#stdout"); + vocab.put("string", "http://www.w3.org/2001/XMLSchema#string"); + vocab.put("union", "union"); + vocab.put("v1.0", "https://w3id.org/cwl/cwl#v1.0"); + vocab.put("v1.0.dev4", "https://w3id.org/cwl/cwl#v1.0.dev4"); + vocab.put("v1.1", "https://w3id.org/cwl/cwl#v1.1"); + vocab.put("v1.1.0-dev1", "https://w3id.org/cwl/cwl#v1.1.0-dev1"); + + + rvocab.put("https://w3id.org/cwl/salad#Any", "Any"); + rvocab.put("https://w3id.org/cwl/salad#ArraySchema", "ArraySchema"); + rvocab.put("https://w3id.org/cwl/cwl#CWLArraySchema", "CWLArraySchema"); + rvocab.put("https://w3id.org/cwl/cwl#CWLInputFile", "CWLInputFile"); + rvocab.put("https://w3id.org/cwl/cwl#CWLObjectType", "CWLObjectType"); + rvocab.put("https://w3id.org/cwl/cwl#CWLRecordField", "CWLRecordField"); + rvocab.put("https://w3id.org/cwl/cwl#CWLRecordSchema", "CWLRecordSchema"); + rvocab.put("https://w3id.org/cwl/cwl#CWLType", "CWLType"); + rvocab.put("https://w3id.org/cwl/cwl#CWLVersion", "CWLVersion"); + rvocab.put("https://w3id.org/cwl/cwl#CommandInputArraySchema", "CommandInputArraySchema"); + rvocab.put("https://w3id.org/cwl/cwl#CommandInputEnumSchema", "CommandInputEnumSchema"); + rvocab.put("https://w3id.org/cwl/cwl#CommandInputParameter", "CommandInputParameter"); + rvocab.put("https://w3id.org/cwl/cwl#CommandInputRecordField", "CommandInputRecordField"); + rvocab.put("https://w3id.org/cwl/cwl#CommandInputRecordSchema", "CommandInputRecordSchema"); + rvocab.put("https://w3id.org/cwl/cwl#CommandInputSchema", "CommandInputSchema"); + rvocab.put("https://w3id.org/cwl/cwl#CommandLineBindable", "CommandLineBindable"); + rvocab.put("https://w3id.org/cwl/cwl#CommandLineBinding", "CommandLineBinding"); + rvocab.put("CommandLineTool", "CommandLineTool"); + rvocab.put("https://w3id.org/cwl/cwl#CommandOutputArraySchema", "CommandOutputArraySchema"); + rvocab.put("https://w3id.org/cwl/cwl#CommandOutputBinding", "CommandOutputBinding"); + rvocab.put("https://w3id.org/cwl/cwl#CommandOutputEnumSchema", "CommandOutputEnumSchema"); + rvocab.put("https://w3id.org/cwl/cwl#CommandOutputParameter", "CommandOutputParameter"); + rvocab.put("https://w3id.org/cwl/cwl#CommandOutputRecordField", "CommandOutputRecordField"); + rvocab.put("https://w3id.org/cwl/cwl#CommandOutputRecordSchema", "CommandOutputRecordSchema"); + rvocab.put("Directory", "Directory"); + rvocab.put("https://w3id.org/cwl/cwl#Dirent", "Dirent"); + rvocab.put("DockerRequirement", "DockerRequirement"); + rvocab.put("https://w3id.org/cwl/salad#Documented", "Documented"); + rvocab.put("https://w3id.org/cwl/salad#EnumSchema", "EnumSchema"); + rvocab.put("EnvVarRequirement", "EnvVarRequirement"); + rvocab.put("https://w3id.org/cwl/cwl#EnvironmentDef", "EnvironmentDef"); + rvocab.put("https://w3id.org/cwl/cwl#Expression", "Expression"); + rvocab.put("https://w3id.org/cwl/cwl#ExpressionPlaceholder", "ExpressionPlaceholder"); + rvocab.put("ExpressionTool", "ExpressionTool"); + rvocab.put("https://w3id.org/cwl/cwl#ExpressionToolOutputParameter", "ExpressionToolOutputParameter"); + rvocab.put("https://w3id.org/cwl/cwl#FieldBase", "FieldBase"); + rvocab.put("File", "File"); + rvocab.put("https://w3id.org/cwl/cwl#IOSchema", "IOSchema"); + rvocab.put("https://w3id.org/cwl/cwl#Identified", "Identified"); + rvocab.put("InitialWorkDirRequirement", "InitialWorkDirRequirement"); + rvocab.put("InlineJavascriptRequirement", "InlineJavascriptRequirement"); + rvocab.put("InplaceUpdateRequirement", "InplaceUpdateRequirement"); + rvocab.put("https://w3id.org/cwl/cwl#InputArraySchema", "InputArraySchema"); + rvocab.put("https://w3id.org/cwl/cwl#InputBinding", "InputBinding"); + rvocab.put("https://w3id.org/cwl/cwl#InputEnumSchema", "InputEnumSchema"); + rvocab.put("https://w3id.org/cwl/cwl#InputFormat", "InputFormat"); + rvocab.put("https://w3id.org/cwl/cwl#InputParameter", "InputParameter"); + rvocab.put("https://w3id.org/cwl/cwl#InputRecordField", "InputRecordField"); + rvocab.put("https://w3id.org/cwl/cwl#InputRecordSchema", "InputRecordSchema"); + rvocab.put("https://w3id.org/cwl/cwl#InputSchema", "InputSchema"); + rvocab.put("https://w3id.org/cwl/cwl#Labeled", "Labeled"); + rvocab.put("https://w3id.org/cwl/cwl#LinkMergeMethod", "LinkMergeMethod"); + rvocab.put("https://w3id.org/cwl/cwl#LoadContents", "LoadContents"); + rvocab.put("https://w3id.org/cwl/cwl#LoadListingEnum", "LoadListingEnum"); + rvocab.put("LoadListingRequirement", "LoadListingRequirement"); + rvocab.put("https://w3id.org/cwl/salad#MapSchema", "MapSchema"); + rvocab.put("MultipleInputFeatureRequirement", "MultipleInputFeatureRequirement"); + rvocab.put("NetworkAccess", "NetworkAccess"); + rvocab.put("https://w3id.org/cwl/cwl#OutputArraySchema", "OutputArraySchema"); + rvocab.put("https://w3id.org/cwl/cwl#OutputEnumSchema", "OutputEnumSchema"); + rvocab.put("https://w3id.org/cwl/cwl#OutputFormat", "OutputFormat"); + rvocab.put("https://w3id.org/cwl/cwl#OutputParameter", "OutputParameter"); + rvocab.put("https://w3id.org/cwl/cwl#OutputRecordField", "OutputRecordField"); + rvocab.put("https://w3id.org/cwl/cwl#OutputRecordSchema", "OutputRecordSchema"); + rvocab.put("https://w3id.org/cwl/cwl#OutputSchema", "OutputSchema"); + rvocab.put("https://w3id.org/cwl/cwl#Parameter", "Parameter"); + rvocab.put("https://w3id.org/cwl/salad#PrimitiveType", "PrimitiveType"); + rvocab.put("https://w3id.org/cwl/cwl#Process", "Process"); + rvocab.put("https://w3id.org/cwl/cwl#ProcessRequirement", "ProcessRequirement"); + rvocab.put("https://w3id.org/cwl/salad#RecordField", "RecordField"); + rvocab.put("https://w3id.org/cwl/salad#RecordSchema", "RecordSchema"); + rvocab.put("ResourceRequirement", "ResourceRequirement"); + rvocab.put("ScatterFeatureRequirement", "ScatterFeatureRequirement"); + rvocab.put("https://w3id.org/cwl/cwl#ScatterMethod", "ScatterMethod"); + rvocab.put("SchemaDefRequirement", "SchemaDefRequirement"); + rvocab.put("https://w3id.org/cwl/cwl#SecondaryFileSchema", "SecondaryFileSchema"); + rvocab.put("ShellCommandRequirement", "ShellCommandRequirement"); + rvocab.put("https://w3id.org/cwl/cwl#Sink", "Sink"); + rvocab.put("https://w3id.org/cwl/cwl#SoftwarePackage", "SoftwarePackage"); + rvocab.put("SoftwareRequirement", "SoftwareRequirement"); + rvocab.put("StepInputExpressionRequirement", "StepInputExpressionRequirement"); + rvocab.put("SubworkflowFeatureRequirement", "SubworkflowFeatureRequirement"); + rvocab.put("ToolTimeLimit", "ToolTimeLimit"); + rvocab.put("https://w3id.org/cwl/salad#UnionSchema", "UnionSchema"); + rvocab.put("WorkReuse", "WorkReuse"); + rvocab.put("Workflow", "Workflow"); + rvocab.put("https://w3id.org/cwl/cwl#WorkflowInputParameter", "WorkflowInputParameter"); + rvocab.put("https://w3id.org/cwl/cwl#WorkflowOutputParameter", "WorkflowOutputParameter"); + rvocab.put("https://w3id.org/cwl/cwl#WorkflowStep", "WorkflowStep"); + rvocab.put("https://w3id.org/cwl/cwl#WorkflowStepInput", "WorkflowStepInput"); + rvocab.put("https://w3id.org/cwl/cwl#WorkflowStepOutput", "WorkflowStepOutput"); + rvocab.put("array", "array"); + rvocab.put("http://www.w3.org/2001/XMLSchema#boolean", "boolean"); + rvocab.put("https://w3id.org/cwl/cwl#LoadListingEnum/deep_listing", "deep_listing"); + rvocab.put("https://w3id.org/cwl/cwl#ScatterMethod/dotproduct", "dotproduct"); + rvocab.put("http://www.w3.org/2001/XMLSchema#double", "double"); + rvocab.put("https://w3id.org/cwl/cwl#draft-2", "draft-2"); + rvocab.put("https://w3id.org/cwl/cwl#draft-3", "draft-3"); + rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev1", "draft-3.dev1"); + rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev2", "draft-3.dev2"); + rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev3", "draft-3.dev3"); + rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev4", "draft-3.dev4"); + rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev5", "draft-3.dev5"); + rvocab.put("https://w3id.org/cwl/cwl#draft-4.dev1", "draft-4.dev1"); + rvocab.put("https://w3id.org/cwl/cwl#draft-4.dev2", "draft-4.dev2"); + rvocab.put("https://w3id.org/cwl/cwl#draft-4.dev3", "draft-4.dev3"); + rvocab.put("enum", "enum"); + rvocab.put("https://w3id.org/cwl/cwl#ScatterMethod/flat_crossproduct", "flat_crossproduct"); + rvocab.put("http://www.w3.org/2001/XMLSchema#float", "float"); + rvocab.put("http://www.w3.org/2001/XMLSchema#int", "int"); + rvocab.put("http://www.w3.org/2001/XMLSchema#long", "long"); + rvocab.put("map", "map"); + rvocab.put("https://w3id.org/cwl/cwl#LinkMergeMethod/merge_flattened", "merge_flattened"); + rvocab.put("https://w3id.org/cwl/cwl#LinkMergeMethod/merge_nested", "merge_nested"); + rvocab.put("https://w3id.org/cwl/cwl#ScatterMethod/nested_crossproduct", "nested_crossproduct"); + rvocab.put("https://w3id.org/cwl/cwl#LoadListingEnum/no_listing", "no_listing"); + rvocab.put("https://w3id.org/cwl/salad#null", "null"); + rvocab.put("record", "record"); + rvocab.put("https://w3id.org/cwl/cwl#LoadListingEnum/shallow_listing", "shallow_listing"); + rvocab.put("https://w3id.org/cwl/cwl#stderr", "stderr"); + rvocab.put("https://w3id.org/cwl/cwl#stdin", "stdin"); + rvocab.put("https://w3id.org/cwl/cwl#stdout", "stdout"); + rvocab.put("http://www.w3.org/2001/XMLSchema#string", "string"); + rvocab.put("union", "union"); + rvocab.put("https://w3id.org/cwl/cwl#v1.0", "v1.0"); + rvocab.put("https://w3id.org/cwl/cwl#v1.0.dev4", "v1.0.dev4"); + rvocab.put("https://w3id.org/cwl/cwl#v1.1", "v1.1"); + rvocab.put("https://w3id.org/cwl/cwl#v1.1.0-dev1", "v1.1.0-dev1"); + + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/DefaultFetcher.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/DefaultFetcher.java new file mode 100644 index 00000000..3c706d77 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/DefaultFetcher.java @@ -0,0 +1,48 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.io.IOException; +import java.net.URI; +import java.util.Arrays; +import java.util.Scanner; + +public class DefaultFetcher implements Fetcher { + + public String urlJoin(final String baseUrl, final String url) { + if (url.startsWith("_:")) { + return url; + } + + final URI baseUri = Uris.toUri(baseUrl); + final URI uri = Uris.toUri(url); + if (baseUri.getScheme() != null + && !baseUri.getScheme().equals("file") + && "file".equals(uri.getScheme())) { + throw new ValidationException( + String.format( + "Not resolving potential remote exploit %s from base %s".format(url, baseUrl))); + } + String result = baseUri.resolve(uri).toString(); + if (result.startsWith("file:")) { + // Well this is gross - needed for http as well? + result = "file://" + result.substring("file:".length()); + } + return result; + } + + public String fetchText(final String url) { + final URI uri = Uris.toUri(url); + final String scheme = uri.getScheme(); + if (Arrays.asList("http", "https", "file").contains(scheme)) { + Scanner scanner; + try { + scanner = new Scanner(uri.toURL().openStream(), "UTF-8").useDelimiter("\\A"); + } catch (IOException e) { + throw new ValidationException("Error fetching %s: %s.".format(url, e)); + } + String result = scanner.next(); + scanner.close(); + return result; + } + throw new ValidationException("Unsupported scheme in URL: %s".format(url)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/EnumLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/EnumLoader.java new file mode 100644 index 00000000..524025b4 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/EnumLoader.java @@ -0,0 +1,33 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.lang.reflect.Method; +import java.lang.ReflectiveOperationException; +import java.util.Arrays; +import java.util.List; + +public class EnumLoader implements Loader{ + private final Class symbolEnumClass; + + public EnumLoader(final Class symbolEnumClass) { + this.symbolEnumClass = symbolEnumClass; + } + + public T load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + final String docString = Loader.validateOfJavaType(String.class, doc); + try { + final Method m = symbolEnumClass.getMethod("fromDocumentVal", String.class); + final T val = (T) m.invoke(null, docString); + return val; + } catch (final ReflectiveOperationException e) { + final Throwable cause = e.getCause(); + if (cause instanceof RuntimeException) { + throw (RuntimeException) cause; + } + throw new RuntimeException(e); + } + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/ExpressionLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/ExpressionLoader.java new file mode 100644 index 00000000..c30a127e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/ExpressionLoader.java @@ -0,0 +1,19 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +public class ExpressionLoader implements Loader { + + public ExpressionLoader() { + } + + public String load( + final Object doc_, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + if (doc_ instanceof String) { + return (String) doc_; + } else { + throw new ValidationException("Expected a string."); + } + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/Fetcher.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/Fetcher.java new file mode 100644 index 00000000..f21df68c --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/Fetcher.java @@ -0,0 +1,8 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +public interface Fetcher { + + public abstract String urlJoin(final String baseUrl, final String url); + + public abstract String fetchText(final String url); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/IdMapLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/IdMapLoader.java new file mode 100644 index 00000000..c9a163ca --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/IdMapLoader.java @@ -0,0 +1,51 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.TreeSet; + +public class IdMapLoader implements Loader { + private final Loader innerLoader; + private final String mapSubject; + private final String mapPredicate; + + public IdMapLoader( + final Loader innerLoader, final String mapSubject, final String mapPredicate) { + this.innerLoader = innerLoader; + this.mapSubject = mapSubject; + this.mapPredicate = mapPredicate; + } + + public T load( + final Object doc_, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + Object doc = doc_; + if (doc instanceof Map) { + final Map docMap = (Map) doc; + final List asList = new ArrayList(); + for (final String key : docMap.keySet()) { + final Object el = docMap.get(key); + if (el instanceof Map) { + final Map v2 = new HashMap((Map) el); + v2.put(this.mapSubject, key); + asList.add(v2); + } else { + if (this.mapPredicate != null) { + final Map v3 = new HashMap(); + v3.put(this.mapPredicate, el); + v3.put(this.mapSubject, key); + asList.add(v3); + } else { + throw new ValidationException("No mapPredicate"); + } + } + } + doc = asList; + } + return this.innerLoader.load(doc, baseUri, loadingOptions); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/Loader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/Loader.java new file mode 100644 index 00000000..2e49adab --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/Loader.java @@ -0,0 +1,125 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public interface Loader { + + T load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot); + + default T load(final Object doc, final String baseUri, final LoadingOptions loadingOptions) { + return load(doc, baseUri, loadingOptions, null); + } + + default T documentLoad( + final String doc, final String baseUri, final LoadingOptions loadingOptions) { + return load(doc, baseUri, loadingOptions); + } + + default T documentLoad( + final Map doc_, final String baseUri_, final LoadingOptions loadingOptions_) { + Map doc = doc_; + LoadingOptions loadingOptions = loadingOptions_; + if (doc.containsKey("$namespaces")) { + final Map namespaces = (Map) doc.get("$namespaces"); + loadingOptions = + new LoadingOptionsBuilder().copiedFrom(loadingOptions).setNamespaces(namespaces).build(); + doc = copyWithoutKey(doc, "$namespaces"); + } + String baseUri = baseUri_; + if (doc.containsKey("$base")) { + baseUri = (String) doc.get("$base"); + } + if (doc.containsKey("$graph")) { + return load(doc.get("$graph"), baseUri, loadingOptions); + } else { + return load(doc, baseUri, loadingOptions, baseUri); + } + } + + default T documentLoad( + final List doc, final String baseUri, final LoadingOptions loadingOptions) { + return load(doc, baseUri, loadingOptions); + } + + default T documentLoadByUrl(final String url, final LoadingOptions loadingOptions) { + if (loadingOptions.idx.containsKey(url)) { + Object result = loadingOptions.idx.get(url); + if (result instanceof String) { + return documentLoad((String) result, url, loadingOptions); + } else if (result instanceof Map) { + return documentLoad((Map) result, url, loadingOptions); + } + return load(result, url, loadingOptions); + } + + final String text = loadingOptions.fetcher.fetchText(url); + try { + Map resultMap = YamlUtils.mapFromString(text); + loadingOptions.idx.put(url, resultMap); + final LoadingOptionsBuilder urlLoadingOptions = + new LoadingOptionsBuilder().copiedFrom(loadingOptions).setFileUri(url); + return documentLoad(resultMap, url, urlLoadingOptions.build()); + } catch (ClassCastException e) { + List resultList = YamlUtils.listFromString(text); + loadingOptions.idx.put(url, resultList); + final LoadingOptionsBuilder urlLoadingOptions = + new LoadingOptionsBuilder().copiedFrom(loadingOptions).setFileUri(url); + return documentLoad(resultList, url, urlLoadingOptions.build()); + } + } + + default T loadField( + final Object val_, final String baseUri, final LoadingOptions loadingOptions) { + Object val = val_; + if (val instanceof Map) { + Map valMap = (Map) val; + if (valMap.containsKey("$import")) { + if (loadingOptions.fileUri == null) { + throw new ValidationException("Cannot load $import without fileuri"); + } + return documentLoadByUrl( + loadingOptions.fetcher.urlJoin(loadingOptions.fileUri, (String) valMap.get("$import")), + loadingOptions); + } else if (valMap.containsKey("$include")) { + if (loadingOptions.fileUri == null) { + throw new ValidationException("Cannot load $import without fileuri"); + } + val = + loadingOptions.fetcher.fetchText( + loadingOptions.fetcher.urlJoin( + loadingOptions.fileUri, (String) valMap.get("$include"))); + } + } + return load(val, baseUri, loadingOptions); + } + + default Map copyWithoutKey(final Map doc, final String key) { + final Map result = new HashMap(); + for (final Map.Entry entry : doc.entrySet()) { + if (!entry.getKey().equals(key)) { + result.put(entry.getKey(), entry.getValue()); + } + } + return result; + } + + static T validateOfJavaType(final Class clazz, final Object doc) { + if (!clazz.isInstance(doc)) { + String className = "null"; + if (doc != null) { + className = doc.getClass().getName(); + } + final String message = + String.format( + "Expected object with Java type of %s but got %s", clazz.getName(), className); + throw new ValidationException(message); + } + return (T) doc; + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/LoaderInstances.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/LoaderInstances.java new file mode 100644 index 00000000..f030f0c0 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/LoaderInstances.java @@ -0,0 +1,319 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.util.List; +import org.commonwl.cwlsdk.cwl1_1.*; + +public class LoaderInstances { + public static Loader StringInstance = new PrimitiveLoader(String.class); + public static Loader IntegerInstance = new PrimitiveLoader(Integer.class); + public static Loader LongInstance = new PrimitiveLoader(Long.class); + public static Loader DoubleInstance = new PrimitiveLoader(Double.class); + public static Loader BooleanInstance = new PrimitiveLoader(Boolean.class); + public static Loader NullInstance = new NullLoader(); + public static Loader AnyInstance = new AnyLoader(); + public static Loader Documented = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.Documented.class, null, null); + public static Loader PrimitiveType = new EnumLoader(PrimitiveType.class); + public static Loader Any = new EnumLoader(Any.class); + public static Loader RecordField = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.RecordFieldImpl.class, null, null); + public static Loader RecordSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.RecordSchemaImpl.class, null, null); + public static Loader EnumSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.EnumSchemaImpl.class, null, null); + public static Loader ArraySchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.ArraySchemaImpl.class, null, null); + public static Loader MapSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.MapSchemaImpl.class, null, null); + public static Loader UnionSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.UnionSchemaImpl.class, null, null); + public static Loader CWLType = new EnumLoader(CWLType.class); + public static Loader CWLArraySchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.CWLArraySchemaImpl.class, null, null); + public static Loader CWLRecordField = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.CWLRecordFieldImpl.class, null, null); + public static Loader CWLRecordSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.CWLRecordSchemaImpl.class, null, null); + public static Loader File = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.FileImpl.class, null, null); + public static Loader Directory = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.DirectoryImpl.class, null, null); + public static Loader CWLObjectType = new UnionLoader(new Loader[] {}); + public static Loader> optional_CWLObjectType = new OptionalLoader(CWLObjectType); + public static Loader>> array_of_optional_CWLObjectType = new ArrayLoader(optional_CWLObjectType); + public static Loader>> map_of_optional_CWLObjectType = new MapLoader(optional_CWLObjectType, null, null); + public static Loader InlineJavascriptRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.InlineJavascriptRequirementImpl.class, null, null); + public static Loader SchemaDefRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.SchemaDefRequirementImpl.class, null, null); + public static Loader LoadListingRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.LoadListingRequirementImpl.class, null, null); + public static Loader DockerRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.DockerRequirementImpl.class, null, null); + public static Loader SoftwareRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.SoftwareRequirementImpl.class, null, null); + public static Loader InitialWorkDirRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.InitialWorkDirRequirementImpl.class, null, null); + public static Loader EnvVarRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.EnvVarRequirementImpl.class, null, null); + public static Loader ShellCommandRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.ShellCommandRequirementImpl.class, null, null); + public static Loader ResourceRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.ResourceRequirementImpl.class, null, null); + public static Loader WorkReuse = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.WorkReuseImpl.class, null, null); + public static Loader NetworkAccess = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.NetworkAccessImpl.class, null, null); + public static Loader InplaceUpdateRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.InplaceUpdateRequirementImpl.class, null, null); + public static Loader ToolTimeLimit = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.ToolTimeLimitImpl.class, null, null); + public static Loader SubworkflowFeatureRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.SubworkflowFeatureRequirementImpl.class, null, null); + public static Loader ScatterFeatureRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.ScatterFeatureRequirementImpl.class, null, null); + public static Loader MultipleInputFeatureRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.MultipleInputFeatureRequirementImpl.class, null, null); + public static Loader StepInputExpressionRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.StepInputExpressionRequirementImpl.class, null, null); + public static Loader union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement = new UnionLoader(new Loader[] { InlineJavascriptRequirement, SchemaDefRequirement, LoadListingRequirement, DockerRequirement, SoftwareRequirement, InitialWorkDirRequirement, EnvVarRequirement, ShellCommandRequirement, ResourceRequirement, WorkReuse, NetworkAccess, InplaceUpdateRequirement, ToolTimeLimit, SubworkflowFeatureRequirement, ScatterFeatureRequirement, MultipleInputFeatureRequirement, StepInputExpressionRequirement }); + public static Loader> array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement = new ArrayLoader(union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement); + public static Loader union_of_NullInstance_or_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_CWLObjectType = new UnionLoader(new Loader[] { NullInstance, array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement, CWLObjectType }); + public static Loader> map_of_union_of_NullInstance_or_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_CWLObjectType = new MapLoader(union_of_NullInstance_or_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_CWLObjectType, "@list", true); + public static Loader CWLVersion = new EnumLoader(CWLVersion.class); + public static Loader Labeled = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.Labeled.class, null, null); + public static Loader Identified = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.Identified.class, null, null); + public static Loader LoadListingEnum = new EnumLoader(LoadListingEnum.class); + public static Loader LoadContents = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.LoadContents.class, null, null); + public static Loader FieldBase = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.FieldBase.class, null, null); + public static Loader InputFormat = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.InputFormat.class, null, null); + public static Loader OutputFormat = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.OutputFormat.class, null, null); + public static Loader Parameter = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.Parameter.class, null, null); + public static Loader Expression = new EnumLoader(Expression.class); + public static Loader InputBinding = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.InputBindingImpl.class, null, null); + public static Loader IOSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.IOSchema.class, null, null); + public static Loader InputSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.InputSchema.class, null, null); + public static Loader OutputSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.OutputSchema.class, null, null); + public static Loader InputRecordField = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.InputRecordFieldImpl.class, null, null); + public static Loader InputRecordSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.InputRecordSchemaImpl.class, null, null); + public static Loader InputEnumSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.InputEnumSchemaImpl.class, null, null); + public static Loader InputArraySchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.InputArraySchemaImpl.class, null, null); + public static Loader OutputRecordField = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.OutputRecordFieldImpl.class, null, null); + public static Loader OutputRecordSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.OutputRecordSchemaImpl.class, null, null); + public static Loader OutputEnumSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.OutputEnumSchemaImpl.class, null, null); + public static Loader OutputArraySchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.OutputArraySchemaImpl.class, null, null); + public static Loader InputParameter = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.InputParameter.class, null, null); + public static Loader OutputParameter = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.OutputParameter.class, null, null); + public static Loader ProcessRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.ProcessRequirement.class, null, null); + public static Loader Process = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.Process.class, null, null); + public static Loader CommandInputSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.CommandInputSchema.class, null, null); + public static Loader SecondaryFileSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.SecondaryFileSchemaImpl.class, null, null); + public static Loader EnvironmentDef = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.EnvironmentDefImpl.class, null, null); + public static Loader CommandLineBinding = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.CommandLineBindingImpl.class, null, null); + public static Loader CommandOutputBinding = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.CommandOutputBindingImpl.class, null, null); + public static Loader CommandLineBindable = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.CommandLineBindableImpl.class, null, null); + public static Loader CommandInputRecordField = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.CommandInputRecordFieldImpl.class, null, null); + public static Loader CommandInputRecordSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.CommandInputRecordSchemaImpl.class, null, null); + public static Loader CommandInputEnumSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.CommandInputEnumSchemaImpl.class, null, null); + public static Loader CommandInputArraySchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.CommandInputArraySchemaImpl.class, null, null); + public static Loader CommandOutputRecordField = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.CommandOutputRecordFieldImpl.class, null, null); + public static Loader CommandOutputRecordSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.CommandOutputRecordSchemaImpl.class, null, null); + public static Loader CommandOutputEnumSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.CommandOutputEnumSchemaImpl.class, null, null); + public static Loader CommandOutputArraySchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.CommandOutputArraySchemaImpl.class, null, null); + public static Loader CommandInputParameter = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.CommandInputParameterImpl.class, null, null); + public static Loader CommandOutputParameter = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.CommandOutputParameterImpl.class, null, null); + public static Loader stdin = new EnumLoader(stdin.class); + public static Loader stdout = new EnumLoader(stdout.class); + public static Loader stderr = new EnumLoader(stderr.class); + public static Loader CommandLineTool = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.CommandLineToolImpl.class, null, null); + public static Loader SoftwarePackage = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.SoftwarePackageImpl.class, null, null); + public static Loader Dirent = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.DirentImpl.class, null, null); + public static Loader ExpressionToolOutputParameter = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.ExpressionToolOutputParameterImpl.class, null, null); + public static Loader WorkflowInputParameter = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.WorkflowInputParameterImpl.class, null, null); + public static Loader ExpressionTool = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.ExpressionToolImpl.class, null, null); + public static Loader LinkMergeMethod = new EnumLoader(LinkMergeMethod.class); + public static Loader WorkflowOutputParameter = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.WorkflowOutputParameterImpl.class, null, null); + public static Loader Sink = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.Sink.class, null, null); + public static Loader WorkflowStepInput = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.WorkflowStepInputImpl.class, null, null); + public static Loader WorkflowStepOutput = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.WorkflowStepOutputImpl.class, null, null); + public static Loader ScatterMethod = new EnumLoader(ScatterMethod.class); + public static Loader WorkflowStep = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.WorkflowStepImpl.class, null, null); + public static Loader Workflow = new RecordLoader(org.commonwl.cwlsdk.cwl1_1.WorkflowImpl.class, null, null); + public static Loader> array_of_StringInstance = new ArrayLoader(StringInstance); + public static Loader union_of_NullInstance_or_StringInstance_or_array_of_StringInstance = new UnionLoader(new Loader[] { NullInstance, StringInstance, array_of_StringInstance }); + public static Loader uri_StringInstance_True_False_None_None = new UriLoader(StringInstance, true, false, null, null); + public static Loader union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance = new UnionLoader(new Loader[] { PrimitiveType, RecordSchema, EnumSchema, ArraySchema, MapSchema, UnionSchema, StringInstance }); + public static Loader> array_of_union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance = new ArrayLoader(union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance); + public static Loader 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 = new UnionLoader(new Loader[] { PrimitiveType, RecordSchema, EnumSchema, ArraySchema, MapSchema, UnionSchema, StringInstance, array_of_union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance }); + public static Loader typedsl_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_2 = new TypeDslLoader(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, 2); + public static Loader> array_of_RecordField = new ArrayLoader(RecordField); + public static Loader>> optional_array_of_RecordField = new OptionalLoader(array_of_RecordField); + public static Loader>> idmap_fields_optional_array_of_RecordField = new IdMapLoader(optional_array_of_RecordField, "name", "type"); + public static Loader Record_name = new EnumLoader(Record_name.class); + public static Loader typedsl_Record_name_2 = new TypeDslLoader(Record_name, 2); + public static Loader> optional_StringInstance = new OptionalLoader(StringInstance); + public static Loader> uri_optional_StringInstance_True_False_None_None = new UriLoader(optional_StringInstance, true, false, null, null); + public static Loader> uri_array_of_StringInstance_True_False_None_None = new UriLoader(array_of_StringInstance, true, false, null, null); + public static Loader Enum_name = new EnumLoader(Enum_name.class); + public static Loader typedsl_Enum_name_2 = new TypeDslLoader(Enum_name, 2); + public static Loader 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 = new UriLoader(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, null); + public static Loader Array_name = new EnumLoader(Array_name.class); + public static Loader typedsl_Array_name_2 = new TypeDslLoader(Array_name, 2); + public static Loader Map_name = new EnumLoader(Map_name.class); + public static Loader typedsl_Map_name_2 = new TypeDslLoader(Map_name, 2); + public static Loader Union_name = new EnumLoader(Union_name.class); + public static Loader typedsl_Union_name_2 = new TypeDslLoader(Union_name, 2); + public static Loader union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance = new UnionLoader(new Loader[] { PrimitiveType, CWLRecordSchema, EnumSchema, CWLArraySchema, StringInstance }); + public static Loader> array_of_union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance = new ArrayLoader(union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance); + public static Loader 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 = new UnionLoader(new Loader[] { PrimitiveType, CWLRecordSchema, EnumSchema, CWLArraySchema, StringInstance, array_of_union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance }); + public static Loader 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 = new UriLoader(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, null); + public static Loader 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 = new TypeDslLoader(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); + public static Loader> array_of_CWLRecordField = new ArrayLoader(CWLRecordField); + public static Loader>> optional_array_of_CWLRecordField = new OptionalLoader(array_of_CWLRecordField); + public static Loader>> idmap_fields_optional_array_of_CWLRecordField = new IdMapLoader(optional_array_of_CWLRecordField, "name", "type"); + public static Loader File_class = new EnumLoader(File_class.class); + public static Loader uri_File_class_False_True_None_None = new UriLoader(File_class, false, true, null, null); + public static Loader> uri_optional_StringInstance_False_False_None_None = new UriLoader(optional_StringInstance, false, false, null, null); + public static Loader union_of_NullInstance_or_IntegerInstance_or_LongInstance = new UnionLoader(new Loader[] { NullInstance, IntegerInstance, LongInstance }); + public static Loader union_of_File_or_Directory = new UnionLoader(new Loader[] { File, Directory }); + public static Loader> array_of_union_of_File_or_Directory = new ArrayLoader(union_of_File_or_Directory); + public static Loader>> optional_array_of_union_of_File_or_Directory = new OptionalLoader(array_of_union_of_File_or_Directory); + public static Loader>> secondaryfilesdsl_optional_array_of_union_of_File_or_Directory = new SecondaryFilesDslLoader(optional_array_of_union_of_File_or_Directory); + public static Loader> uri_optional_StringInstance_True_False_None_True = new UriLoader(optional_StringInstance, true, false, null, true); + public static Loader Directory_class = new EnumLoader(Directory_class.class); + public static Loader uri_Directory_class_False_True_None_None = new UriLoader(Directory_class, false, true, null, null); + public static Loader> optional_BooleanInstance = new OptionalLoader(BooleanInstance); + public static Loader> optional_LoadListingEnum = new OptionalLoader(LoadListingEnum); + public static Loader> array_of_SecondaryFileSchema = new ArrayLoader(SecondaryFileSchema); + public static Loader union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema = new UnionLoader(new Loader[] { NullInstance, SecondaryFileSchema, array_of_SecondaryFileSchema }); + public static Loader secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema = new SecondaryFilesDslLoader(union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema); + public static Loader ExpressionLoader = new ExpressionLoader(); + public static Loader union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, StringInstance, array_of_StringInstance, ExpressionLoader }); + public static Loader uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True = new UriLoader(union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader, true, false, null, true); + public static Loader union_of_NullInstance_or_StringInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, StringInstance, ExpressionLoader }); + public static Loader uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True = new UriLoader(union_of_NullInstance_or_StringInstance_or_ExpressionLoader, true, false, null, true); + public static Loader union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, InputRecordSchema, InputEnumSchema, InputArraySchema, StringInstance }); + public static Loader> array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance = new ArrayLoader(union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance); + public static Loader union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, InputRecordSchema, InputEnumSchema, InputArraySchema, StringInstance, array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance }); + public static Loader typedsl_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance, 2); + public static Loader> array_of_InputRecordField = new ArrayLoader(InputRecordField); + public static Loader>> optional_array_of_InputRecordField = new OptionalLoader(array_of_InputRecordField); + public static Loader>> idmap_fields_optional_array_of_InputRecordField = new IdMapLoader(optional_array_of_InputRecordField, "name", "type"); + public static Loader uri_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_False_True_2_None = new UriLoader(union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance, false, true, 2, null); + public static Loader union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, OutputRecordSchema, OutputEnumSchema, OutputArraySchema, StringInstance }); + public static Loader> array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance = new ArrayLoader(union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance); + public static Loader union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, OutputRecordSchema, OutputEnumSchema, OutputArraySchema, StringInstance, array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance }); + public static Loader typedsl_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance, 2); + public static Loader> array_of_OutputRecordField = new ArrayLoader(OutputRecordField); + public static Loader>> optional_array_of_OutputRecordField = new OptionalLoader(array_of_OutputRecordField); + public static Loader>> idmap_fields_optional_array_of_OutputRecordField = new IdMapLoader(optional_array_of_OutputRecordField, "name", "type"); + public static Loader uri_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_False_True_2_None = new UriLoader(union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance, false, true, 2, null); + public static Loader union_of_CommandInputParameter_or_WorkflowInputParameter = new UnionLoader(new Loader[] { CommandInputParameter, WorkflowInputParameter }); + public static Loader> array_of_union_of_CommandInputParameter_or_WorkflowInputParameter = new ArrayLoader(union_of_CommandInputParameter_or_WorkflowInputParameter); + public static Loader> idmap_inputs_array_of_union_of_CommandInputParameter_or_WorkflowInputParameter = new IdMapLoader(array_of_union_of_CommandInputParameter_or_WorkflowInputParameter, "id", "type"); + public static Loader union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter = new UnionLoader(new Loader[] { CommandOutputParameter, ExpressionToolOutputParameter, WorkflowOutputParameter }); + public static Loader> array_of_union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter = new ArrayLoader(union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter); + public static Loader> idmap_outputs_array_of_union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter = new IdMapLoader(array_of_union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter, "id", "type"); + public static Loader>> optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement = new OptionalLoader(array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement); + public static Loader>> idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement = new IdMapLoader(optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement, "class", "None"); + public static Loader union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance = new UnionLoader(new Loader[] { InlineJavascriptRequirement, SchemaDefRequirement, LoadListingRequirement, DockerRequirement, SoftwareRequirement, InitialWorkDirRequirement, EnvVarRequirement, ShellCommandRequirement, ResourceRequirement, WorkReuse, NetworkAccess, InplaceUpdateRequirement, ToolTimeLimit, SubworkflowFeatureRequirement, ScatterFeatureRequirement, MultipleInputFeatureRequirement, StepInputExpressionRequirement, AnyInstance }); + public static Loader> array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance = new ArrayLoader(union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance); + public static Loader>> optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance = new OptionalLoader(array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance); + public static Loader>> idmap_hints_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance = new IdMapLoader(optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance, "class", "None"); + public static Loader> optional_CWLVersion = new OptionalLoader(CWLVersion); + public static Loader> uri_optional_CWLVersion_False_True_None_None = new UriLoader(optional_CWLVersion, false, true, null, null); + public static Loader InlineJavascriptRequirement_class = new EnumLoader(InlineJavascriptRequirement_class.class); + public static Loader uri_InlineJavascriptRequirement_class_False_True_None_None = new UriLoader(InlineJavascriptRequirement_class, false, true, null, null); + public static Loader>> optional_array_of_StringInstance = new OptionalLoader(array_of_StringInstance); + public static Loader SchemaDefRequirement_class = new EnumLoader(SchemaDefRequirement_class.class); + public static Loader uri_SchemaDefRequirement_class_False_True_None_None = new UriLoader(SchemaDefRequirement_class, false, true, null, null); + public static Loader union_of_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema = new UnionLoader(new Loader[] { CommandInputRecordSchema, CommandInputEnumSchema, CommandInputArraySchema }); + public static Loader> array_of_union_of_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema = new ArrayLoader(union_of_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema); + public static Loader union_of_StringInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { StringInstance, ExpressionLoader }); + public static Loader union_of_NullInstance_or_BooleanInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, BooleanInstance, ExpressionLoader }); + public static Loader LoadListingRequirement_class = new EnumLoader(LoadListingRequirement_class.class); + public static Loader uri_LoadListingRequirement_class_False_True_None_None = new UriLoader(LoadListingRequirement_class, false, true, null, null); + public static Loader union_of_NullInstance_or_IntegerInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, IntegerInstance, ExpressionLoader }); + public static Loader union_of_NullInstance_or_StringInstance_or_ExpressionLoader_or_array_of_StringInstance = new UnionLoader(new Loader[] { NullInstance, StringInstance, ExpressionLoader, array_of_StringInstance }); + public static Loader> optional_ExpressionLoader = new OptionalLoader(ExpressionLoader); + public static Loader> optional_CommandLineBinding = new OptionalLoader(CommandLineBinding); + public static Loader union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, CommandInputRecordSchema, CommandInputEnumSchema, CommandInputArraySchema, StringInstance }); + public static Loader> array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance = new ArrayLoader(union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance); + public static Loader 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 = new UnionLoader(new Loader[] { CWLType, CommandInputRecordSchema, CommandInputEnumSchema, CommandInputArraySchema, StringInstance, array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance }); + public static Loader 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 = new TypeDslLoader(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); + public static Loader> array_of_CommandInputRecordField = new ArrayLoader(CommandInputRecordField); + public static Loader>> optional_array_of_CommandInputRecordField = new OptionalLoader(array_of_CommandInputRecordField); + public static Loader>> idmap_fields_optional_array_of_CommandInputRecordField = new IdMapLoader(optional_array_of_CommandInputRecordField, "name", "type"); + public static Loader 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_None = new UriLoader(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, null); + public static Loader union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, CommandOutputRecordSchema, CommandOutputEnumSchema, CommandOutputArraySchema, StringInstance }); + public static Loader> array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance = new ArrayLoader(union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance); + public static Loader union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, CommandOutputRecordSchema, CommandOutputEnumSchema, CommandOutputArraySchema, StringInstance, array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance }); + public static Loader typedsl_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance, 2); + public static Loader> optional_CommandOutputBinding = new OptionalLoader(CommandOutputBinding); + public static Loader> array_of_CommandOutputRecordField = new ArrayLoader(CommandOutputRecordField); + public static Loader>> optional_array_of_CommandOutputRecordField = new OptionalLoader(array_of_CommandOutputRecordField); + public static Loader>> idmap_fields_optional_array_of_CommandOutputRecordField = new IdMapLoader(optional_array_of_CommandOutputRecordField, "name", "type"); + public static Loader uri_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_False_True_2_None = new UriLoader(union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance, false, true, 2, null); + public static Loader union_of_CWLType_or_stdin_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, stdin, CommandInputRecordSchema, CommandInputEnumSchema, CommandInputArraySchema, StringInstance, array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance }); + public static Loader typedsl_union_of_CWLType_or_stdin_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_stdin_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance, 2); + public static Loader union_of_CWLType_or_stdout_or_stderr_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, stdout, stderr, CommandOutputRecordSchema, CommandOutputEnumSchema, CommandOutputArraySchema, StringInstance, array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance }); + public static Loader typedsl_union_of_CWLType_or_stdout_or_stderr_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_stdout_or_stderr_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance, 2); + public static Loader CommandLineTool_class = new EnumLoader(CommandLineTool_class.class); + public static Loader uri_CommandLineTool_class_False_True_None_None = new UriLoader(CommandLineTool_class, false, true, null, null); + public static Loader> array_of_CommandInputParameter = new ArrayLoader(CommandInputParameter); + public static Loader> idmap_inputs_array_of_CommandInputParameter = new IdMapLoader(array_of_CommandInputParameter, "id", "type"); + public static Loader> array_of_CommandOutputParameter = new ArrayLoader(CommandOutputParameter); + public static Loader> idmap_outputs_array_of_CommandOutputParameter = new IdMapLoader(array_of_CommandOutputParameter, "id", "type"); + public static Loader union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding = new UnionLoader(new Loader[] { StringInstance, ExpressionLoader, CommandLineBinding }); + public static Loader> array_of_union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding = new ArrayLoader(union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding); + public static Loader>> optional_array_of_union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding = new OptionalLoader(array_of_union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding); + public static Loader> array_of_IntegerInstance = new ArrayLoader(IntegerInstance); + public static Loader>> optional_array_of_IntegerInstance = new OptionalLoader(array_of_IntegerInstance); + public static Loader DockerRequirement_class = new EnumLoader(DockerRequirement_class.class); + public static Loader uri_DockerRequirement_class_False_True_None_None = new UriLoader(DockerRequirement_class, false, true, null, null); + public static Loader SoftwareRequirement_class = new EnumLoader(SoftwareRequirement_class.class); + public static Loader uri_SoftwareRequirement_class_False_True_None_None = new UriLoader(SoftwareRequirement_class, false, true, null, null); + public static Loader> array_of_SoftwarePackage = new ArrayLoader(SoftwarePackage); + public static Loader> idmap_packages_array_of_SoftwarePackage = new IdMapLoader(array_of_SoftwarePackage, "package", "specs"); + public static Loader>> uri_optional_array_of_StringInstance_False_False_None_True = new UriLoader(optional_array_of_StringInstance, false, false, null, true); + public static Loader InitialWorkDirRequirement_class = new EnumLoader(InitialWorkDirRequirement_class.class); + public static Loader uri_InitialWorkDirRequirement_class_False_True_None_None = new UriLoader(InitialWorkDirRequirement_class, false, true, null, null); + public static Loader union_of_NullInstance_or_File_or_array_of_union_of_File_or_Directory_or_Directory_or_Dirent_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, File, array_of_union_of_File_or_Directory, Directory, Dirent, ExpressionLoader }); + public static Loader> array_of_union_of_NullInstance_or_File_or_array_of_union_of_File_or_Directory_or_Directory_or_Dirent_or_ExpressionLoader = new ArrayLoader(union_of_NullInstance_or_File_or_array_of_union_of_File_or_Directory_or_Directory_or_Dirent_or_ExpressionLoader); + public static Loader union_of_array_of_union_of_NullInstance_or_File_or_array_of_union_of_File_or_Directory_or_Directory_or_Dirent_or_ExpressionLoader_or_ExpressionLoader = new UnionLoader(new Loader[] { array_of_union_of_NullInstance_or_File_or_array_of_union_of_File_or_Directory_or_Directory_or_Dirent_or_ExpressionLoader, ExpressionLoader }); + public static Loader EnvVarRequirement_class = new EnumLoader(EnvVarRequirement_class.class); + public static Loader uri_EnvVarRequirement_class_False_True_None_None = new UriLoader(EnvVarRequirement_class, false, true, null, null); + public static Loader> array_of_EnvironmentDef = new ArrayLoader(EnvironmentDef); + public static Loader> idmap_envDef_array_of_EnvironmentDef = new IdMapLoader(array_of_EnvironmentDef, "envName", "envValue"); + public static Loader ShellCommandRequirement_class = new EnumLoader(ShellCommandRequirement_class.class); + public static Loader uri_ShellCommandRequirement_class_False_True_None_None = new UriLoader(ShellCommandRequirement_class, false, true, null, null); + public static Loader ResourceRequirement_class = new EnumLoader(ResourceRequirement_class.class); + public static Loader uri_ResourceRequirement_class_False_True_None_None = new UriLoader(ResourceRequirement_class, false, true, null, null); + public static Loader union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, IntegerInstance, LongInstance, ExpressionLoader }); + public static Loader WorkReuse_class = new EnumLoader(WorkReuse_class.class); + public static Loader uri_WorkReuse_class_False_True_None_None = new UriLoader(WorkReuse_class, false, true, null, null); + public static Loader union_of_BooleanInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { BooleanInstance, ExpressionLoader }); + public static Loader NetworkAccess_class = new EnumLoader(NetworkAccess_class.class); + public static Loader uri_NetworkAccess_class_False_True_None_None = new UriLoader(NetworkAccess_class, false, true, null, null); + public static Loader InplaceUpdateRequirement_class = new EnumLoader(InplaceUpdateRequirement_class.class); + public static Loader uri_InplaceUpdateRequirement_class_False_True_None_None = new UriLoader(InplaceUpdateRequirement_class, false, true, null, null); + public static Loader ToolTimeLimit_class = new EnumLoader(ToolTimeLimit_class.class); + public static Loader uri_ToolTimeLimit_class_False_True_None_None = new UriLoader(ToolTimeLimit_class, false, true, null, null); + public static Loader union_of_IntegerInstance_or_LongInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { IntegerInstance, LongInstance, ExpressionLoader }); + public static Loader> optional_InputBinding = new OptionalLoader(InputBinding); + public static Loader ExpressionTool_class = new EnumLoader(ExpressionTool_class.class); + public static Loader uri_ExpressionTool_class_False_True_None_None = new UriLoader(ExpressionTool_class, false, true, null, null); + public static Loader> array_of_WorkflowInputParameter = new ArrayLoader(WorkflowInputParameter); + public static Loader> idmap_inputs_array_of_WorkflowInputParameter = new IdMapLoader(array_of_WorkflowInputParameter, "id", "type"); + public static Loader> array_of_ExpressionToolOutputParameter = new ArrayLoader(ExpressionToolOutputParameter); + public static Loader> idmap_outputs_array_of_ExpressionToolOutputParameter = new IdMapLoader(array_of_ExpressionToolOutputParameter, "id", "type"); + public static Loader uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_1_None = new UriLoader(union_of_NullInstance_or_StringInstance_or_array_of_StringInstance, false, false, 1, null); + public static Loader> optional_LinkMergeMethod = new OptionalLoader(LinkMergeMethod); + public static Loader uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_2_None = new UriLoader(union_of_NullInstance_or_StringInstance_or_array_of_StringInstance, false, false, 2, null); + public static Loader> array_of_WorkflowStepInput = new ArrayLoader(WorkflowStepInput); + public static Loader> idmap_in_array_of_WorkflowStepInput = new IdMapLoader(array_of_WorkflowStepInput, "id", "source"); + public static Loader union_of_StringInstance_or_WorkflowStepOutput = new UnionLoader(new Loader[] { StringInstance, WorkflowStepOutput }); + public static Loader> array_of_union_of_StringInstance_or_WorkflowStepOutput = new ArrayLoader(union_of_StringInstance_or_WorkflowStepOutput); + public static Loader> uri_array_of_union_of_StringInstance_or_WorkflowStepOutput_True_False_None_None = new UriLoader(array_of_union_of_StringInstance_or_WorkflowStepOutput, true, false, null, null); + public static Loader> array_of_AnyInstance = new ArrayLoader(AnyInstance); + public static Loader>> optional_array_of_AnyInstance = new OptionalLoader(array_of_AnyInstance); + public static Loader>> idmap_hints_optional_array_of_AnyInstance = new IdMapLoader(optional_array_of_AnyInstance, "class", "None"); + public static Loader union_of_StringInstance_or_CommandLineTool_or_ExpressionTool_or_Workflow = new UnionLoader(new Loader[] { StringInstance, CommandLineTool, ExpressionTool, Workflow }); + public static Loader uri_union_of_StringInstance_or_CommandLineTool_or_ExpressionTool_or_Workflow_False_False_None_None = new UriLoader(union_of_StringInstance_or_CommandLineTool_or_ExpressionTool_or_Workflow, false, false, null, null); + public static Loader uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_0_None = new UriLoader(union_of_NullInstance_or_StringInstance_or_array_of_StringInstance, false, false, 0, null); + public static Loader> optional_ScatterMethod = new OptionalLoader(ScatterMethod); + public static Loader> uri_optional_ScatterMethod_False_True_None_None = new UriLoader(optional_ScatterMethod, false, true, null, null); + public static Loader Workflow_class = new EnumLoader(Workflow_class.class); + public static Loader uri_Workflow_class_False_True_None_None = new UriLoader(Workflow_class, false, true, null, null); + public static Loader> array_of_WorkflowOutputParameter = new ArrayLoader(WorkflowOutputParameter); + public static Loader> idmap_outputs_array_of_WorkflowOutputParameter = new IdMapLoader(array_of_WorkflowOutputParameter, "id", "type"); + public static Loader> array_of_WorkflowStep = new ArrayLoader(WorkflowStep); + public static Loader> idmap_steps_array_of_WorkflowStep = new IdMapLoader(array_of_WorkflowStep, "id", "None"); + public static Loader SubworkflowFeatureRequirement_class = new EnumLoader(SubworkflowFeatureRequirement_class.class); + public static Loader uri_SubworkflowFeatureRequirement_class_False_True_None_None = new UriLoader(SubworkflowFeatureRequirement_class, false, true, null, null); + public static Loader ScatterFeatureRequirement_class = new EnumLoader(ScatterFeatureRequirement_class.class); + public static Loader uri_ScatterFeatureRequirement_class_False_True_None_None = new UriLoader(ScatterFeatureRequirement_class, false, true, null, null); + public static Loader MultipleInputFeatureRequirement_class = new EnumLoader(MultipleInputFeatureRequirement_class.class); + public static Loader uri_MultipleInputFeatureRequirement_class_False_True_None_None = new UriLoader(MultipleInputFeatureRequirement_class, false, true, null, null); + public static Loader StepInputExpressionRequirement_class = new EnumLoader(StepInputExpressionRequirement_class.class); + public static Loader uri_StepInputExpressionRequirement_class_False_True_None_None = new UriLoader(StepInputExpressionRequirement_class, false, true, null, null); + public static Loader union_of_CommandLineTool_or_ExpressionTool_or_Workflow = new UnionLoader(new Loader[] { CommandLineTool, ExpressionTool, Workflow }); + public static Loader> array_of_union_of_CommandLineTool_or_ExpressionTool_or_Workflow = new ArrayLoader(union_of_CommandLineTool_or_ExpressionTool_or_Workflow); + public static Loader union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_array_of_union_of_CommandLineTool_or_ExpressionTool_or_Workflow = new UnionLoader(new Loader[] { CommandLineTool, ExpressionTool, Workflow, array_of_union_of_CommandLineTool_or_ExpressionTool_or_Workflow }); + + static { + ((UnionLoader) CWLObjectType).addLoaders(new Loader[] { BooleanInstance, IntegerInstance, LongInstance, DoubleInstance, DoubleInstance, StringInstance, File, Directory, array_of_optional_CWLObjectType, map_of_optional_CWLObjectType }); + } + +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/LoadingOptions.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/LoadingOptions.java new file mode 100644 index 00000000..28642a6d --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/LoadingOptions.java @@ -0,0 +1,129 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.net.URI; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +public class LoadingOptions { + Fetcher fetcher; + String fileUri; + Map namespaces; + List schemas; + Boolean noLinkCheck; + String container; + Map idx; + Map vocab; + Map rvocab; + + LoadingOptions( + final Fetcher fetcher, + final String fileUri, + final Map namespaces, + final List schemas, + final Boolean noLinkCheck, + final String container, + final Map idx) { + this.fetcher = fetcher; + this.fileUri = fileUri; + this.namespaces = namespaces; + this.schemas = schemas; + this.noLinkCheck = noLinkCheck; + this.container = container; + this.idx = idx; + + if (namespaces != null) { + this.vocab = (Map) ConstantMaps.vocab.clone(); + this.rvocab = (Map) ConstantMaps.rvocab.clone(); + for (Map.Entry namespaceEntry : namespaces.entrySet()) { + this.vocab.put(namespaceEntry.getKey(), namespaceEntry.getValue()); + this.rvocab.put(namespaceEntry.getValue(), namespaceEntry.getKey()); + } + } else { + this.vocab = (Map) ConstantMaps.vocab; + this.rvocab = (Map) ConstantMaps.rvocab; + } + } + + public String expandUrl( + String url_, + final String baseUrl, + final boolean scopedId, + final boolean vocabTerm, + final Integer scopedRef) { + // NOT CONVERTING this - doesn't match type declaration + // if not isinstance(url, str): + // return url + String url = url_; + if (url.equals("@id") || url.equals("@type")) { + return url; + } + + if (vocabTerm && this.vocab.containsKey(url)) { + return url; + } + + if (!this.vocab.isEmpty() && url.contains(":")) { + String prefix = url.split(":")[0]; + if (this.vocab.containsKey(prefix)) { + url = this.vocab.get(prefix) + url.substring(prefix.length() + 1); + } + } + + Uris.UriSplit split = Uris.split(url); + final String scheme = split.scheme; + final boolean hasFragment = stringHasContent(split.fragment); + if (scheme != null + && ((scheme.length() > 0 + && (scheme.equals("http") || scheme.equals("https") || scheme.equals("file"))) + || url.startsWith("$(") + || url.startsWith("${"))) { + // pass + } else if (scopedId && !hasFragment) { + final Uris.UriSplit splitbase = Uris.split(baseUrl); + final String frg; + if (stringHasContent(splitbase.fragment)) { + frg = splitbase.fragment + "/" + split.path; + } else { + frg = split.path; + } + String pt; + if (!splitbase.path.equals("")) { + pt = splitbase.path; + } else { + pt = "/"; + } + url = Uris.unsplit(splitbase.scheme, splitbase.netloc, pt, splitbase.query, frg); + } else if (scopedRef != null && !hasFragment) { + final Uris.UriSplit splitbase = Uris.split(baseUrl); + final ArrayList sp = new ArrayList(Arrays.asList(splitbase.fragment.split("/"))); + int n = scopedRef; + while (n > 0 && sp.size() > 0) { + sp.remove(sp.size()-1); + n -= 1; + } + sp.add(url); + final String fragment = String.join("/", sp); + url = Uris.unsplit(splitbase.scheme, splitbase.netloc, splitbase.path, splitbase.query, fragment); + } else { + url = this.fetcher.urlJoin(baseUrl, url); + } + + if (vocabTerm) { + split = Uris.split(url); + if (stringHasContent(split.scheme)) { + if (this.rvocab.containsKey(url)) { + return this.rvocab.get(url); + } + } else { + throw new ValidationException("Term '{}' not in vocabulary".format(url)); + } + } + return url; + } + + static boolean stringHasContent(final String s) { + return s != null && s.length() > 0; + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/LoadingOptionsBuilder.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/LoadingOptionsBuilder.java new file mode 100644 index 00000000..a8a20f8a --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/LoadingOptionsBuilder.java @@ -0,0 +1,82 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Optional; + +public class LoadingOptionsBuilder { + private Optional fetcher = Optional.empty(); + private Optional fileUri = Optional.empty(); + private Optional> namespaces = Optional.empty(); + private Optional> schemas = Optional.empty(); + private Optional copyFrom = Optional.empty(); + private Optional noLinkCheck = Optional.empty(); + private Optional container = Optional.empty(); + + public LoadingOptionsBuilder() {} + + public LoadingOptionsBuilder setFetcher(final Fetcher fetcher) { + this.fetcher = Optional.of(fetcher); + return this; + } + + public LoadingOptionsBuilder copiedFrom(final LoadingOptions copyFrom) { + this.copyFrom = Optional.of(copyFrom); + return this; + } + + public LoadingOptionsBuilder setFileUri(final String fileUri) { + this.fileUri = Optional.of(fileUri); + return this; + } + + public LoadingOptionsBuilder setNamespaces(final Map namespaces) { + this.namespaces = Optional.of(namespaces); + return this; + } + + public LoadingOptionsBuilder setNoLinkCheck(final Boolean noLinkCheck) { + this.noLinkCheck = Optional.of(noLinkCheck); + return this; + } + + public LoadingOptionsBuilder setContainer(final String container) { + this.container = Optional.of(container); + return this; + } + + public LoadingOptions build() { + Fetcher fetcher = this.fetcher.orElse(null); + String fileUri = this.fileUri.orElse(null); + List schemas = this.schemas.orElse(null); + Map namespaces = this.namespaces.orElse(null); + Boolean noLinkCheck = this.noLinkCheck.orElse(null); + String container = this.container.orElse(null); + Map idx = new HashMap(); + if (this.copyFrom.isPresent()) { + final LoadingOptions copyFrom = this.copyFrom.get(); + idx = copyFrom.idx; + if (fetcher == null) { + fetcher = copyFrom.fetcher; + } + if (fileUri == null) { + fileUri = copyFrom.fileUri; + } + if (namespaces == null) { + namespaces = copyFrom.namespaces; + schemas = copyFrom.schemas; // Bug in Python codegen? + } + if (noLinkCheck == null) { + noLinkCheck = copyFrom.noLinkCheck; + } + if (container == null) { + container = copyFrom.container; + } + } + if (fetcher == null) { + fetcher = new DefaultFetcher(); + } + return new LoadingOptions(fetcher, fileUri, namespaces, schemas, noLinkCheck, container, idx); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/MapLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/MapLoader.java new file mode 100644 index 00000000..05a4901f --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/MapLoader.java @@ -0,0 +1,51 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class MapLoader implements Loader> { + private final Loader valueLoader; + private final String container; + private final Boolean noLinkCheck; + + public MapLoader(Loader valueLoader, final String container, final Boolean noLinkCheck) { + this.valueLoader = valueLoader; + this.container = container; + this.noLinkCheck = noLinkCheck; + } + + public Map load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + final Map docMap = (Map) Loader.validateOfJavaType(Map.class, doc); + LoadingOptions innerLoadingOptions = loadingOptions; + if (this.container != null || this.noLinkCheck != null) { + LoadingOptionsBuilder builder = new LoadingOptionsBuilder().copiedFrom(loadingOptions); + if (this.container != null) { + builder.setContainer(this.container); + } + if (this.noLinkCheck != null) { + builder.setNoLinkCheck(this.noLinkCheck); + } + innerLoadingOptions = builder.build(); + } + final Map r = new HashMap(); + final List errors = new ArrayList(); + for (final Map.Entry entry : docMap.entrySet()) { + try { + final Object loadedField = this.valueLoader.loadField(entry.getValue(), baseUri, innerLoadingOptions); + r.put(entry.getKey(), (T) loadedField); + } catch (final ValidationException e) { + errors.add(e); + } + } + if (!errors.isEmpty()) { + throw new ValidationException("", errors); + } + return r; + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/NullLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/NullLoader.java new file mode 100644 index 00000000..24cd8ae7 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/NullLoader.java @@ -0,0 +1,15 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +public class NullLoader implements Loader { + + public Object load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + if (doc != null) { + throw new ValidationException("Expected null"); + } + return doc; + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/OneOrListOf.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/OneOrListOf.java new file mode 100644 index 00000000..90d6d46e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/OneOrListOf.java @@ -0,0 +1,48 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.util.List; +import java.util.Optional; + +public class OneOrListOf { + private Optional object; + private Optional> objects; + + private OneOrListOf(final T object, final List objects) { + this.object = Optional.ofNullable(object); + this.objects = Optional.ofNullable(objects); + } + + public static OneOrListOf oneOf(T object) { + return new OneOrListOf(object, null); + } + + public static OneOrListOf listOf(List objects) { + assert objects != null; + return new OneOrListOf(null, objects); + } + + public boolean isOne() { + return this.getOneOptional().isPresent(); + } + + public boolean isList() { + return this.getListOptional().isPresent(); + } + + public Optional getOneOptional() { + return this.object; + } + + public Optional> getListOptional() { + return this.objects; + } + + public T getOne() { + return this.getOneOptional().get(); + } + + public List getList() { + return this.getListOptional().get(); + } + +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/OneOrListOfLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/OneOrListOfLoader.java new file mode 100644 index 00000000..9ef54778 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/OneOrListOfLoader.java @@ -0,0 +1,35 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.util.ArrayList; +import java.util.List; +import java.util.Optional; + + +public class OneOrListOfLoader implements Loader> { + private final Loader oneLoader; + private final Loader> listLoader; + + public OneOrListOfLoader(Loader oneLoader, Loader> listLoader) { + this.oneLoader = oneLoader; + this.listLoader = listLoader; + } + + public OneOrListOf load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + final List errors = new ArrayList(); + try { + return OneOrListOf.oneOf(this.oneLoader.load(doc, baseUri, loadingOptions, docRoot)); + } catch (ValidationException e) { + errors.add(e); + } + try { + return OneOrListOf.listOf(this.listLoader.load(doc, baseUri, loadingOptions, docRoot)); + } catch (ValidationException e) { + errors.add(e); + } + throw new ValidationException("Failed to one or list of of type", errors); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/OptionalLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/OptionalLoader.java new file mode 100644 index 00000000..347d171e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/OptionalLoader.java @@ -0,0 +1,23 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.util.Optional; + + +public class OptionalLoader implements Loader> { + private final Loader itemLoader; + + public OptionalLoader(Loader itemLoader) { + this.itemLoader = itemLoader; + } + + public Optional load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + if(doc == null) { + return Optional.empty(); + } + return Optional.of(itemLoader.load(doc, baseUri, loadingOptions, docRoot)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/PrimitiveLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/PrimitiveLoader.java new file mode 100644 index 00000000..108b9756 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/PrimitiveLoader.java @@ -0,0 +1,17 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +public class PrimitiveLoader implements Loader { + private Class clazz; + + public PrimitiveLoader(Class clazz) { + this.clazz = clazz; + } + + public T load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + return Loader.validateOfJavaType(this.clazz, doc); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/RecordLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/RecordLoader.java new file mode 100644 index 00000000..7cc2184e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/RecordLoader.java @@ -0,0 +1,51 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.lang.reflect.Constructor; +import java.lang.reflect.InvocationTargetException; + +public class RecordLoader implements Loader { + private final Class saveableClass; + private final String container; + private final Boolean noLinkCheck; + + public RecordLoader(final Class saveableClass, final String container, final Boolean noLinkCheck) { + this.saveableClass = saveableClass; + this.container = container; + this.noLinkCheck = noLinkCheck; + } + + public T load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + Loader.validateOfJavaType(java.util.Map.class, doc); + try { + final Constructor constructor = + this.saveableClass.getConstructor( + new Class[] {Object.class, String.class, LoadingOptions.class, String.class}); + LoadingOptions innerLoadingOptions = loadingOptions; + if (this.container != null || this.noLinkCheck != null) { + LoadingOptionsBuilder builder = new LoadingOptionsBuilder().copiedFrom(loadingOptions); + if (this.container != null) { + builder.setContainer(this.container); + } + if (this.noLinkCheck != null) { + builder.setNoLinkCheck(this.noLinkCheck); + } + innerLoadingOptions = builder.build(); + } + final T ret = constructor.newInstance(doc, baseUri, innerLoadingOptions, docRoot); + return ret; + } catch (InvocationTargetException e) { + final Throwable cause = e.getCause(); + if (cause instanceof RuntimeException) { + throw (RuntimeException) cause; + } + throw new RuntimeException(e.getCause()); + } catch (ReflectiveOperationException e) { + throw new RuntimeException(e); + } + } + +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/RootLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/RootLoader.java new file mode 100644 index 00000000..2bdc5bba --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/RootLoader.java @@ -0,0 +1,105 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.io.File; +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.Map; + +public class RootLoader { + public static Object loadDocument( + final Map doc, final String baseUri_, final LoadingOptions loadingOptions_) { + final String baseUri = ensureBaseUri(baseUri_); + LoadingOptions loadingOptions = loadingOptions_; + if (loadingOptions == null) { + loadingOptions = new LoadingOptionsBuilder().setFileUri(baseUri).build(); + } + return LoaderInstances.union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_array_of_union_of_CommandLineTool_or_ExpressionTool_or_Workflow.documentLoad(doc, baseUri, loadingOptions); + } + + public static Object loadDocument( + final Map doc, final String baseUri) { + return loadDocument(doc, baseUri, null); + } + + public static Object loadDocument(final Map doc) { + return loadDocument(doc, ensureBaseUri(null)); + } + + public static Object loadDocument(final Path path) { + return loadDocument(readPath(path), path.toUri().toString()); + } + + public static Object loadDocument(final Path path, String baseUri) { + return loadDocument(readPath(path), baseUri); + } + + public static Object loadDocument( + final Path path, LoadingOptions loadingOptions) { + return loadDocument(readPath(path), loadingOptions); + } + + public static Object loadDocument( +final Path path, String baseUri, LoadingOptions loadingOptions) { + return loadDocument(readPath(path), baseUri, loadingOptions); + } + + public static Object loadDocument(final File file) { + return loadDocument(file.toPath()); + } + + public static Object loadDocument(final File file, String baseUri) { + return loadDocument(file.toPath(), baseUri); + } + + public static Object loadDocument(final File file, LoadingOptions loadingOptions) { + return loadDocument(file.toPath(), loadingOptions); + } + + public static Object loadDocument( + final File file, String baseUri, LoadingOptions loadingOptions) { + return loadDocument(file.toPath(), baseUri, loadingOptions); + } + + public static Object loadDocument(final String doc) { + return loadDocument(doc, ensureBaseUri(null)); + } + + public static Object loadDocument(final String doc, final LoadingOptions loadingOptions) { + return loadDocument(doc, ensureBaseUri(null), loadingOptions); + } + + public static Object loadDocument(final String doc, final String uri) { + return loadDocument(doc, uri, null); + } + + public static Object loadDocument( + final String doc, final String uri_, final LoadingOptions loadingOptions_) { + final String uri = ensureBaseUri(uri_); + LoadingOptions loadingOptions = loadingOptions_; + if (loadingOptions == null) { + loadingOptions = new LoadingOptionsBuilder().setFileUri(uri).build(); + } + final Map result = YamlUtils.mapFromString(doc); + loadingOptions.idx.put(uri, result); + return loadDocument(result, uri, loadingOptions); + } + + static String readPath(final Path path) { + try { + return new String(Files.readAllBytes(path), "UTF8"); + } catch (final IOException e) { + throw new RuntimeException(e); + } + } + + static String ensureBaseUri(final String baseUri_) { + String baseUri = baseUri_; + if(baseUri == null) { + baseUri = Uris.fileUri(Paths.get(".").toAbsolutePath().normalize().toString()) + "/"; + } + return baseUri; + } + +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/Saveable.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/Saveable.java new file mode 100644 index 00000000..e25365c9 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/Saveable.java @@ -0,0 +1,6 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +public interface Saveable { + // TODO: implement writable interface + // public abstract void save(boolean top, String baseUrl, boolean relativeUris); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/SaveableImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/SaveableImpl.java new file mode 100644 index 00000000..24361e62 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/SaveableImpl.java @@ -0,0 +1,5 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +public class SaveableImpl implements Saveable { + public SaveableImpl(Object doc, String baseUri, LoadingOptions loadingOptions, String docRoot) {} +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/SecondaryFilesDslLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/SecondaryFilesDslLoader.java new file mode 100644 index 00000000..0837f62c --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/SecondaryFilesDslLoader.java @@ -0,0 +1,86 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class SecondaryFilesDslLoader implements Loader { + private final Loader innerLoader; + + public SecondaryFilesDslLoader(final Loader innerLoader) { + this.innerLoader = innerLoader; + } + + + public T load( + final Object doc_, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + Object doc = doc_; + List> r = new ArrayList>(); + if (doc instanceof List) { + final List docList = (List) doc; + for (final Object d : docList) { + Map entry = new HashMap(); + if (d instanceof String) { + String dString = (String) d; + if (dString.endsWith("?")) { + entry.put("pattern", dString.substring(0, dString.length()-1)); + entry.put("required", false); + } else { + entry.put("pattern", dString); + } + r.add(entry); + } else if (d instanceof Map) { + @SuppressWarnings("unchecked") + Map dMap = new HashMap((Map) d); + if (dMap.containsKey("pattern")) { + entry.put("pattern", dMap.remove("pattern")); + } else { + throw new ValidationException("Missing 'pattern' in secondaryFiles specification entry."); + } + if (dMap.containsKey("required")) { + entry.put("required", dMap.remove("required")); + } + if (dMap.size() > 0) { + throw new ValidationException("Unallowed values in secondaryFiles specification entry."); + } + r.add(entry); + } else { + throw new ValidationException("Expected a string or sequence of (strings or mappings)."); + } + } + } else if (doc instanceof Map) { + Map entry = new HashMap(); + @SuppressWarnings("unchecked") + Map dMap = new HashMap((Map) doc); + if (dMap.containsKey("pattern")) { + entry.put("pattern", dMap.remove("pattern")); + } else { + throw new ValidationException("Missing 'pattern' in secondaryFiles specification entry."); + } + if (dMap.containsKey("required")) { + entry.put("required", dMap.remove("required")); + } + if (dMap.size() > 0) { + throw new ValidationException("Unallowed values in secondaryFiles specification entry."); + } + r.add(entry); + } else if (doc instanceof String) { + String dString = (String) doc; + Map entry = new HashMap(); + if (dString.endsWith("?")) { + entry.put("pattern", dString.substring(0, dString.length()-1)); + entry.put("required", false); + } else { + entry.put("pattern", dString); + } + r.add(entry); + } else { + throw new ValidationException("Expected a string or sequence of (strings or mappings)."); + } + return this.innerLoader.load(r, baseUri, loadingOptions, docRoot); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/TypeDslLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/TypeDslLoader.java new file mode 100644 index 00000000..6caec158 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/TypeDslLoader.java @@ -0,0 +1,81 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +public class TypeDslLoader implements Loader { + private final Loader innerLoader; + private final Integer refScope; + private static final Pattern TYPE_DSL_REGEX = Pattern.compile("^([^\\[?]+)(\\[\\])?(\\?)?$"); + + public TypeDslLoader(final Loader innerLoader, final Integer refScope) { + this.innerLoader = innerLoader; + this.refScope = refScope; + } + + private Object resolve( + final String doc_, final String baseUri, final LoadingOptions loadingOptions) { + final Matcher m = TYPE_DSL_REGEX.matcher(doc_); + if (m.matches()) { + final String first = + loadingOptions.expandUrl(m.group(1), baseUri, false, true, this.refScope); + Object second = null; + Object third = null; + if (m.group(2) != null && m.group(2).length() > 0) { + HashMap resolvedMap = new HashMap(); + resolvedMap.put("type", "array"); + resolvedMap.put("items", first); + second = resolvedMap; + } + if (m.group(3) != null && m.group(3).length() > 0) { + third = Arrays.asList("null", second != null ? second : first); + } + if (third != null) { + return third; + } else { + return second != null ? second : first; + } + } else { + return doc_; + } + } + + public T load( + final Object doc_, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + Object doc = doc_; + if (doc instanceof List) { + final List docList = (List) doc; + final List r = new ArrayList(); + for (final Object d : docList) { + if (d instanceof String) { + Object resolved = this.resolve((String) d, baseUri, loadingOptions); + if (resolved instanceof List) { + List resolvedList = (List) resolved; + for (Object i : resolvedList) { + if (!r.contains(i)) { + r.add(i); + } + } + } else { + if (!r.contains(resolved)) { + r.add(resolved); + } + } + } else { + r.add(d); + } + } + doc = docList; + } else if (doc instanceof String) { + doc = this.resolve((String) doc, baseUri, loadingOptions); + } + return this.innerLoader.load(doc, baseUri, loadingOptions); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/UnionLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/UnionLoader.java new file mode 100644 index 00000000..b7516ce0 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/UnionLoader.java @@ -0,0 +1,41 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +public class UnionLoader implements Loader { + private final ArrayList alternates; + + public UnionLoader(List alternates) { + this.alternates = new ArrayList(alternates); + } + + public UnionLoader(Loader[] alternates) { + this(Arrays.asList(alternates)); + } + + public void addLoaders(List loaders) { + this.alternates.addAll(loaders); + } + + public void addLoaders(Loader[] loaders) { + this.addLoaders(Arrays.asList(loaders)); + } + + public Object load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + final List errors = new ArrayList(); + for (final Loader loader : this.alternates) { + try { + return loader.load(doc, baseUri, loadingOptions, docRoot); + } catch (ValidationException e) { + errors.add(e); + } + } + throw new ValidationException("Failed to match union type", errors); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/UriLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/UriLoader.java new file mode 100644 index 00000000..4ddbbb63 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/UriLoader.java @@ -0,0 +1,59 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.util.ArrayList; +import java.util.List; + +public class UriLoader implements Loader { + private final Loader innerLoader; + private final boolean scopedId; + private final boolean vocabTerm; + private final Integer scopedRef; + private final Boolean noLinkCheck; + + public UriLoader( + final Loader innerLoader, + final boolean scopedId, + final boolean vocabTerm, + final Integer scopedRef, + final Boolean noLinkCheck) { + this.innerLoader = innerLoader; + this.scopedId = scopedId; + this.vocabTerm = vocabTerm; + this.scopedRef = scopedRef; + this.noLinkCheck = noLinkCheck; + } + + private Object expandUrl( + final Object object, final String baseUri, final LoadingOptions loadingOptions) { + if (object instanceof String) { + return loadingOptions.expandUrl( + (String) object, baseUri, this.scopedId, this.vocabTerm, this.scopedRef); + } else { + return object; + } + } + + public T load( + final Object doc_, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + LoadingOptions innerLoadingOptions = loadingOptions; + if (this.noLinkCheck != null) { + innerLoadingOptions = new LoadingOptionsBuilder().copiedFrom(loadingOptions).setNoLinkCheck(this.noLinkCheck).build(); + } + Object doc = doc_; + if (doc instanceof List) { + List docList = (List) doc; + List docWithExpansion = new ArrayList(); + for (final Object el : docList) { + docWithExpansion.add(this.expandUrl(el, baseUri, innerLoadingOptions)); + } + doc = docWithExpansion; + } + if (doc instanceof String) { + doc = this.expandUrl(doc, baseUri, innerLoadingOptions); + } + return this.innerLoader.load(doc, baseUri, innerLoadingOptions); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/Uris.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/Uris.java new file mode 100644 index 00000000..5a0279ef --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/Uris.java @@ -0,0 +1,129 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.io.UnsupportedEncodingException; +import java.net.URI; +import java.net.URISyntaxException; +import java.nio.charset.StandardCharsets; + +public class Uris { + + // Emulate Python's urlsplit. + public static class UriSplit { + String scheme; + String netloc; + String path; + String query; + String fragment; + + public UriSplit(String scheme, String netloc, String path, String query, String fragment) { + this.scheme = scheme; + this.netloc = netloc; + this.path = path; + this.query = query; + this.fragment = fragment; + } + + public String toString() { + return String.format("UriSplit[%s,%s,%s,%s,%s]", this.scheme, this.netloc, this.path, this.query, + this.fragment); + } + + } + + public static String fileUri(final String path) { + return fileUri(path, false); + } + + public static String fileUri(final String path, final boolean splitFrag) { + if (path.equals("file://")) { + return path; + } + String frag; + String urlPath; + if (splitFrag) { + final String[] pathsp = path.split("#", 2); + // is quoting this? + urlPath = Uris.quote(pathsp[0]); + if (pathsp.length == 2) { + frag = "#" + Uris.quote(pathsp[1]); + } else { + frag = ""; + urlPath = Uris.quote(path); + } + } else { + urlPath = Uris.quote(path); + frag = ""; + } + if (urlPath.startsWith("//")) { + return "file:" + urlPath + frag; + } else { + return "file://" + urlPath + frag; + } + } + + public static UriSplit split(final String uriString) { + try { + final URI uri = new URI(uriString); + return new Uris.UriSplit(uri.getScheme(), uri.getAuthority(), uri.getPath(), uri.getQuery(), + uri.getFragment()); + } catch (URISyntaxException e) { + return new Uris.UriSplit(null, null, uriString, null, null); + } + } + + public static String unsplit(final String scheme, final String netloc, final String path, final String query, + final String fragment) { + try { + return new URI(scheme, netloc, path, query, fragment).toString(); + } catch (URISyntaxException e) { + if (scheme == null && path.startsWith("_:")) { + String uri = path; + if (fragment != null && fragment.length() > 0) { + uri += "#" + fragment; + } + return fragment; + } + throw new RuntimeException(e); + } + } + + public static URI toUri(final String url) { + try { + return new URI(url); + } catch (URISyntaxException e) { + throw new RuntimeException(e); + } + } + + public static String quote(final String uri) { + try { + return java.net.URLDecoder.decode(uri, StandardCharsets.UTF_8.name()); + } catch (UnsupportedEncodingException e) { + throw new RuntimeException(e); + } + } + + public static String unquote(final String uri) { + try { + return java.net.URLEncoder.encode(uri, StandardCharsets.UTF_8.name()); + } catch (UnsupportedEncodingException e) { + throw new RuntimeException(e); + } + } + + public static String shortname(final String input_id) { + try { + final URI uri = new URI(input_id); + final String fragment = uri.getFragment(); + if (fragment != null) { + String[] fragment_elements = fragment.split("/"); + return fragment_elements[fragment_elements.length - 1]; + } else { + String[] path_elements = uri.getPath().split("/"); + return path_elements[path_elements.length - 1]; + } + } catch (URISyntaxException e) { + return input_id; + } + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/ValidationException.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/ValidationException.java new file mode 100644 index 00000000..a1f6c44b --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/ValidationException.java @@ -0,0 +1,80 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +public class ValidationException extends RuntimeException { + private final List children; + private String bullet = ""; + private String currentMessage; + + public ValidationException(final String message) { + this(message, (List) null); + } + + public ValidationException(final String message, final ValidationException child) { + this(message, Arrays.asList(child)); + } + + public ValidationException(final String message, final List children_) { + super(message); + this.currentMessage = message; + final List children = new ArrayList(); + if (children_ != null) { + for (final ValidationException child : children_) { + children.addAll(child.simplify()); + } + } + this.children = children; + } + + public ValidationException withBullet(final String bullet) { + this.bullet = bullet; + return this; + } + + public List simplify() { + if (getMessage().length() > 0) { + return Arrays.asList(this); + } else { + return this.children; + } + } + + public String summary(final int level, final boolean withBullet) { + final int indentPerLevel = 2; + final String spaces = new String(new char[level * indentPerLevel]).replace("\0", " "); + final String bullet; + if (this.bullet.length() > 0 && withBullet) { + bullet = this.bullet; + } else { + bullet = ""; + } + return spaces + bullet + this.currentMessage; + } + + public String prettyStr(final Integer level_) { + Integer level = level_; + if (level == null) { + level = 0; + } + final List parts = new ArrayList(); + int nextLevel; + if (this.currentMessage != null && this.currentMessage.length() > 0) { + parts.add(this.summary(level, true)); + nextLevel = level + 1; + } else { + nextLevel = level; + } + for (final ValidationException child : this.children) { + parts.add(child.prettyStr(nextLevel)); + } + final String ret = String.join("\n", parts); + return ret; + } + + public String getMessage() { + return this.prettyStr(null); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/Validator.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/Validator.java new file mode 100644 index 00000000..7b71142d --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/Validator.java @@ -0,0 +1,24 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.io.File; +import org.snakeyaml.engine.v2.api.Dump; +import org.snakeyaml.engine.v2.api.DumpSettings; +import org.snakeyaml.engine.v2.common.ScalarStyle; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.databind.ObjectMapper; + +public class Validator { + public static void main(final String[] args) throws Exception { + if (args.length != 1) { + throw new Exception("No argument supplied to validate."); + } + // TODO: allow URLs and such. + final File uri = new File(args[0]); + Object doc = RootLoader.loadDocument(uri); + ObjectMapper mapper = new ObjectMapper(); + mapper.setSerializationInclusion(Include.NON_NULL).writerWithDefaultPrettyPrinter().writeValue(System.out, doc); + System.out.println(); + + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/YamlUtils.java b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/YamlUtils.java new file mode 100644 index 00000000..94781bc7 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/YamlUtils.java @@ -0,0 +1,31 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.regex.Pattern; + +import org.snakeyaml.engine.v2.api.Load; +import org.snakeyaml.engine.v2.api.LoadSettings; +import org.snakeyaml.engine.v2.nodes.Tag; +import org.snakeyaml.engine.v2.resolver.ScalarResolver; +import org.snakeyaml.engine.v2.schema.CoreSchema; + +public class YamlUtils { + + public static Map mapFromString(final String text) { + LoadSettings settings = LoadSettings.builder().setSchema(new CoreSchema()).build(); + Load load = new Load(settings); + final Map result = (Map) load.loadFromString(text); + return result; + } + + public static List listFromString(final String text) { + LoadSettings settings = LoadSettings.builder().setSchema(new CoreSchema()).build(); + Load load = new Load(settings); + final List result = (List) load.loadFromString(text); + return result; + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/package.html b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/package.html new file mode 100644 index 00000000..317b1d96 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_1/utils/package.html @@ -0,0 +1,3 @@ + +This package contains utilities for working the SchemaSalad generated code for the org.commonwl.cwlsdk.cwl1_1 package. + diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/Any.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Any.java new file mode 100644 index 00000000..95d5748b --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Any.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum Any { + ANY("Any"); + + private static String[] symbols = new String[] {"Any"}; + private String docVal; + + private Any(final String docVal) { + this.docVal = docVal; + } + + public static Any fromDocumentVal(final String docVal) { + for(final Any val : Any.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", Any.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ArraySchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ArraySchema.java new file mode 100644 index 00000000..229ef6d9 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ArraySchema.java @@ -0,0 +1,42 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/salad#ArraySchema
This interface is implemented by {@link ArraySchemaImpl}
+ */ +public interface ArraySchema extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + Object getItems(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + Array_name getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ArraySchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ArraySchemaImpl.java new file mode 100644 index 00000000..c2c62502 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ArraySchemaImpl.java @@ -0,0 +1,128 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/salad#ArraySchema
+ */ +public class ArraySchemaImpl extends SaveableImpl implements ArraySchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private Object items; + + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + public Object getItems() { + return this.items; + } + + private Array_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + public Array_name getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of ArraySchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public ArraySchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("ArraySchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + Object items; + try { + items = + LoaderInstances + .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 + .loadField(__doc.get("items"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + items = null; // won't be used but prevents compiler from complaining. + final String __message = "the `items` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Array_name type; + try { + type = + LoaderInstances + .typedsl_Array_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.items = (Object) items; + this.type = (Array_name) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("items", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/Array_name.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Array_name.java new file mode 100644 index 00000000..68142666 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Array_name.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum Array_name { + ARRAY("array"); + + private static String[] symbols = new String[] {"array"}; + private String docVal; + + private Array_name(final String docVal) { + this.docVal = docVal; + } + + public static Array_name fromDocumentVal(final String docVal) { + for(final Array_name val : Array_name.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", Array_name.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLArraySchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLArraySchema.java new file mode 100644 index 00000000..77edf95f --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLArraySchema.java @@ -0,0 +1,42 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CWLArraySchema
This interface is implemented by {@link CWLArraySchemaImpl}
+ */ +public interface CWLArraySchema extends ArraySchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + Object getItems(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + Array_name getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLArraySchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLArraySchemaImpl.java new file mode 100644 index 00000000..e642c62d --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLArraySchemaImpl.java @@ -0,0 +1,128 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CWLArraySchema
+ */ +public class CWLArraySchemaImpl extends SaveableImpl implements CWLArraySchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private Object items; + + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + public Object getItems() { + return this.items; + } + + private Array_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + public Array_name getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of CWLArraySchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CWLArraySchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CWLArraySchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + Object items; + try { + items = + LoaderInstances + .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 + .loadField(__doc.get("items"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + items = null; // won't be used but prevents compiler from complaining. + final String __message = "the `items` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Array_name type; + try { + type = + LoaderInstances + .typedsl_Array_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.items = (Object) items; + this.type = (Array_name) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("items", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLRecordField.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLRecordField.java new file mode 100644 index 00000000..5962f3ea --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLRecordField.java @@ -0,0 +1,51 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CWLRecordField
This interface is implemented by {@link CWLRecordFieldImpl}
+ */ +public interface CWLRecordField extends RecordField, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + String getName(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + Object getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLRecordFieldImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLRecordFieldImpl.java new file mode 100644 index 00000000..94185e74 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLRecordFieldImpl.java @@ -0,0 +1,175 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CWLRecordField
+ */ +public class CWLRecordFieldImpl extends SaveableImpl implements CWLRecordField { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private String name; + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + public String getName() { + return this.name; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + public Object getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of CWLRecordFieldImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CWLRecordFieldImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CWLRecordFieldImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + String name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + if (name == null) { + if (__docRoot != null) { + name = __docRoot; + } else { + throw new ValidationException("Missing name"); + } + } + __baseUri = (String) name; + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object type; + try { + type = + LoaderInstances + .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 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.doc = (Object) doc; + this.name = (String) name; + this.type = (Object) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("doc", "name", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLRecordSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLRecordSchema.java new file mode 100644 index 00000000..a5d80cba --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLRecordSchema.java @@ -0,0 +1,42 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CWLRecordSchema
This interface is implemented by {@link CWLRecordSchemaImpl}
+ */ +public interface CWLRecordSchema extends RecordSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + java.util.Optional> getFields(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + Record_name getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLRecordSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLRecordSchemaImpl.java new file mode 100644 index 00000000..899c33de --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLRecordSchemaImpl.java @@ -0,0 +1,134 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CWLRecordSchema
+ */ +public class CWLRecordSchemaImpl extends SaveableImpl implements CWLRecordSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional> fields; + + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + public java.util.Optional> getFields() { + return this.fields; + } + + private Record_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + public Record_name getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of CWLRecordSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CWLRecordSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CWLRecordSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional> fields; + + if (__doc.containsKey("fields")) { + try { + fields = + LoaderInstances + .idmap_fields_optional_array_of_CWLRecordField + .loadField(__doc.get("fields"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + fields = null; // won't be used but prevents compiler from complaining. + final String __message = "the `fields` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + fields = null; + } + Record_name type; + try { + type = + LoaderInstances + .typedsl_Record_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.fields = (java.util.Optional>) fields; + this.type = (Record_name) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("fields", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLType.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLType.java new file mode 100644 index 00000000..b7e3f5dd --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLType.java @@ -0,0 +1,45 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum CWLType { + NULL("null"), + BOOLEAN("boolean"), + INT("int"), + LONG("long"), + FLOAT("float"), + DOUBLE("double"), + STRING("string"), + FILE("File"), + DIRECTORY("Directory"); + + private static String[] symbols = new String[] {"null", "boolean", "int", "long", "float", "double", "string", "File", "Directory"}; + private String docVal; + + private CWLType(final String docVal) { + this.docVal = docVal; + } + + public static CWLType fromDocumentVal(final String docVal) { + for(final CWLType val : CWLType.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", CWLType.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLVersion.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLVersion.java new file mode 100644 index 00000000..d901cf8b --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CWLVersion.java @@ -0,0 +1,56 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum CWLVersion { + DRAFT_2("draft-2"), + DRAFT_3_DEV1("draft-3.dev1"), + DRAFT_3_DEV2("draft-3.dev2"), + DRAFT_3_DEV3("draft-3.dev3"), + DRAFT_3_DEV4("draft-3.dev4"), + DRAFT_3_DEV5("draft-3.dev5"), + DRAFT_3("draft-3"), + DRAFT_4_DEV1("draft-4.dev1"), + DRAFT_4_DEV2("draft-4.dev2"), + DRAFT_4_DEV3("draft-4.dev3"), + V1_0_DEV4("v1.0.dev4"), + V1_0("v1.0"), + V1_1_0_DEV1("v1.1.0-dev1"), + V1_1("v1.1"), + V1_2_0_DEV1("v1.2.0-dev1"), + V1_2_0_DEV2("v1.2.0-dev2"), + V1_2_0_DEV3("v1.2.0-dev3"), + V1_2_0_DEV4("v1.2.0-dev4"), + V1_2_0_DEV5("v1.2.0-dev5"), + V1_2("v1.2"); + + private static String[] symbols = new String[] {"draft-2", "draft-3.dev1", "draft-3.dev2", "draft-3.dev3", "draft-3.dev4", "draft-3.dev5", "draft-3", "draft-4.dev1", "draft-4.dev2", "draft-4.dev3", "v1.0.dev4", "v1.0", "v1.1.0-dev1", "v1.1", "v1.2.0-dev1", "v1.2.0-dev2", "v1.2.0-dev3", "v1.2.0-dev4", "v1.2.0-dev5", "v1.2"}; + private String docVal; + + private CWLVersion(final String docVal) { + this.docVal = docVal; + } + + public static CWLVersion fromDocumentVal(final String docVal) { + for(final CWLVersion val : CWLVersion.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", CWLVersion.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputArraySchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputArraySchema.java new file mode 100644 index 00000000..912c3906 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputArraySchema.java @@ -0,0 +1,70 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputArraySchema
This interface is implemented by {@link CommandInputArraySchemaImpl}
+ */ +public interface CommandInputArraySchema extends InputArraySchema, CommandInputSchema, CommandLineBindable, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + Object getItems(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + Array_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + java.util.Optional getInputBinding(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputArraySchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputArraySchemaImpl.java new file mode 100644 index 00000000..df99f642 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputArraySchemaImpl.java @@ -0,0 +1,262 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputArraySchema
+ */ +public class CommandInputArraySchemaImpl extends SaveableImpl implements CommandInputArraySchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private Object items; + + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + public Object getItems() { + return this.items; + } + + private Array_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + public Array_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private java.util.Optional inputBinding; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + public java.util.Optional getInputBinding() { + return this.inputBinding; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of CommandInputArraySchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandInputArraySchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandInputArraySchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + Object items; + try { + items = + LoaderInstances + .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_None + .loadField(__doc.get("items"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + items = null; // won't be used but prevents compiler from complaining. + final String __message = "the `items` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Array_name type; + try { + type = + LoaderInstances + .typedsl_Array_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + java.util.Optional inputBinding; + + if (__doc.containsKey("inputBinding")) { + try { + inputBinding = + LoaderInstances + .optional_CommandLineBinding + .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputBinding = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputBinding` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + inputBinding = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.items = (Object) items; + this.type = (Array_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.name = (java.util.Optional) name; + this.inputBinding = (java.util.Optional) inputBinding; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("items", "type", "label", "doc", "name", "inputBinding"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputEnumSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputEnumSchema.java new file mode 100644 index 00000000..a5f1dc6d --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputEnumSchema.java @@ -0,0 +1,70 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputEnumSchema
This interface is implemented by {@link CommandInputEnumSchemaImpl}
+ */ +public interface CommandInputEnumSchema extends InputEnumSchema, CommandInputSchema, CommandLineBindable, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + java.util.List getSymbols(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + Enum_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + java.util.Optional getInputBinding(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputEnumSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputEnumSchemaImpl.java new file mode 100644 index 00000000..55e7b4b7 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputEnumSchemaImpl.java @@ -0,0 +1,262 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputEnumSchema
+ */ +public class CommandInputEnumSchemaImpl extends SaveableImpl implements CommandInputEnumSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private java.util.List symbols; + + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + public java.util.List getSymbols() { + return this.symbols; + } + + private Enum_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + public Enum_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private java.util.Optional inputBinding; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + public java.util.Optional getInputBinding() { + return this.inputBinding; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of CommandInputEnumSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandInputEnumSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandInputEnumSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + java.util.List symbols; + try { + symbols = + LoaderInstances + .uri_array_of_StringInstance_True_False_None_None + .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + symbols = null; // won't be used but prevents compiler from complaining. + final String __message = "the `symbols` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Enum_name type; + try { + type = + LoaderInstances + .typedsl_Enum_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + java.util.Optional inputBinding; + + if (__doc.containsKey("inputBinding")) { + try { + inputBinding = + LoaderInstances + .optional_CommandLineBinding + .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputBinding = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputBinding` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + inputBinding = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.name = (java.util.Optional) name; + this.symbols = (java.util.List) symbols; + this.type = (Enum_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.inputBinding = (java.util.Optional) inputBinding; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("name", "symbols", "type", "label", "doc", "inputBinding"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputParameter.java new file mode 100644 index 00000000..81bf8926 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputParameter.java @@ -0,0 +1,184 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputParameter
This interface is implemented by {@link CommandInputParameterImpl}
+ An input parameter for a CommandLineTool.
+ */ +public interface CommandInputParameter extends InputParameter, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + Object getFormat(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * If true, the file (or each file in the array) must be a UTF-8 + * text file 64 KiB or smaller, and the implementation must read + * the entire contents of the file (or file array) and place it + * in the `contents` field of the File object for use by + * expressions. If the size of the file is greater than 64 KiB, + * the implementation must raise a fatal error. + * *
+ */ + + java.util.Optional getLoadContents(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + java.util.Optional getLoadListing(); + /** + * Getter for property https://w3id.org/cwl/salad#default
+ *
+ * The default value to use for this parameter if the parameter is missing + * from the input object, or if the value of the parameter in the input + * object is `null`. Default values are applied before evaluating expressions + * (e.g. dependent `valueFrom` fields). + * *
+ */ + + java.util.Optional getDefault(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * *
+ */ + + Object getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandInputParameter/inputBinding
+ *
+ * Describes how to turn the input parameters of a process into + * command line arguments. + * *
+ */ + + java.util.Optional getInputBinding(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputParameterImpl.java new file mode 100644 index 00000000..fd7d5091 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputParameterImpl.java @@ -0,0 +1,497 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputParameter
+ An input parameter for a CommandLineTool.
+ */ +public class CommandInputParameterImpl extends SaveableImpl implements CommandInputParameter { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional streamable; + + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + public java.util.Optional getStreamable() { + return this.streamable; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + public Object getFormat() { + return this.format; + } + + private java.util.Optional loadContents; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * If true, the file (or each file in the array) must be a UTF-8 + * text file 64 KiB or smaller, and the implementation must read + * the entire contents of the file (or file array) and place it + * in the `contents` field of the File object for use by + * expressions. If the size of the file is greater than 64 KiB, + * the implementation must raise a fatal error. + * *
+ */ + + public java.util.Optional getLoadContents() { + return this.loadContents; + } + + private java.util.Optional loadListing; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + public java.util.Optional getLoadListing() { + return this.loadListing; + } + + private java.util.Optional default_; + + /** + * Getter for property https://w3id.org/cwl/salad#default
+ *
+ * The default value to use for this parameter if the parameter is missing + * from the input object, or if the value of the parameter in the input + * object is `null`. Default values are applied before evaluating expressions + * (e.g. dependent `valueFrom` fields). + * *
+ */ + + public java.util.Optional getDefault() { + return this.default_; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * *
+ */ + + public Object getType() { + return this.type; + } + + private java.util.Optional inputBinding; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandInputParameter/inputBinding
+ *
+ * Describes how to turn the input parameters of a process into + * command line arguments. + * *
+ */ + + public java.util.Optional getInputBinding() { + return this.inputBinding; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of CommandInputParameterImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandInputParameterImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandInputParameterImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional streamable; + + if (__doc.containsKey("streamable")) { + try { + streamable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + streamable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `streamable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + streamable = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + java.util.Optional loadContents; + + if (__doc.containsKey("loadContents")) { + try { + loadContents = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadContents = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadContents` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadContents = null; + } + java.util.Optional loadListing; + + if (__doc.containsKey("loadListing")) { + try { + loadListing = + LoaderInstances + .optional_LoadListingEnum + .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadListing = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadListing` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadListing = null; + } + java.util.Optional default_; + + if (__doc.containsKey("default")) { + try { + default_ = + LoaderInstances + .optional_CWLObjectType + .loadField(__doc.get("default"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + default_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `default` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + default_ = null; + } + Object type; + try { + type = + LoaderInstances + .typedsl_union_of_CWLType_or_stdin_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional inputBinding; + + if (__doc.containsKey("inputBinding")) { + try { + inputBinding = + LoaderInstances + .optional_CommandLineBinding + .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputBinding = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputBinding` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + inputBinding = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.label = (java.util.Optional) label; + this.secondaryFiles = (Object) secondaryFiles; + this.streamable = (java.util.Optional) streamable; + this.doc = (Object) doc; + this.id = (java.util.Optional) id; + this.format = (Object) format; + this.loadContents = (java.util.Optional) loadContents; + this.loadListing = (java.util.Optional) loadListing; + this.default_ = (java.util.Optional) default_; + this.type = (Object) type; + this.inputBinding = (java.util.Optional) inputBinding; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("label", "secondaryFiles", "streamable", "doc", "id", "format", "loadContents", "loadListing", "default", "type", "inputBinding"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputRecordField.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputRecordField.java new file mode 100644 index 00000000..6fa2c2be --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputRecordField.java @@ -0,0 +1,171 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputRecordField
This interface is implemented by {@link CommandInputRecordFieldImpl}
+ */ +public interface CommandInputRecordField extends InputRecordField, CommandLineBindable, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + String getName(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + Object getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + Object getFormat(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * If true, the file (or each file in the array) must be a UTF-8 + * text file 64 KiB or smaller, and the implementation must read + * the entire contents of the file (or file array) and place it + * in the `contents` field of the File object for use by + * expressions. If the size of the file is greater than 64 KiB, + * the implementation must raise a fatal error. + * *
+ */ + + java.util.Optional getLoadContents(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + java.util.Optional getLoadListing(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + java.util.Optional getInputBinding(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputRecordFieldImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputRecordFieldImpl.java new file mode 100644 index 00000000..029c772f --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputRecordFieldImpl.java @@ -0,0 +1,456 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputRecordField
+ */ +public class CommandInputRecordFieldImpl extends SaveableImpl implements CommandInputRecordField { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private String name; + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + public String getName() { + return this.name; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + public Object getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional streamable; + + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + public java.util.Optional getStreamable() { + return this.streamable; + } + + private Object format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + public Object getFormat() { + return this.format; + } + + private java.util.Optional loadContents; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * If true, the file (or each file in the array) must be a UTF-8 + * text file 64 KiB or smaller, and the implementation must read + * the entire contents of the file (or file array) and place it + * in the `contents` field of the File object for use by + * expressions. If the size of the file is greater than 64 KiB, + * the implementation must raise a fatal error. + * *
+ */ + + public java.util.Optional getLoadContents() { + return this.loadContents; + } + + private java.util.Optional loadListing; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + public java.util.Optional getLoadListing() { + return this.loadListing; + } + + private java.util.Optional inputBinding; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + public java.util.Optional getInputBinding() { + return this.inputBinding; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of CommandInputRecordFieldImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandInputRecordFieldImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandInputRecordFieldImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + String name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + if (name == null) { + if (__docRoot != null) { + name = __docRoot; + } else { + throw new ValidationException("Missing name"); + } + } + __baseUri = (String) name; + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object type; + try { + type = + LoaderInstances + .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 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional streamable; + + if (__doc.containsKey("streamable")) { + try { + streamable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + streamable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `streamable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + streamable = null; + } + Object format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + java.util.Optional loadContents; + + if (__doc.containsKey("loadContents")) { + try { + loadContents = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadContents = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadContents` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadContents = null; + } + java.util.Optional loadListing; + + if (__doc.containsKey("loadListing")) { + try { + loadListing = + LoaderInstances + .optional_LoadListingEnum + .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadListing = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadListing` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadListing = null; + } + java.util.Optional inputBinding; + + if (__doc.containsKey("inputBinding")) { + try { + inputBinding = + LoaderInstances + .optional_CommandLineBinding + .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputBinding = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputBinding` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + inputBinding = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.doc = (Object) doc; + this.name = (String) name; + this.type = (Object) type; + this.label = (java.util.Optional) label; + this.secondaryFiles = (Object) secondaryFiles; + this.streamable = (java.util.Optional) streamable; + this.format = (Object) format; + this.loadContents = (java.util.Optional) loadContents; + this.loadListing = (java.util.Optional) loadListing; + this.inputBinding = (java.util.Optional) inputBinding; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("doc", "name", "type", "label", "secondaryFiles", "streamable", "format", "loadContents", "loadListing", "inputBinding"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputRecordSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputRecordSchema.java new file mode 100644 index 00000000..ea5d2de5 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputRecordSchema.java @@ -0,0 +1,70 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputRecordSchema
This interface is implemented by {@link CommandInputRecordSchemaImpl}
+ */ +public interface CommandInputRecordSchema extends InputRecordSchema, CommandInputSchema, CommandLineBindable, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + java.util.Optional> getFields(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + Record_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + java.util.Optional getInputBinding(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputRecordSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputRecordSchemaImpl.java new file mode 100644 index 00000000..b460918f --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputRecordSchemaImpl.java @@ -0,0 +1,268 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputRecordSchema
+ */ +public class CommandInputRecordSchemaImpl extends SaveableImpl implements CommandInputRecordSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private java.util.Optional> fields; + + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + public java.util.Optional> getFields() { + return this.fields; + } + + private Record_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + public Record_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private java.util.Optional inputBinding; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + public java.util.Optional getInputBinding() { + return this.inputBinding; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of CommandInputRecordSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandInputRecordSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandInputRecordSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + java.util.Optional> fields; + + if (__doc.containsKey("fields")) { + try { + fields = + LoaderInstances + .idmap_fields_optional_array_of_CommandInputRecordField + .loadField(__doc.get("fields"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + fields = null; // won't be used but prevents compiler from complaining. + final String __message = "the `fields` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + fields = null; + } + Record_name type; + try { + type = + LoaderInstances + .typedsl_Record_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + java.util.Optional inputBinding; + + if (__doc.containsKey("inputBinding")) { + try { + inputBinding = + LoaderInstances + .optional_CommandLineBinding + .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputBinding = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputBinding` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + inputBinding = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.fields = (java.util.Optional>) fields; + this.type = (Record_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.name = (java.util.Optional) name; + this.inputBinding = (java.util.Optional) inputBinding; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("fields", "type", "label", "doc", "name", "inputBinding"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputSchema.java new file mode 100644 index 00000000..5312a084 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandInputSchema.java @@ -0,0 +1,28 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputSchema
+ */ +public interface CommandInputSchema extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineBindable.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineBindable.java new file mode 100644 index 00000000..1b8d67da --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineBindable.java @@ -0,0 +1,35 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandLineBindable
This interface is implemented by {@link CommandLineBindableImpl}
+ */ +public interface CommandLineBindable extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + java.util.Optional getInputBinding(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineBindableImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineBindableImpl.java new file mode 100644 index 00000000..15d3de30 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineBindableImpl.java @@ -0,0 +1,110 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandLineBindable
+ */ +public class CommandLineBindableImpl extends SaveableImpl implements CommandLineBindable { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional inputBinding; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
+ *
+ * Describes how to turn this object into command line arguments. *
+ */ + + public java.util.Optional getInputBinding() { + return this.inputBinding; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of CommandLineBindableImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandLineBindableImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandLineBindableImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional inputBinding; + + if (__doc.containsKey("inputBinding")) { + try { + inputBinding = + LoaderInstances + .optional_CommandLineBinding + .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputBinding = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputBinding` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + inputBinding = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.inputBinding = (java.util.Optional) inputBinding; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("inputBinding"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineBinding.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineBinding.java new file mode 100644 index 00000000..957526ae --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineBinding.java @@ -0,0 +1,150 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandLineBinding
This interface is implemented by {@link CommandLineBindingImpl}
+ + When listed under `inputBinding` in the input schema, the term + "value" refers to the corresponding value in the input object. For + binding objects listed in `CommandLineTool.arguments`, the term "value" + refers to the effective value after evaluating `valueFrom`. + + The binding behavior when building the command line depends on the data + type of the value. If there is a mismatch between the type described by + the input schema and the effective value, such as resulting from an + expression evaluation, an implementation must use the data type of the + effective value. + + - **string**: Add `prefix` and the string to the command line. + + - **number**: Add `prefix` and decimal representation to command line. + + - **boolean**: If true, add `prefix` to the command line. If false, add + nothing. + + - **File**: Add `prefix` and the value of + [`File.path`](#File) to the command line. + + - **Directory**: Add `prefix` and the value of + [`Directory.path`](#Directory) to the command line. + + - **array**: If `itemSeparator` is specified, add `prefix` and the join + the array into a single string with `itemSeparator` separating the + items. Otherwise, first add `prefix`, then recursively process + individual elements. + If the array is empty, it does not add anything to command line. + + - **object**: Add `prefix` only, and recursively add object fields for + which `inputBinding` is specified. + + - **null**: Add nothing. +
+ */ +public interface CommandLineBinding extends InputBinding, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#InputBinding/loadContents
+ *
+ * Use of `loadContents` in `InputBinding` is deprecated. + * Preserved for v1.0 backwards compatibility. Will be removed in + * CWL v2.0. Use `InputParameter.loadContents` instead. + * *
+ */ + + java.util.Optional getLoadContents(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/position
+ *
+ * The sorting key. Default position is 0. If a [CWL Parameter Reference](#Parameter_references) + * or [CWL Expression](#Expressions_(Optional)) is used and if the + * inputBinding is associated with an input parameter, then the value of + * `self` will be the value of the input parameter. Input parameter + * defaults (as specified by the `InputParameter.default` field) must be + * applied before evaluating the expression. Expressions must return a + * single value of type int or a null. + * *
+ */ + + Object getPosition(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/prefix
+ *
+ * Command line prefix to add before the value. *
+ */ + + java.util.Optional getPrefix(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/separate
+ *
+ * If true (default), then the prefix and value must be added as separate + * command line arguments; if false, prefix and value must be concatenated + * into a single command line argument. + * *
+ */ + + java.util.Optional getSeparate(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/itemSeparator
+ *
+ * Join the array elements into a single string with the elements + * separated by `itemSeparator`. + * *
+ */ + + java.util.Optional getItemSeparator(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/valueFrom
+ *
+ * If `valueFrom` is a constant string value, use this as the value and + * apply the binding rules above. + * + * If `valueFrom` is an expression, evaluate the expression to yield the + * actual value to use to build the command line and apply the binding + * rules above. If the inputBinding is associated with an input + * parameter, the value of `self` in the expression will be the value of + * the input parameter. Input parameter defaults (as specified by the + * `InputParameter.default` field) must be applied before evaluating the + * expression. + * + * If the value of the associated input parameter is `null`, `valueFrom` is + * not evaluated and nothing is added to the command line. + * + * When a binding is part of the `CommandLineTool.arguments` field, + * the `valueFrom` field is required. + * *
+ */ + + Object getValueFrom(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/shellQuote
+ *
+ * If `ShellCommandRequirement` is in the requirements for the current command, + * this controls whether the value is quoted on the command line (default is true). + * Use `shellQuote: false` to inject metacharacters for operations such as pipes. + * + * If `shellQuote` is true or not provided, the implementation must not + * permit interpretation of any shell metacharacters or directives. + * *
+ */ + + java.util.Optional getShellQuote(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineBindingImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineBindingImpl.java new file mode 100644 index 00000000..d3cfee9e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineBindingImpl.java @@ -0,0 +1,363 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandLineBinding
+ + When listed under `inputBinding` in the input schema, the term + "value" refers to the corresponding value in the input object. For + binding objects listed in `CommandLineTool.arguments`, the term "value" + refers to the effective value after evaluating `valueFrom`. + + The binding behavior when building the command line depends on the data + type of the value. If there is a mismatch between the type described by + the input schema and the effective value, such as resulting from an + expression evaluation, an implementation must use the data type of the + effective value. + + - **string**: Add `prefix` and the string to the command line. + + - **number**: Add `prefix` and decimal representation to command line. + + - **boolean**: If true, add `prefix` to the command line. If false, add + nothing. + + - **File**: Add `prefix` and the value of + [`File.path`](#File) to the command line. + + - **Directory**: Add `prefix` and the value of + [`Directory.path`](#Directory) to the command line. + + - **array**: If `itemSeparator` is specified, add `prefix` and the join + the array into a single string with `itemSeparator` separating the + items. Otherwise, first add `prefix`, then recursively process + individual elements. + If the array is empty, it does not add anything to command line. + + - **object**: Add `prefix` only, and recursively add object fields for + which `inputBinding` is specified. + + - **null**: Add nothing. +
+ */ +public class CommandLineBindingImpl extends SaveableImpl implements CommandLineBinding { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional loadContents; + + /** + * Getter for property https://w3id.org/cwl/cwl#InputBinding/loadContents
+ *
+ * Use of `loadContents` in `InputBinding` is deprecated. + * Preserved for v1.0 backwards compatibility. Will be removed in + * CWL v2.0. Use `InputParameter.loadContents` instead. + * *
+ */ + + public java.util.Optional getLoadContents() { + return this.loadContents; + } + + private Object position; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/position
+ *
+ * The sorting key. Default position is 0. If a [CWL Parameter Reference](#Parameter_references) + * or [CWL Expression](#Expressions_(Optional)) is used and if the + * inputBinding is associated with an input parameter, then the value of + * `self` will be the value of the input parameter. Input parameter + * defaults (as specified by the `InputParameter.default` field) must be + * applied before evaluating the expression. Expressions must return a + * single value of type int or a null. + * *
+ */ + + public Object getPosition() { + return this.position; + } + + private java.util.Optional prefix; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/prefix
+ *
+ * Command line prefix to add before the value. *
+ */ + + public java.util.Optional getPrefix() { + return this.prefix; + } + + private java.util.Optional separate; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/separate
+ *
+ * If true (default), then the prefix and value must be added as separate + * command line arguments; if false, prefix and value must be concatenated + * into a single command line argument. + * *
+ */ + + public java.util.Optional getSeparate() { + return this.separate; + } + + private java.util.Optional itemSeparator; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/itemSeparator
+ *
+ * Join the array elements into a single string with the elements + * separated by `itemSeparator`. + * *
+ */ + + public java.util.Optional getItemSeparator() { + return this.itemSeparator; + } + + private Object valueFrom; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/valueFrom
+ *
+ * If `valueFrom` is a constant string value, use this as the value and + * apply the binding rules above. + * + * If `valueFrom` is an expression, evaluate the expression to yield the + * actual value to use to build the command line and apply the binding + * rules above. If the inputBinding is associated with an input + * parameter, the value of `self` in the expression will be the value of + * the input parameter. Input parameter defaults (as specified by the + * `InputParameter.default` field) must be applied before evaluating the + * expression. + * + * If the value of the associated input parameter is `null`, `valueFrom` is + * not evaluated and nothing is added to the command line. + * + * When a binding is part of the `CommandLineTool.arguments` field, + * the `valueFrom` field is required. + * *
+ */ + + public Object getValueFrom() { + return this.valueFrom; + } + + private java.util.Optional shellQuote; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/shellQuote
+ *
+ * If `ShellCommandRequirement` is in the requirements for the current command, + * this controls whether the value is quoted on the command line (default is true). + * Use `shellQuote: false` to inject metacharacters for operations such as pipes. + * + * If `shellQuote` is true or not provided, the implementation must not + * permit interpretation of any shell metacharacters or directives. + * *
+ */ + + public java.util.Optional getShellQuote() { + return this.shellQuote; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of CommandLineBindingImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandLineBindingImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandLineBindingImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional loadContents; + + if (__doc.containsKey("loadContents")) { + try { + loadContents = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadContents = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadContents` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadContents = null; + } + Object position; + + if (__doc.containsKey("position")) { + try { + position = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_ExpressionLoader + .loadField(__doc.get("position"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + position = null; // won't be used but prevents compiler from complaining. + final String __message = "the `position` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + position = null; + } + java.util.Optional prefix; + + if (__doc.containsKey("prefix")) { + try { + prefix = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("prefix"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + prefix = null; // won't be used but prevents compiler from complaining. + final String __message = "the `prefix` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + prefix = null; + } + java.util.Optional separate; + + if (__doc.containsKey("separate")) { + try { + separate = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("separate"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + separate = null; // won't be used but prevents compiler from complaining. + final String __message = "the `separate` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + separate = null; + } + java.util.Optional itemSeparator; + + if (__doc.containsKey("itemSeparator")) { + try { + itemSeparator = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("itemSeparator"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + itemSeparator = null; // won't be used but prevents compiler from complaining. + final String __message = "the `itemSeparator` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + itemSeparator = null; + } + Object valueFrom; + + if (__doc.containsKey("valueFrom")) { + try { + valueFrom = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_ExpressionLoader + .loadField(__doc.get("valueFrom"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + valueFrom = null; // won't be used but prevents compiler from complaining. + final String __message = "the `valueFrom` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + valueFrom = null; + } + java.util.Optional shellQuote; + + if (__doc.containsKey("shellQuote")) { + try { + shellQuote = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("shellQuote"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + shellQuote = null; // won't be used but prevents compiler from complaining. + final String __message = "the `shellQuote` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + shellQuote = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.loadContents = (java.util.Optional) loadContents; + this.position = (Object) position; + this.prefix = (java.util.Optional) prefix; + this.separate = (java.util.Optional) separate; + this.itemSeparator = (java.util.Optional) itemSeparator; + this.valueFrom = (Object) valueFrom; + this.shellQuote = (java.util.Optional) shellQuote; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("loadContents", "position", "prefix", "separate", "itemSeparator", "valueFrom", "shellQuote"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineTool.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineTool.java new file mode 100644 index 00000000..0678a9d9 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineTool.java @@ -0,0 +1,250 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandLineTool
This interface is implemented by {@link CommandLineToolImpl}
+ This defines the schema of the CWL Command Line Tool Description document. +
+ */ +public interface CommandLineTool extends Process, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Process/id
+ *
+ * The unique identifier for this object. + * + * Only useful for `$graph` at `Process` level. Should not be exposed + * to users in graphical or terminal user interfaces. + * *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/class
+ + */ + + CommandLineTool_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#inputs
+ *
+ * Defines the input parameters of the process. The process is ready to + * run when all required input parameters are associated with concrete + * values. Input parameters include a schema for each parameter which is + * used to validate the input object. It may also be used to build a user + * interface for constructing the input object. + * + * When accepting an input object, all input parameters must have a value. + * If an input parameter is missing from the input object, it must be + * assigned a value of `null` (or the value of `default` for that + * parameter, if provided) for the purposes of validation and evaluation + * of expressions. + * *
+ */ + + java.util.List getInputs(); + /** + * Getter for property https://w3id.org/cwl/cwl#outputs
+ *
+ * Defines the parameters representing the output of the process. May be + * used to generate and/or validate the output object. + * *
+ */ + + java.util.List getOutputs(); + /** + * Getter for property https://w3id.org/cwl/cwl#requirements
+ *
+ * Declares requirements that apply to either the runtime environment or the + * workflow engine that must be met in order to execute this process. If + * an implementation cannot satisfy all requirements, or a requirement is + * listed which is not recognized by the implementation, it is a fatal + * error and the implementation must not attempt to run the process, + * unless overridden at user option. + * *
+ */ + + java.util.Optional> getRequirements(); + /** + * Getter for property https://w3id.org/cwl/cwl#hints
+ *
+ * Declares hints applying to either the runtime environment or the + * workflow engine that may be helpful in executing this process. It is + * not an error if an implementation cannot satisfy all hints, however + * the implementation may report a warning. + * *
+ */ + + java.util.Optional> getHints(); + /** + * Getter for property https://w3id.org/cwl/cwl#cwlVersion
+ *
+ * CWL document version. Always required at the document root. Not + * required for a Process embedded inside another Process. + * *
+ */ + + java.util.Optional getCwlVersion(); + /** + * Getter for property https://w3id.org/cwl/cwl#Process/intent
+ *
+ * An identifier for the type of computational operation, of this Process. + * Especially useful for [`Operation`](Workflow.html#Operation), but can also be used for + * [`CommandLineTool`](CommandLineTool.html#CommandLineTool), + * [`Workflow`](Workflow.html#Workflow), or [ExpressionTool](Workflow.html#ExpressionTool). + * + * If provided, then this must be an IRI of a concept node that + * represents the type of operation, preferably defined within an ontology. + * + * For example, in the domain of bioinformatics, one can use an IRI from + * the EDAM Ontology's [Operation concept nodes](http://edamontology.org/operation_0004), + * like [Alignment](http://edamontology.org/operation_2928), + * or [Clustering](http://edamontology.org/operation_3432); or a more + * specific Operation concept like + * [Split read mapping](http://edamontology.org/operation_3199). + * *
+ */ + + java.util.Optional> getIntent(); + /** + * Getter for property https://w3id.org/cwl/cwl#baseCommand
+ *
+ * Specifies the program to execute. If an array, the first element of + * the array is the command to execute, and subsequent elements are + * mandatory command line arguments. The elements in `baseCommand` must + * appear before any command line bindings from `inputBinding` or + * `arguments`. + * + * If `baseCommand` is not provided or is an empty array, the first + * element of the command line produced after processing `inputBinding` or + * `arguments` must be used as the program to execute. + * + * If the program includes a path separator character it must + * be an absolute path, otherwise it is an error. If the program does not + * include a path separator, search the `$PATH` variable in the runtime + * environment of the workflow runner find the absolute path of the + * executable. + * *
+ */ + + Object getBaseCommand(); + /** + * Getter for property https://w3id.org/cwl/cwl#arguments
+ *
+ * Command line bindings which are not directly associated with input + * parameters. If the value is a string, it is used as a string literal + * argument. If it is an Expression, the result of the evaluation is used + * as an argument. + * *
+ */ + + java.util.Optional> getArguments(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stdin
+ *
+ * A path to a file whose contents must be piped into the command's + * standard input stream. + * *
+ */ + + Object getStdin(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stderr
+ *
+ * Capture the command's standard error stream to a file written to + * the designated output directory. + * + * If `stderr` is a string, it specifies the file name to use. + * + * If `stderr` is an expression, the expression is evaluated and must + * return a string with the file name to use to capture stderr. If the + * return value is not a string, or the resulting path contains illegal + * characters (such as the path separator `/`) it is an error. + * *
+ */ + + Object getStderr(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stdout
+ *
+ * Capture the command's standard output stream to a file written to + * the designated output directory. + * + * If the `CommandLineTool` contains logically chained commands + * (e.g. `echo a && echo b`) `stdout` must include the output of + * every command. + * + * If `stdout` is a string, it specifies the file name to use. + * + * If `stdout` is an expression, the expression is evaluated and must + * return a string with the file name to use to capture stdout. If the + * return value is not a string, or the resulting path contains illegal + * characters (such as the path separator `/`) it is an error. + * *
+ */ + + Object getStdout(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/successCodes
+ *
+ * Exit codes that indicate the process completed successfully. + * + * If not specified, only exit code 0 is considered success. + * *
+ */ + + java.util.Optional> getSuccessCodes(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/temporaryFailCodes
+ *
+ * Exit codes that indicate the process failed due to a possibly + * temporary condition, where executing the process with the same + * runtime environment and inputs may produce different results. + * + * If not specified, no exit codes are considered temporary failure. + * *
+ */ + + java.util.Optional> getTemporaryFailCodes(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/permanentFailCodes
+ *
+ * Exit codes that indicate the process failed due to a permanent logic error, where executing the process with the same runtime environment and same inputs is expected to always fail. + * If not specified, all exit codes except 0 are considered permanent failure. *
+ */ + + java.util.Optional> getPermanentFailCodes(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineToolImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineToolImpl.java new file mode 100644 index 00000000..8a8803a8 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineToolImpl.java @@ -0,0 +1,712 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandLineTool
+ This defines the schema of the CWL Command Line Tool Description document. +
+ */ +public class CommandLineToolImpl extends SaveableImpl implements CommandLineTool { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Process/id
+ *
+ * The unique identifier for this object. + * + * Only useful for `$graph` at `Process` level. Should not be exposed + * to users in graphical or terminal user interfaces. + * *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private CommandLineTool_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/class
+ + */ + + public CommandLineTool_class getClass_() { + return this.class_; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private java.util.List inputs; + + /** + * Getter for property https://w3id.org/cwl/cwl#inputs
+ *
+ * Defines the input parameters of the process. The process is ready to + * run when all required input parameters are associated with concrete + * values. Input parameters include a schema for each parameter which is + * used to validate the input object. It may also be used to build a user + * interface for constructing the input object. + * + * When accepting an input object, all input parameters must have a value. + * If an input parameter is missing from the input object, it must be + * assigned a value of `null` (or the value of `default` for that + * parameter, if provided) for the purposes of validation and evaluation + * of expressions. + * *
+ */ + + public java.util.List getInputs() { + return this.inputs; + } + + private java.util.List outputs; + + /** + * Getter for property https://w3id.org/cwl/cwl#outputs
+ *
+ * Defines the parameters representing the output of the process. May be + * used to generate and/or validate the output object. + * *
+ */ + + public java.util.List getOutputs() { + return this.outputs; + } + + private java.util.Optional> requirements; + + /** + * Getter for property https://w3id.org/cwl/cwl#requirements
+ *
+ * Declares requirements that apply to either the runtime environment or the + * workflow engine that must be met in order to execute this process. If + * an implementation cannot satisfy all requirements, or a requirement is + * listed which is not recognized by the implementation, it is a fatal + * error and the implementation must not attempt to run the process, + * unless overridden at user option. + * *
+ */ + + public java.util.Optional> getRequirements() { + return this.requirements; + } + + private java.util.Optional> hints; + + /** + * Getter for property https://w3id.org/cwl/cwl#hints
+ *
+ * Declares hints applying to either the runtime environment or the + * workflow engine that may be helpful in executing this process. It is + * not an error if an implementation cannot satisfy all hints, however + * the implementation may report a warning. + * *
+ */ + + public java.util.Optional> getHints() { + return this.hints; + } + + private java.util.Optional cwlVersion; + + /** + * Getter for property https://w3id.org/cwl/cwl#cwlVersion
+ *
+ * CWL document version. Always required at the document root. Not + * required for a Process embedded inside another Process. + * *
+ */ + + public java.util.Optional getCwlVersion() { + return this.cwlVersion; + } + + private java.util.Optional> intent; + + /** + * Getter for property https://w3id.org/cwl/cwl#Process/intent
+ *
+ * An identifier for the type of computational operation, of this Process. + * Especially useful for [`Operation`](Workflow.html#Operation), but can also be used for + * [`CommandLineTool`](CommandLineTool.html#CommandLineTool), + * [`Workflow`](Workflow.html#Workflow), or [ExpressionTool](Workflow.html#ExpressionTool). + * + * If provided, then this must be an IRI of a concept node that + * represents the type of operation, preferably defined within an ontology. + * + * For example, in the domain of bioinformatics, one can use an IRI from + * the EDAM Ontology's [Operation concept nodes](http://edamontology.org/operation_0004), + * like [Alignment](http://edamontology.org/operation_2928), + * or [Clustering](http://edamontology.org/operation_3432); or a more + * specific Operation concept like + * [Split read mapping](http://edamontology.org/operation_3199). + * *
+ */ + + public java.util.Optional> getIntent() { + return this.intent; + } + + private Object baseCommand; + + /** + * Getter for property https://w3id.org/cwl/cwl#baseCommand
+ *
+ * Specifies the program to execute. If an array, the first element of + * the array is the command to execute, and subsequent elements are + * mandatory command line arguments. The elements in `baseCommand` must + * appear before any command line bindings from `inputBinding` or + * `arguments`. + * + * If `baseCommand` is not provided or is an empty array, the first + * element of the command line produced after processing `inputBinding` or + * `arguments` must be used as the program to execute. + * + * If the program includes a path separator character it must + * be an absolute path, otherwise it is an error. If the program does not + * include a path separator, search the `$PATH` variable in the runtime + * environment of the workflow runner find the absolute path of the + * executable. + * *
+ */ + + public Object getBaseCommand() { + return this.baseCommand; + } + + private java.util.Optional> arguments; + + /** + * Getter for property https://w3id.org/cwl/cwl#arguments
+ *
+ * Command line bindings which are not directly associated with input + * parameters. If the value is a string, it is used as a string literal + * argument. If it is an Expression, the result of the evaluation is used + * as an argument. + * *
+ */ + + public java.util.Optional> getArguments() { + return this.arguments; + } + + private Object stdin; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stdin
+ *
+ * A path to a file whose contents must be piped into the command's + * standard input stream. + * *
+ */ + + public Object getStdin() { + return this.stdin; + } + + private Object stderr; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stderr
+ *
+ * Capture the command's standard error stream to a file written to + * the designated output directory. + * + * If `stderr` is a string, it specifies the file name to use. + * + * If `stderr` is an expression, the expression is evaluated and must + * return a string with the file name to use to capture stderr. If the + * return value is not a string, or the resulting path contains illegal + * characters (such as the path separator `/`) it is an error. + * *
+ */ + + public Object getStderr() { + return this.stderr; + } + + private Object stdout; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stdout
+ *
+ * Capture the command's standard output stream to a file written to + * the designated output directory. + * + * If the `CommandLineTool` contains logically chained commands + * (e.g. `echo a && echo b`) `stdout` must include the output of + * every command. + * + * If `stdout` is a string, it specifies the file name to use. + * + * If `stdout` is an expression, the expression is evaluated and must + * return a string with the file name to use to capture stdout. If the + * return value is not a string, or the resulting path contains illegal + * characters (such as the path separator `/`) it is an error. + * *
+ */ + + public Object getStdout() { + return this.stdout; + } + + private java.util.Optional> successCodes; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/successCodes
+ *
+ * Exit codes that indicate the process completed successfully. + * + * If not specified, only exit code 0 is considered success. + * *
+ */ + + public java.util.Optional> getSuccessCodes() { + return this.successCodes; + } + + private java.util.Optional> temporaryFailCodes; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/temporaryFailCodes
+ *
+ * Exit codes that indicate the process failed due to a possibly + * temporary condition, where executing the process with the same + * runtime environment and inputs may produce different results. + * + * If not specified, no exit codes are considered temporary failure. + * *
+ */ + + public java.util.Optional> getTemporaryFailCodes() { + return this.temporaryFailCodes; + } + + private java.util.Optional> permanentFailCodes; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/permanentFailCodes
+ *
+ * Exit codes that indicate the process failed due to a permanent logic error, where executing the process with the same runtime environment and same inputs is expected to always fail. + * If not specified, all exit codes except 0 are considered permanent failure. *
+ */ + + public java.util.Optional> getPermanentFailCodes() { + return this.permanentFailCodes; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of CommandLineToolImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandLineToolImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandLineToolImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + CommandLineTool_class class_; + try { + class_ = + LoaderInstances + .uri_CommandLineTool_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + java.util.List inputs; + try { + inputs = + LoaderInstances + .idmap_inputs_array_of_CommandInputParameter + .loadField(__doc.get("inputs"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputs = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputs` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.List outputs; + try { + outputs = + LoaderInstances + .idmap_outputs_array_of_CommandOutputParameter + .loadField(__doc.get("outputs"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + outputs = null; // won't be used but prevents compiler from complaining. + final String __message = "the `outputs` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional> requirements; + + if (__doc.containsKey("requirements")) { + try { + requirements = + LoaderInstances + .idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement + .loadField(__doc.get("requirements"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + requirements = null; // won't be used but prevents compiler from complaining. + final String __message = "the `requirements` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + requirements = null; + } + java.util.Optional> hints; + + if (__doc.containsKey("hints")) { + try { + hints = + LoaderInstances + .idmap_hints_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance + .loadField(__doc.get("hints"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + hints = null; // won't be used but prevents compiler from complaining. + final String __message = "the `hints` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + hints = null; + } + java.util.Optional cwlVersion; + + if (__doc.containsKey("cwlVersion")) { + try { + cwlVersion = + LoaderInstances + .uri_optional_CWLVersion_False_True_None_None + .loadField(__doc.get("cwlVersion"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + cwlVersion = null; // won't be used but prevents compiler from complaining. + final String __message = "the `cwlVersion` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + cwlVersion = null; + } + java.util.Optional> intent; + + if (__doc.containsKey("intent")) { + try { + intent = + LoaderInstances + .uri_optional_array_of_StringInstance_True_False_None_None + .loadField(__doc.get("intent"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + intent = null; // won't be used but prevents compiler from complaining. + final String __message = "the `intent` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + intent = null; + } + Object baseCommand; + + if (__doc.containsKey("baseCommand")) { + try { + baseCommand = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("baseCommand"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + baseCommand = null; // won't be used but prevents compiler from complaining. + final String __message = "the `baseCommand` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + baseCommand = null; + } + java.util.Optional> arguments; + + if (__doc.containsKey("arguments")) { + try { + arguments = + LoaderInstances + .optional_array_of_union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding + .loadField(__doc.get("arguments"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + arguments = null; // won't be used but prevents compiler from complaining. + final String __message = "the `arguments` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + arguments = null; + } + Object stdin; + + if (__doc.containsKey("stdin")) { + try { + stdin = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_ExpressionLoader + .loadField(__doc.get("stdin"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + stdin = null; // won't be used but prevents compiler from complaining. + final String __message = "the `stdin` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + stdin = null; + } + Object stderr; + + if (__doc.containsKey("stderr")) { + try { + stderr = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_ExpressionLoader + .loadField(__doc.get("stderr"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + stderr = null; // won't be used but prevents compiler from complaining. + final String __message = "the `stderr` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + stderr = null; + } + Object stdout; + + if (__doc.containsKey("stdout")) { + try { + stdout = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_ExpressionLoader + .loadField(__doc.get("stdout"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + stdout = null; // won't be used but prevents compiler from complaining. + final String __message = "the `stdout` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + stdout = null; + } + java.util.Optional> successCodes; + + if (__doc.containsKey("successCodes")) { + try { + successCodes = + LoaderInstances + .optional_array_of_IntegerInstance + .loadField(__doc.get("successCodes"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + successCodes = null; // won't be used but prevents compiler from complaining. + final String __message = "the `successCodes` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + successCodes = null; + } + java.util.Optional> temporaryFailCodes; + + if (__doc.containsKey("temporaryFailCodes")) { + try { + temporaryFailCodes = + LoaderInstances + .optional_array_of_IntegerInstance + .loadField(__doc.get("temporaryFailCodes"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + temporaryFailCodes = null; // won't be used but prevents compiler from complaining. + final String __message = "the `temporaryFailCodes` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + temporaryFailCodes = null; + } + java.util.Optional> permanentFailCodes; + + if (__doc.containsKey("permanentFailCodes")) { + try { + permanentFailCodes = + LoaderInstances + .optional_array_of_IntegerInstance + .loadField(__doc.get("permanentFailCodes"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + permanentFailCodes = null; // won't be used but prevents compiler from complaining. + final String __message = "the `permanentFailCodes` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + permanentFailCodes = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.id = (java.util.Optional) id; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.inputs = (java.util.List) inputs; + this.outputs = (java.util.List) outputs; + this.requirements = (java.util.Optional>) requirements; + this.hints = (java.util.Optional>) hints; + this.cwlVersion = (java.util.Optional) cwlVersion; + this.intent = (java.util.Optional>) intent; + this.class_ = (CommandLineTool_class) class_; + this.baseCommand = (Object) baseCommand; + this.arguments = (java.util.Optional>) arguments; + this.stdin = (Object) stdin; + this.stderr = (Object) stderr; + this.stdout = (Object) stdout; + this.successCodes = (java.util.Optional>) successCodes; + this.temporaryFailCodes = (java.util.Optional>) temporaryFailCodes; + this.permanentFailCodes = (java.util.Optional>) permanentFailCodes; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("id", "label", "doc", "inputs", "outputs", "requirements", "hints", "cwlVersion", "intent", "class", "baseCommand", "arguments", "stdin", "stderr", "stdout", "successCodes", "temporaryFailCodes", "permanentFailCodes"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineTool_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineTool_class.java new file mode 100644 index 00000000..ca9bb74b --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandLineTool_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum CommandLineTool_class { + COMMANDLINETOOL("CommandLineTool"); + + private static String[] symbols = new String[] {"CommandLineTool"}; + private String docVal; + + private CommandLineTool_class(final String docVal) { + this.docVal = docVal; + } + + public static CommandLineTool_class fromDocumentVal(final String docVal) { + for(final CommandLineTool_class val : CommandLineTool_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", CommandLineTool_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputArraySchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputArraySchema.java new file mode 100644 index 00000000..5456f569 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputArraySchema.java @@ -0,0 +1,63 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputArraySchema
This interface is implemented by {@link CommandOutputArraySchemaImpl}
+ */ +public interface CommandOutputArraySchema extends OutputArraySchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + Object getItems(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + Array_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputArraySchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputArraySchemaImpl.java new file mode 100644 index 00000000..f7aded0f --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputArraySchemaImpl.java @@ -0,0 +1,232 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputArraySchema
+ */ +public class CommandOutputArraySchemaImpl extends SaveableImpl implements CommandOutputArraySchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private Object items; + + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + public Object getItems() { + return this.items; + } + + private Array_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + public Array_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of CommandOutputArraySchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandOutputArraySchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandOutputArraySchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + Object items; + try { + items = + LoaderInstances + .uri_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_False_True_2_None + .loadField(__doc.get("items"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + items = null; // won't be used but prevents compiler from complaining. + final String __message = "the `items` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Array_name type; + try { + type = + LoaderInstances + .typedsl_Array_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.items = (Object) items; + this.type = (Array_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.name = (java.util.Optional) name; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("items", "type", "label", "doc", "name"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputBinding.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputBinding.java new file mode 100644 index 00000000..e91c9bd3 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputBinding.java @@ -0,0 +1,139 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputBinding
This interface is implemented by {@link CommandOutputBindingImpl}
+ Describes how to generate an output parameter based on the files produced + by a CommandLineTool. + + The output parameter value is generated by applying these operations in the + following order: + + - glob + - loadContents + - outputEval + - secondaryFiles +
+ */ +public interface CommandOutputBinding extends LoadContents, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * If true, the file (or each file in the array) must be a UTF-8 + * text file 64 KiB or smaller, and the implementation must read + * the entire contents of the file (or file array) and place it + * in the `contents` field of the File object for use by + * expressions. If the size of the file is greater than 64 KiB, + * the implementation must raise a fatal error. + * *
+ */ + + java.util.Optional getLoadContents(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + java.util.Optional getLoadListing(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandOutputBinding/glob
+ *
+ * Find files or directories relative to the output directory, using POSIX + * glob(3) pathname matching. If an array is provided, find files or + * directories that match any pattern in the array. If an expression is + * provided, the expression must return a string or an array of strings, + * which will then be evaluated as one or more glob patterns. Must only + * match and return files/directories which actually exist. + * + * If the value of glob is a relative path pattern (does not + * begin with a slash '/') then it is resolved relative to the + * output directory. If the value of the glob is an absolute + * path pattern (it does begin with a slash '/') then it must + * refer to a path within the output directory. It is an error + * if any glob resolves to a path outside the output directory. + * Specifically this means globs that resolve to paths outside the output + * directory are illegal. + * + * A glob may match a path within the output directory which is + * actually a symlink to another file. In this case, the + * expected behavior is for the resulting File/Directory object to take the + * `basename` (and corresponding `nameroot` and `nameext`) of the + * symlink. The `location` of the File/Directory is implementation + * dependent, but logically the File/Directory should have the same content + * as the symlink target. Platforms may stage output files/directories to + * cloud storage that lack the concept of a symlink. In + * this case file content and directories may be duplicated, or (to avoid + * duplication) the File/Directory `location` may refer to the symlink + * target. + * + * It is an error if a symlink in the output directory (or any + * symlink in a chain of links) refers to any file or directory + * that is not under an input or output directory. + * + * Implementations may shut down a container before globbing + * output, so globs and expressions must not assume access to the + * container filesystem except for declared input and output. + * *
+ */ + + Object getGlob(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandOutputBinding/outputEval
+ *
+ * Evaluate an expression to generate the output value. If + * `glob` was specified, the value of `self` must be an array + * containing file objects that were matched. If no files were + * matched, `self` must be a zero length array; if a single file + * was matched, the value of `self` is an array of a single + * element. The exit code of the process is + * available in the expression as `runtime.exitCode`. + * + * Additionally, if `loadContents` is true, the file must be a + * UTF-8 text file 64 KiB or smaller, and the implementation must + * read the entire contents of the file (or file array) and place + * it in the `contents` field of the File object for use in + * `outputEval`. If the size of the file is greater than 64 KiB, + * the implementation must raise a fatal error. + * + * If a tool needs to return a large amount of structured data to + * the workflow, loading the output object from `cwl.output.json` + * bypasses `outputEval` and is not subject to the 64 KiB + * `loadContents` limit. + * *
+ */ + + java.util.Optional getOutputEval(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputBindingImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputBindingImpl.java new file mode 100644 index 00000000..8bf84292 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputBindingImpl.java @@ -0,0 +1,283 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputBinding
+ Describes how to generate an output parameter based on the files produced + by a CommandLineTool. + + The output parameter value is generated by applying these operations in the + following order: + + - glob + - loadContents + - outputEval + - secondaryFiles +
+ */ +public class CommandOutputBindingImpl extends SaveableImpl implements CommandOutputBinding { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional loadContents; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * If true, the file (or each file in the array) must be a UTF-8 + * text file 64 KiB or smaller, and the implementation must read + * the entire contents of the file (or file array) and place it + * in the `contents` field of the File object for use by + * expressions. If the size of the file is greater than 64 KiB, + * the implementation must raise a fatal error. + * *
+ */ + + public java.util.Optional getLoadContents() { + return this.loadContents; + } + + private java.util.Optional loadListing; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + public java.util.Optional getLoadListing() { + return this.loadListing; + } + + private Object glob; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandOutputBinding/glob
+ *
+ * Find files or directories relative to the output directory, using POSIX + * glob(3) pathname matching. If an array is provided, find files or + * directories that match any pattern in the array. If an expression is + * provided, the expression must return a string or an array of strings, + * which will then be evaluated as one or more glob patterns. Must only + * match and return files/directories which actually exist. + * + * If the value of glob is a relative path pattern (does not + * begin with a slash '/') then it is resolved relative to the + * output directory. If the value of the glob is an absolute + * path pattern (it does begin with a slash '/') then it must + * refer to a path within the output directory. It is an error + * if any glob resolves to a path outside the output directory. + * Specifically this means globs that resolve to paths outside the output + * directory are illegal. + * + * A glob may match a path within the output directory which is + * actually a symlink to another file. In this case, the + * expected behavior is for the resulting File/Directory object to take the + * `basename` (and corresponding `nameroot` and `nameext`) of the + * symlink. The `location` of the File/Directory is implementation + * dependent, but logically the File/Directory should have the same content + * as the symlink target. Platforms may stage output files/directories to + * cloud storage that lack the concept of a symlink. In + * this case file content and directories may be duplicated, or (to avoid + * duplication) the File/Directory `location` may refer to the symlink + * target. + * + * It is an error if a symlink in the output directory (or any + * symlink in a chain of links) refers to any file or directory + * that is not under an input or output directory. + * + * Implementations may shut down a container before globbing + * output, so globs and expressions must not assume access to the + * container filesystem except for declared input and output. + * *
+ */ + + public Object getGlob() { + return this.glob; + } + + private java.util.Optional outputEval; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandOutputBinding/outputEval
+ *
+ * Evaluate an expression to generate the output value. If + * `glob` was specified, the value of `self` must be an array + * containing file objects that were matched. If no files were + * matched, `self` must be a zero length array; if a single file + * was matched, the value of `self` is an array of a single + * element. The exit code of the process is + * available in the expression as `runtime.exitCode`. + * + * Additionally, if `loadContents` is true, the file must be a + * UTF-8 text file 64 KiB or smaller, and the implementation must + * read the entire contents of the file (or file array) and place + * it in the `contents` field of the File object for use in + * `outputEval`. If the size of the file is greater than 64 KiB, + * the implementation must raise a fatal error. + * + * If a tool needs to return a large amount of structured data to + * the workflow, loading the output object from `cwl.output.json` + * bypasses `outputEval` and is not subject to the 64 KiB + * `loadContents` limit. + * *
+ */ + + public java.util.Optional getOutputEval() { + return this.outputEval; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of CommandOutputBindingImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandOutputBindingImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandOutputBindingImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional loadContents; + + if (__doc.containsKey("loadContents")) { + try { + loadContents = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadContents = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadContents` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadContents = null; + } + java.util.Optional loadListing; + + if (__doc.containsKey("loadListing")) { + try { + loadListing = + LoaderInstances + .optional_LoadListingEnum + .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadListing = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadListing` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadListing = null; + } + Object glob; + + if (__doc.containsKey("glob")) { + try { + glob = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_ExpressionLoader_or_array_of_StringInstance + .loadField(__doc.get("glob"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + glob = null; // won't be used but prevents compiler from complaining. + final String __message = "the `glob` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + glob = null; + } + java.util.Optional outputEval; + + if (__doc.containsKey("outputEval")) { + try { + outputEval = + LoaderInstances + .optional_ExpressionLoader + .loadField(__doc.get("outputEval"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + outputEval = null; // won't be used but prevents compiler from complaining. + final String __message = "the `outputEval` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + outputEval = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.loadContents = (java.util.Optional) loadContents; + this.loadListing = (java.util.Optional) loadListing; + this.glob = (Object) glob; + this.outputEval = (java.util.Optional) outputEval; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("loadContents", "loadListing", "glob", "outputEval"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputEnumSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputEnumSchema.java new file mode 100644 index 00000000..34d2562e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputEnumSchema.java @@ -0,0 +1,63 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputEnumSchema
This interface is implemented by {@link CommandOutputEnumSchemaImpl}
+ */ +public interface CommandOutputEnumSchema extends OutputEnumSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + java.util.List getSymbols(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + Enum_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputEnumSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputEnumSchemaImpl.java new file mode 100644 index 00000000..5ddcaf32 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputEnumSchemaImpl.java @@ -0,0 +1,232 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputEnumSchema
+ */ +public class CommandOutputEnumSchemaImpl extends SaveableImpl implements CommandOutputEnumSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private java.util.List symbols; + + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + public java.util.List getSymbols() { + return this.symbols; + } + + private Enum_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + public Enum_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of CommandOutputEnumSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandOutputEnumSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandOutputEnumSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + java.util.List symbols; + try { + symbols = + LoaderInstances + .uri_array_of_StringInstance_True_False_None_None + .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + symbols = null; // won't be used but prevents compiler from complaining. + final String __message = "the `symbols` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Enum_name type; + try { + type = + LoaderInstances + .typedsl_Enum_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.name = (java.util.Optional) name; + this.symbols = (java.util.List) symbols; + this.type = (Enum_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("name", "symbols", "type", "label", "doc"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputParameter.java new file mode 100644 index 00000000..4fa8649c --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputParameter.java @@ -0,0 +1,137 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputParameter
This interface is implemented by {@link CommandOutputParameterImpl}
+ An output parameter for a CommandLineTool.
+ */ +public interface CommandOutputParameter extends OutputParameter, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + Object getFormat(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * *
+ */ + + Object getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandOutputParameter/outputBinding
+ *
+ * Describes how to generate this output object based on the files produced by a CommandLineTool *
+ */ + + java.util.Optional getOutputBinding(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputParameterImpl.java new file mode 100644 index 00000000..31ddcf41 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputParameterImpl.java @@ -0,0 +1,381 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputParameter
+ An output parameter for a CommandLineTool.
+ */ +public class CommandOutputParameterImpl extends SaveableImpl implements CommandOutputParameter { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional streamable; + + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + public java.util.Optional getStreamable() { + return this.streamable; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + public Object getFormat() { + return this.format; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * *
+ */ + + public Object getType() { + return this.type; + } + + private java.util.Optional outputBinding; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandOutputParameter/outputBinding
+ *
+ * Describes how to generate this output object based on the files produced by a CommandLineTool *
+ */ + + public java.util.Optional getOutputBinding() { + return this.outputBinding; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of CommandOutputParameterImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandOutputParameterImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandOutputParameterImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional streamable; + + if (__doc.containsKey("streamable")) { + try { + streamable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + streamable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `streamable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + streamable = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + Object type; + try { + type = + LoaderInstances + .typedsl_union_of_CWLType_or_stdout_or_stderr_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional outputBinding; + + if (__doc.containsKey("outputBinding")) { + try { + outputBinding = + LoaderInstances + .optional_CommandOutputBinding + .loadField(__doc.get("outputBinding"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + outputBinding = null; // won't be used but prevents compiler from complaining. + final String __message = "the `outputBinding` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + outputBinding = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.label = (java.util.Optional) label; + this.secondaryFiles = (Object) secondaryFiles; + this.streamable = (java.util.Optional) streamable; + this.doc = (Object) doc; + this.id = (java.util.Optional) id; + this.format = (Object) format; + this.type = (Object) type; + this.outputBinding = (java.util.Optional) outputBinding; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("label", "secondaryFiles", "streamable", "doc", "id", "format", "type", "outputBinding"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputRecordField.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputRecordField.java new file mode 100644 index 00000000..6b2a31a3 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputRecordField.java @@ -0,0 +1,139 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputRecordField
This interface is implemented by {@link CommandOutputRecordFieldImpl}
+ */ +public interface CommandOutputRecordField extends OutputRecordField, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + String getName(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + Object getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + Object getFormat(); + /** + * Getter for property https://w3id.org/cwl/cwl#CommandOutputRecordField/outputBinding
+ *
+ * Describes how to generate this output object based on the files + * produced by a CommandLineTool + * *
+ */ + + java.util.Optional getOutputBinding(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputRecordFieldImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputRecordFieldImpl.java new file mode 100644 index 00000000..488f122b --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputRecordFieldImpl.java @@ -0,0 +1,378 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputRecordField
+ */ +public class CommandOutputRecordFieldImpl extends SaveableImpl implements CommandOutputRecordField { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private String name; + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + public String getName() { + return this.name; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + public Object getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional streamable; + + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + public java.util.Optional getStreamable() { + return this.streamable; + } + + private Object format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + public Object getFormat() { + return this.format; + } + + private java.util.Optional outputBinding; + + /** + * Getter for property https://w3id.org/cwl/cwl#CommandOutputRecordField/outputBinding
+ *
+ * Describes how to generate this output object based on the files + * produced by a CommandLineTool + * *
+ */ + + public java.util.Optional getOutputBinding() { + return this.outputBinding; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of CommandOutputRecordFieldImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandOutputRecordFieldImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandOutputRecordFieldImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + String name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + if (name == null) { + if (__docRoot != null) { + name = __docRoot; + } else { + throw new ValidationException("Missing name"); + } + } + __baseUri = (String) name; + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object type; + try { + type = + LoaderInstances + .typedsl_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional streamable; + + if (__doc.containsKey("streamable")) { + try { + streamable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + streamable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `streamable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + streamable = null; + } + Object format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + java.util.Optional outputBinding; + + if (__doc.containsKey("outputBinding")) { + try { + outputBinding = + LoaderInstances + .optional_CommandOutputBinding + .loadField(__doc.get("outputBinding"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + outputBinding = null; // won't be used but prevents compiler from complaining. + final String __message = "the `outputBinding` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + outputBinding = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.doc = (Object) doc; + this.name = (String) name; + this.type = (Object) type; + this.label = (java.util.Optional) label; + this.secondaryFiles = (Object) secondaryFiles; + this.streamable = (java.util.Optional) streamable; + this.format = (Object) format; + this.outputBinding = (java.util.Optional) outputBinding; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("doc", "name", "type", "label", "secondaryFiles", "streamable", "format", "outputBinding"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputRecordSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputRecordSchema.java new file mode 100644 index 00000000..97b04cb0 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputRecordSchema.java @@ -0,0 +1,63 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputRecordSchema
This interface is implemented by {@link CommandOutputRecordSchemaImpl}
+ */ +public interface CommandOutputRecordSchema extends OutputRecordSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + java.util.Optional> getFields(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + Record_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputRecordSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputRecordSchemaImpl.java new file mode 100644 index 00000000..f0b9e058 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/CommandOutputRecordSchemaImpl.java @@ -0,0 +1,238 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputRecordSchema
+ */ +public class CommandOutputRecordSchemaImpl extends SaveableImpl implements CommandOutputRecordSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private java.util.Optional> fields; + + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + public java.util.Optional> getFields() { + return this.fields; + } + + private Record_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + public Record_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of CommandOutputRecordSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public CommandOutputRecordSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("CommandOutputRecordSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + java.util.Optional> fields; + + if (__doc.containsKey("fields")) { + try { + fields = + LoaderInstances + .idmap_fields_optional_array_of_CommandOutputRecordField + .loadField(__doc.get("fields"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + fields = null; // won't be used but prevents compiler from complaining. + final String __message = "the `fields` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + fields = null; + } + Record_name type; + try { + type = + LoaderInstances + .typedsl_Record_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.fields = (java.util.Optional>) fields; + this.type = (Record_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.name = (java.util.Optional) name; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("fields", "type", "label", "doc", "name"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/Directory.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Directory.java new file mode 100644 index 00000000..25817bf5 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Directory.java @@ -0,0 +1,154 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#Directory
This interface is implemented by {@link DirectoryImpl}
+ Represents a directory to present to a command line tool. + + Directories are represented as objects with `class` of `Directory`. Directory objects have + a number of properties that provide metadata about the directory. + + The `location` property of a Directory is a IRI that uniquely identifies + the directory. Implementations must support the file:// IRI scheme and may + support other schemes such as http://. Alternately to `location`, + implementations must also accept the `path` property on Directory, which + must be a filesystem path available on the same host as the CWL runner (for + inputs) or the runtime environment of a command line tool execution (for + command line tool outputs). + + A Directory object may have a `listing` field. This is a list of File and + Directory objects that are contained in the Directory. For each entry in + `listing`, the `basename` property defines the name of the File or + Subdirectory when staged to disk. If `listing` is not provided, the + implementation must have some way of fetching the Directory listing at + runtime based on the `location` field. + + If a Directory does not have `location`, it is a Directory literal. A + Directory literal must provide `listing`. Directory literals must be + created on disk at runtime as needed. + + The resources in a Directory literal do not need to have any implied + relationship in their `location`. For example, a Directory listing may + contain two files located on different hosts. It is the responsibility of + the runtime to ensure that those files are staged to disk appropriately. + Secondary files associated with files in `listing` must also be staged to + the same Directory. + + When executing a CommandLineTool, Directories must be recursively staged + first and have local values of `path` assigned. + + Directory objects in CommandLineTool output must provide either a + `location` IRI or a `path` property in the context of the tool execution + runtime (local to the compute node, or within the executing container). + + An ExpressionTool may forward file references from input to output by using + the same value for `location`. + + Name conflicts (the same `basename` appearing multiple times in `listing` + or in any entry in `secondaryFiles` in the listing) is a fatal error. +
+ */ +public interface Directory extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Directory/class
+ *
+ * Must be `Directory` to indicate this object describes a Directory. *
+ */ + + Directory_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#Directory/location
+ *
+ * An IRI that identifies the directory resource. This may be a relative + * reference, in which case it must be resolved using the base IRI of the + * document. The location may refer to a local or remote resource. If + * the `listing` field is not set, the implementation must use the + * location IRI to retrieve directory listing. If an implementation is + * unable to retrieve the directory listing stored at a remote resource (due to + * unsupported protocol, access denied, or other issue) it must signal an + * error. + * + * If the `location` field is not provided, the `listing` field must be + * provided. The implementation must assign a unique identifier for + * the `location` field. + * + * If the `path` field is provided but the `location` field is not, an + * implementation may assign the value of the `path` field to `location`, + * then follow the rules above. + * *
+ */ + + java.util.Optional getLocation(); + /** + * Getter for property https://w3id.org/cwl/cwl#path
+ *
+ * The local path where the Directory is made available prior to executing a + * CommandLineTool. This must be set by the implementation. This field + * must not be used in any other context. The command line tool being + * executed must be able to access the directory at `path` using the POSIX + * `opendir(2)` syscall. + * + * If the `path` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02) + * (`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`, + * ``, ``, and ``) or characters + * [not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml) + * for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452) + * then implementations may terminate the process with a + * `permanentFailure`. + * *
+ */ + + java.util.Optional getPath(); + /** + * Getter for property https://w3id.org/cwl/cwl#Directory/basename
+ *
+ * The base name of the directory, that is, the name of the file without any + * leading directory path. The base name must not contain a slash `/`. + * + * If not provided, the implementation must set this field based on the + * `location` field by taking the final path component after parsing + * `location` as an IRI. If `basename` is provided, it is not required to + * match the value from `location`. + * + * When this file is made available to a CommandLineTool, it must be named + * with `basename`, i.e. the final component of the `path` field must match + * `basename`. + * *
+ */ + + java.util.Optional getBasename(); + /** + * Getter for property https://w3id.org/cwl/cwl#listing
+ *
+ * List of files or subdirectories contained in this directory. The name + * of each file or subdirectory is determined by the `basename` field of + * each `File` or `Directory` object. It is an error if a `File` shares a + * `basename` with any other entry in `listing`. If two or more + * `Directory` object share the same `basename`, this must be treated as + * equivalent to a single subdirectory with the listings recursively + * merged. + * *
+ */ + + java.util.Optional> getListing(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/DirectoryImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/DirectoryImpl.java new file mode 100644 index 00000000..ca110334 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/DirectoryImpl.java @@ -0,0 +1,315 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#Directory
+ Represents a directory to present to a command line tool. + + Directories are represented as objects with `class` of `Directory`. Directory objects have + a number of properties that provide metadata about the directory. + + The `location` property of a Directory is a IRI that uniquely identifies + the directory. Implementations must support the file:// IRI scheme and may + support other schemes such as http://. Alternately to `location`, + implementations must also accept the `path` property on Directory, which + must be a filesystem path available on the same host as the CWL runner (for + inputs) or the runtime environment of a command line tool execution (for + command line tool outputs). + + A Directory object may have a `listing` field. This is a list of File and + Directory objects that are contained in the Directory. For each entry in + `listing`, the `basename` property defines the name of the File or + Subdirectory when staged to disk. If `listing` is not provided, the + implementation must have some way of fetching the Directory listing at + runtime based on the `location` field. + + If a Directory does not have `location`, it is a Directory literal. A + Directory literal must provide `listing`. Directory literals must be + created on disk at runtime as needed. + + The resources in a Directory literal do not need to have any implied + relationship in their `location`. For example, a Directory listing may + contain two files located on different hosts. It is the responsibility of + the runtime to ensure that those files are staged to disk appropriately. + Secondary files associated with files in `listing` must also be staged to + the same Directory. + + When executing a CommandLineTool, Directories must be recursively staged + first and have local values of `path` assigned. + + Directory objects in CommandLineTool output must provide either a + `location` IRI or a `path` property in the context of the tool execution + runtime (local to the compute node, or within the executing container). + + An ExpressionTool may forward file references from input to output by using + the same value for `location`. + + Name conflicts (the same `basename` appearing multiple times in `listing` + or in any entry in `secondaryFiles` in the listing) is a fatal error. +
+ */ +public class DirectoryImpl extends SaveableImpl implements Directory { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private Directory_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#Directory/class
+ *
+ * Must be `Directory` to indicate this object describes a Directory. *
+ */ + + public Directory_class getClass_() { + return this.class_; + } + + private java.util.Optional location; + + /** + * Getter for property https://w3id.org/cwl/cwl#Directory/location
+ *
+ * An IRI that identifies the directory resource. This may be a relative + * reference, in which case it must be resolved using the base IRI of the + * document. The location may refer to a local or remote resource. If + * the `listing` field is not set, the implementation must use the + * location IRI to retrieve directory listing. If an implementation is + * unable to retrieve the directory listing stored at a remote resource (due to + * unsupported protocol, access denied, or other issue) it must signal an + * error. + * + * If the `location` field is not provided, the `listing` field must be + * provided. The implementation must assign a unique identifier for + * the `location` field. + * + * If the `path` field is provided but the `location` field is not, an + * implementation may assign the value of the `path` field to `location`, + * then follow the rules above. + * *
+ */ + + public java.util.Optional getLocation() { + return this.location; + } + + private java.util.Optional path; + + /** + * Getter for property https://w3id.org/cwl/cwl#path
+ *
+ * The local path where the Directory is made available prior to executing a + * CommandLineTool. This must be set by the implementation. This field + * must not be used in any other context. The command line tool being + * executed must be able to access the directory at `path` using the POSIX + * `opendir(2)` syscall. + * + * If the `path` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02) + * (`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`, + * ``, ``, and ``) or characters + * [not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml) + * for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452) + * then implementations may terminate the process with a + * `permanentFailure`. + * *
+ */ + + public java.util.Optional getPath() { + return this.path; + } + + private java.util.Optional basename; + + /** + * Getter for property https://w3id.org/cwl/cwl#Directory/basename
+ *
+ * The base name of the directory, that is, the name of the file without any + * leading directory path. The base name must not contain a slash `/`. + * + * If not provided, the implementation must set this field based on the + * `location` field by taking the final path component after parsing + * `location` as an IRI. If `basename` is provided, it is not required to + * match the value from `location`. + * + * When this file is made available to a CommandLineTool, it must be named + * with `basename`, i.e. the final component of the `path` field must match + * `basename`. + * *
+ */ + + public java.util.Optional getBasename() { + return this.basename; + } + + private java.util.Optional> listing; + + /** + * Getter for property https://w3id.org/cwl/cwl#listing
+ *
+ * List of files or subdirectories contained in this directory. The name + * of each file or subdirectory is determined by the `basename` field of + * each `File` or `Directory` object. It is an error if a `File` shares a + * `basename` with any other entry in `listing`. If two or more + * `Directory` object share the same `basename`, this must be treated as + * equivalent to a single subdirectory with the listings recursively + * merged. + * *
+ */ + + public java.util.Optional> getListing() { + return this.listing; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of DirectoryImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public DirectoryImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("DirectoryImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + Directory_class class_; + try { + class_ = + LoaderInstances + .uri_Directory_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional location; + + if (__doc.containsKey("location")) { + try { + location = + LoaderInstances + .uri_optional_StringInstance_False_False_None_None + .loadField(__doc.get("location"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + location = null; // won't be used but prevents compiler from complaining. + final String __message = "the `location` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + location = null; + } + java.util.Optional path; + + if (__doc.containsKey("path")) { + try { + path = + LoaderInstances + .uri_optional_StringInstance_False_False_None_None + .loadField(__doc.get("path"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + path = null; // won't be used but prevents compiler from complaining. + final String __message = "the `path` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + path = null; + } + java.util.Optional basename; + + if (__doc.containsKey("basename")) { + try { + basename = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("basename"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + basename = null; // won't be used but prevents compiler from complaining. + final String __message = "the `basename` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + basename = null; + } + java.util.Optional> listing; + + if (__doc.containsKey("listing")) { + try { + listing = + LoaderInstances + .optional_array_of_union_of_File_or_Directory + .loadField(__doc.get("listing"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + listing = null; // won't be used but prevents compiler from complaining. + final String __message = "the `listing` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + listing = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (Directory_class) class_; + this.location = (java.util.Optional) location; + this.path = (java.util.Optional) path; + this.basename = (java.util.Optional) basename; + this.listing = (java.util.Optional>) listing; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "location", "path", "basename", "listing"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/Directory_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Directory_class.java new file mode 100644 index 00000000..aa95ad48 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Directory_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum Directory_class { + DIRECTORY("Directory"); + + private static String[] symbols = new String[] {"Directory"}; + private String docVal; + + private Directory_class(final String docVal) { + this.docVal = docVal; + } + + public static Directory_class fromDocumentVal(final String docVal) { + for(final Directory_class val : Directory_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", Directory_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/Dirent.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Dirent.java new file mode 100644 index 00000000..a788e932 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Dirent.java @@ -0,0 +1,123 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#Dirent
This interface is implemented by {@link DirentImpl}
+ Define a file or subdirectory that must be staged to a particular + place prior to executing the command line tool. May be the result + of executing an expression, such as building a configuration file + from a template. + + Usually files are staged within the [designated output directory](#Runtime_environment). + However, under certain circumstances, files may be staged at + arbitrary locations, see discussion for `entryname`. +
+ */ +public interface Dirent extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#entryname
+ *
+ * The "target" name of the file or subdirectory. If `entry` is + * a File or Directory, the `entryname` field overrides the value + * of `basename` of the File or Directory object. + * + * * Required when `entry` evaluates to file contents only + * * Optional when `entry` evaluates to a File or Directory object with a `basename` + * * Invalid when `entry` evaluates to an array of File or Directory objects. + * + * If `entryname` is a relative path, it specifies a name within + * the designated output directory. A relative path starting + * with `../` or that resolves to location above the designated output directory is an error. + * + * If `entryname` is an absolute path (starts with a slash `/`) + * it is an error unless the following conditions are met: + * + * * `DockerRequirement` is present in `requirements` + * * The program is will run inside a software container + * where, from the perspective of the program, the root + * filesystem is not shared with any other user or + * running program. + * + * In this case, and the above conditions are met, then + * `entryname` may specify the absolute path within the container + * where the file or directory must be placed. + * *
+ */ + + Object getEntryname(); + /** + * Getter for property https://w3id.org/cwl/cwl#entry
+ *
+ * If the value is a string literal or an expression which evaluates to a + * string, a new text file must be created with the string as the file contents. + * + * If the value is an expression that evaluates to a `File` or + * `Directory` object, or an array of `File` or `Directory` + * objects, this indicates the referenced file or directory + * should be added to the designated output directory prior to + * executing the tool. + * + * If the value is an expression that evaluates to `null`, + * nothing is added to the designated output directory, the entry + * has no effect. + * + * If the value is an expression that evaluates to some other + * array, number, or object not consisting of `File` or + * `Directory` objects, a new file must be created with the value + * serialized to JSON text as the file contents. The JSON + * serialization behavior should match the behavior of string + * interpolation of [Parameter + * references](#Parameter_references). + * *
+ */ + + Object getEntry(); + /** + * Getter for property https://w3id.org/cwl/cwl#Dirent/writable
+ *
+ * If true, the File or Directory (or array of Files or + * Directories) declared in `entry` must be writable by the tool. + * + * Changes to the file or directory must be isolated and not + * visible by any other CommandLineTool process. This may be + * implemented by making a copy of the original file or + * directory. + * + * Disruptive changes to the referenced file or directory must not + * be allowed unless `InplaceUpdateRequirement.inplaceUpdate` is true. + * + * Default false (files and directories read-only by default). + * + * A directory marked as `writable: true` implies that all files and + * subdirectories are recursively writable as well. + * + * If `writable` is false, the file may be made available using a + * bind mount or file system link to avoid unnecessary copying of + * the input file. Command line tools may receive an error on + * attempting to rename or delete files or directories that are + * not explicitly marked as writable. + * *
+ */ + + java.util.Optional getWritable(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/DirentImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/DirentImpl.java new file mode 100644 index 00000000..cd56eb48 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/DirentImpl.java @@ -0,0 +1,238 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#Dirent
+ Define a file or subdirectory that must be staged to a particular + place prior to executing the command line tool. May be the result + of executing an expression, such as building a configuration file + from a template. + + Usually files are staged within the [designated output directory](#Runtime_environment). + However, under certain circumstances, files may be staged at + arbitrary locations, see discussion for `entryname`. +
+ */ +public class DirentImpl extends SaveableImpl implements Dirent { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private Object entryname; + + /** + * Getter for property https://w3id.org/cwl/cwl#entryname
+ *
+ * The "target" name of the file or subdirectory. If `entry` is + * a File or Directory, the `entryname` field overrides the value + * of `basename` of the File or Directory object. + * + * * Required when `entry` evaluates to file contents only + * * Optional when `entry` evaluates to a File or Directory object with a `basename` + * * Invalid when `entry` evaluates to an array of File or Directory objects. + * + * If `entryname` is a relative path, it specifies a name within + * the designated output directory. A relative path starting + * with `../` or that resolves to location above the designated output directory is an error. + * + * If `entryname` is an absolute path (starts with a slash `/`) + * it is an error unless the following conditions are met: + * + * * `DockerRequirement` is present in `requirements` + * * The program is will run inside a software container + * where, from the perspective of the program, the root + * filesystem is not shared with any other user or + * running program. + * + * In this case, and the above conditions are met, then + * `entryname` may specify the absolute path within the container + * where the file or directory must be placed. + * *
+ */ + + public Object getEntryname() { + return this.entryname; + } + + private Object entry; + + /** + * Getter for property https://w3id.org/cwl/cwl#entry
+ *
+ * If the value is a string literal or an expression which evaluates to a + * string, a new text file must be created with the string as the file contents. + * + * If the value is an expression that evaluates to a `File` or + * `Directory` object, or an array of `File` or `Directory` + * objects, this indicates the referenced file or directory + * should be added to the designated output directory prior to + * executing the tool. + * + * If the value is an expression that evaluates to `null`, + * nothing is added to the designated output directory, the entry + * has no effect. + * + * If the value is an expression that evaluates to some other + * array, number, or object not consisting of `File` or + * `Directory` objects, a new file must be created with the value + * serialized to JSON text as the file contents. The JSON + * serialization behavior should match the behavior of string + * interpolation of [Parameter + * references](#Parameter_references). + * *
+ */ + + public Object getEntry() { + return this.entry; + } + + private java.util.Optional writable; + + /** + * Getter for property https://w3id.org/cwl/cwl#Dirent/writable
+ *
+ * If true, the File or Directory (or array of Files or + * Directories) declared in `entry` must be writable by the tool. + * + * Changes to the file or directory must be isolated and not + * visible by any other CommandLineTool process. This may be + * implemented by making a copy of the original file or + * directory. + * + * Disruptive changes to the referenced file or directory must not + * be allowed unless `InplaceUpdateRequirement.inplaceUpdate` is true. + * + * Default false (files and directories read-only by default). + * + * A directory marked as `writable: true` implies that all files and + * subdirectories are recursively writable as well. + * + * If `writable` is false, the file may be made available using a + * bind mount or file system link to avoid unnecessary copying of + * the input file. Command line tools may receive an error on + * attempting to rename or delete files or directories that are + * not explicitly marked as writable. + * *
+ */ + + public java.util.Optional getWritable() { + return this.writable; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of DirentImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public DirentImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("DirentImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + Object entryname; + + if (__doc.containsKey("entryname")) { + try { + entryname = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_ExpressionLoader + .loadField(__doc.get("entryname"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + entryname = null; // won't be used but prevents compiler from complaining. + final String __message = "the `entryname` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + entryname = null; + } + Object entry; + try { + entry = + LoaderInstances + .union_of_StringInstance_or_ExpressionLoader + .loadField(__doc.get("entry"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + entry = null; // won't be used but prevents compiler from complaining. + final String __message = "the `entry` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional writable; + + if (__doc.containsKey("writable")) { + try { + writable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("writable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + writable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `writable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + writable = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.entryname = (Object) entryname; + this.entry = (Object) entry; + this.writable = (java.util.Optional) writable; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("entryname", "entry", "writable"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/DockerRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/DockerRequirement.java new file mode 100644 index 00000000..de173dd5 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/DockerRequirement.java @@ -0,0 +1,138 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#DockerRequirement
This interface is implemented by {@link DockerRequirementImpl}
+ Indicates that a workflow component should be run in a + [Docker](https://docker.com) or Docker-compatible (such as + [Singularity](https://www.sylabs.io/) and [udocker](https://github.com/indigo-dc/udocker)) container environment and + specifies how to fetch or build the image. + + If a CommandLineTool lists `DockerRequirement` under + `hints` (or `requirements`), it may (or must) be run in the specified Docker + container. + + The platform must first acquire or install the correct Docker image as + specified by `dockerPull`, `dockerImport`, `dockerLoad` or `dockerFile`. + + The platform must execute the tool in the container using `docker run` with + the appropriate Docker image and tool command line. + + The workflow platform may provide input files and the designated output + directory through the use of volume bind mounts. The platform should rewrite + file paths in the input object to correspond to the Docker bind mounted + locations. That is, the platform should rewrite values in the parameter context + such as `runtime.outdir`, `runtime.tmpdir` and others to be valid paths + within the container. The platform must ensure that `runtime.outdir` and + `runtime.tmpdir` are distinct directories. + + When running a tool contained in Docker, the workflow platform must not + assume anything about the contents of the Docker container, such as the + presence or absence of specific software, except to assume that the + generated command line represents a valid command within the runtime + environment of the container. + + A container image may specify an + [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) + and/or + [CMD](https://docs.docker.com/engine/reference/builder/#cmd). + Command line arguments will be appended after all elements of + ENTRYPOINT, and will override all elements specified using CMD (in + other words, CMD is only used when the CommandLineTool definition + produces an empty command line). + + Use of implicit ENTRYPOINT or CMD are discouraged due to reproducibility + concerns of the implicit hidden execution point (For further discussion, see + [https://doi.org/10.12688/f1000research.15140.1](https://doi.org/10.12688/f1000research.15140.1)). Portable + CommandLineTool wrappers in which use of a container is optional must not rely on ENTRYPOINT or CMD. + CommandLineTools which do rely on ENTRYPOINT or CMD must list `DockerRequirement` in the + `requirements` section. + + ## Interaction with other requirements + + If [EnvVarRequirement](#EnvVarRequirement) is specified alongside a + DockerRequirement, the environment variables must be provided to Docker + using `--env` or `--env-file` and interact with the container's preexisting + environment as defined by Docker. +
+ */ +public interface DockerRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/class
+ *
+ * Always 'DockerRequirement' *
+ */ + + DockerRequirement_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerPull
+ *
+ * Specify a Docker image to retrieve using `docker pull`. Can contain the + * immutable digest to ensure an exact container is used: + * `dockerPull: ubuntu@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2` + * *
+ */ + + java.util.Optional getDockerPull(); + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerLoad
+ *
+ * Specify an HTTP URL from which to download a Docker image using `docker load`. *
+ */ + + java.util.Optional getDockerLoad(); + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerFile
+ *
+ * Supply the contents of a Dockerfile which will be built using `docker build`. *
+ */ + + java.util.Optional getDockerFile(); + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerImport
+ *
+ * Provide HTTP URL to download and gunzip a Docker images using `docker import. *
+ */ + + java.util.Optional getDockerImport(); + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerImageId
+ *
+ * The image id that will be used for `docker run`. May be a + * human-readable image name or the image identifier hash. May be skipped + * if `dockerPull` is specified, in which case the `dockerPull` image id + * must be used. + * *
+ */ + + java.util.Optional getDockerImageId(); + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerOutputDirectory
+ *
+ * Set the designated output directory to a specific location inside the + * Docker container. + * *
+ */ + + java.util.Optional getDockerOutputDirectory(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/DockerRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/DockerRequirementImpl.java new file mode 100644 index 00000000..6ad9754b --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/DockerRequirementImpl.java @@ -0,0 +1,345 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#DockerRequirement
+ Indicates that a workflow component should be run in a + [Docker](https://docker.com) or Docker-compatible (such as + [Singularity](https://www.sylabs.io/) and [udocker](https://github.com/indigo-dc/udocker)) container environment and + specifies how to fetch or build the image. + + If a CommandLineTool lists `DockerRequirement` under + `hints` (or `requirements`), it may (or must) be run in the specified Docker + container. + + The platform must first acquire or install the correct Docker image as + specified by `dockerPull`, `dockerImport`, `dockerLoad` or `dockerFile`. + + The platform must execute the tool in the container using `docker run` with + the appropriate Docker image and tool command line. + + The workflow platform may provide input files and the designated output + directory through the use of volume bind mounts. The platform should rewrite + file paths in the input object to correspond to the Docker bind mounted + locations. That is, the platform should rewrite values in the parameter context + such as `runtime.outdir`, `runtime.tmpdir` and others to be valid paths + within the container. The platform must ensure that `runtime.outdir` and + `runtime.tmpdir` are distinct directories. + + When running a tool contained in Docker, the workflow platform must not + assume anything about the contents of the Docker container, such as the + presence or absence of specific software, except to assume that the + generated command line represents a valid command within the runtime + environment of the container. + + A container image may specify an + [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) + and/or + [CMD](https://docs.docker.com/engine/reference/builder/#cmd). + Command line arguments will be appended after all elements of + ENTRYPOINT, and will override all elements specified using CMD (in + other words, CMD is only used when the CommandLineTool definition + produces an empty command line). + + Use of implicit ENTRYPOINT or CMD are discouraged due to reproducibility + concerns of the implicit hidden execution point (For further discussion, see + [https://doi.org/10.12688/f1000research.15140.1](https://doi.org/10.12688/f1000research.15140.1)). Portable + CommandLineTool wrappers in which use of a container is optional must not rely on ENTRYPOINT or CMD. + CommandLineTools which do rely on ENTRYPOINT or CMD must list `DockerRequirement` in the + `requirements` section. + + ## Interaction with other requirements + + If [EnvVarRequirement](#EnvVarRequirement) is specified alongside a + DockerRequirement, the environment variables must be provided to Docker + using `--env` or `--env-file` and interact with the container's preexisting + environment as defined by Docker. +
+ */ +public class DockerRequirementImpl extends SaveableImpl implements DockerRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private DockerRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/class
+ *
+ * Always 'DockerRequirement' *
+ */ + + public DockerRequirement_class getClass_() { + return this.class_; + } + + private java.util.Optional dockerPull; + + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerPull
+ *
+ * Specify a Docker image to retrieve using `docker pull`. Can contain the + * immutable digest to ensure an exact container is used: + * `dockerPull: ubuntu@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2` + * *
+ */ + + public java.util.Optional getDockerPull() { + return this.dockerPull; + } + + private java.util.Optional dockerLoad; + + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerLoad
+ *
+ * Specify an HTTP URL from which to download a Docker image using `docker load`. *
+ */ + + public java.util.Optional getDockerLoad() { + return this.dockerLoad; + } + + private java.util.Optional dockerFile; + + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerFile
+ *
+ * Supply the contents of a Dockerfile which will be built using `docker build`. *
+ */ + + public java.util.Optional getDockerFile() { + return this.dockerFile; + } + + private java.util.Optional dockerImport; + + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerImport
+ *
+ * Provide HTTP URL to download and gunzip a Docker images using `docker import. *
+ */ + + public java.util.Optional getDockerImport() { + return this.dockerImport; + } + + private java.util.Optional dockerImageId; + + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerImageId
+ *
+ * The image id that will be used for `docker run`. May be a + * human-readable image name or the image identifier hash. May be skipped + * if `dockerPull` is specified, in which case the `dockerPull` image id + * must be used. + * *
+ */ + + public java.util.Optional getDockerImageId() { + return this.dockerImageId; + } + + private java.util.Optional dockerOutputDirectory; + + /** + * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerOutputDirectory
+ *
+ * Set the designated output directory to a specific location inside the + * Docker container. + * *
+ */ + + public java.util.Optional getDockerOutputDirectory() { + return this.dockerOutputDirectory; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of DockerRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public DockerRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("DockerRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + DockerRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_DockerRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional dockerPull; + + if (__doc.containsKey("dockerPull")) { + try { + dockerPull = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("dockerPull"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + dockerPull = null; // won't be used but prevents compiler from complaining. + final String __message = "the `dockerPull` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + dockerPull = null; + } + java.util.Optional dockerLoad; + + if (__doc.containsKey("dockerLoad")) { + try { + dockerLoad = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("dockerLoad"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + dockerLoad = null; // won't be used but prevents compiler from complaining. + final String __message = "the `dockerLoad` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + dockerLoad = null; + } + java.util.Optional dockerFile; + + if (__doc.containsKey("dockerFile")) { + try { + dockerFile = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("dockerFile"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + dockerFile = null; // won't be used but prevents compiler from complaining. + final String __message = "the `dockerFile` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + dockerFile = null; + } + java.util.Optional dockerImport; + + if (__doc.containsKey("dockerImport")) { + try { + dockerImport = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("dockerImport"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + dockerImport = null; // won't be used but prevents compiler from complaining. + final String __message = "the `dockerImport` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + dockerImport = null; + } + java.util.Optional dockerImageId; + + if (__doc.containsKey("dockerImageId")) { + try { + dockerImageId = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("dockerImageId"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + dockerImageId = null; // won't be used but prevents compiler from complaining. + final String __message = "the `dockerImageId` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + dockerImageId = null; + } + java.util.Optional dockerOutputDirectory; + + if (__doc.containsKey("dockerOutputDirectory")) { + try { + dockerOutputDirectory = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("dockerOutputDirectory"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + dockerOutputDirectory = null; // won't be used but prevents compiler from complaining. + final String __message = "the `dockerOutputDirectory` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + dockerOutputDirectory = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (DockerRequirement_class) class_; + this.dockerPull = (java.util.Optional) dockerPull; + this.dockerLoad = (java.util.Optional) dockerLoad; + this.dockerFile = (java.util.Optional) dockerFile; + this.dockerImport = (java.util.Optional) dockerImport; + this.dockerImageId = (java.util.Optional) dockerImageId; + this.dockerOutputDirectory = (java.util.Optional) dockerOutputDirectory; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "dockerPull", "dockerLoad", "dockerFile", "dockerImport", "dockerImageId", "dockerOutputDirectory"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/DockerRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/DockerRequirement_class.java new file mode 100644 index 00000000..37761629 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/DockerRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum DockerRequirement_class { + DOCKERREQUIREMENT("DockerRequirement"); + + private static String[] symbols = new String[] {"DockerRequirement"}; + private String docVal; + + private DockerRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static DockerRequirement_class fromDocumentVal(final String docVal) { + for(final DockerRequirement_class val : DockerRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", DockerRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/Documented.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Documented.java new file mode 100644 index 00000000..9980e551 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Documented.java @@ -0,0 +1,35 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/salad#Documented
+ */ +public interface Documented extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnumSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnumSchema.java new file mode 100644 index 00000000..9daf2f80 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnumSchema.java @@ -0,0 +1,50 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/salad#EnumSchema
This interface is implemented by {@link EnumSchemaImpl}
+ Define an enumerated type. +
+ */ +public interface EnumSchema extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#EnumSchema/name
+ + */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + java.util.List getSymbols(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + Enum_name getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnumSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnumSchemaImpl.java new file mode 100644 index 00000000..1945eefd --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnumSchemaImpl.java @@ -0,0 +1,173 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/salad#EnumSchema
+ Define an enumerated type. +
+ */ +public class EnumSchemaImpl extends SaveableImpl implements EnumSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/salad#EnumSchema/name
+ + */ + + public java.util.Optional getName() { + return this.name; + } + + private java.util.List symbols; + + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + public java.util.List getSymbols() { + return this.symbols; + } + + private Enum_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + public Enum_name getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of EnumSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public EnumSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("EnumSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + java.util.List symbols; + try { + symbols = + LoaderInstances + .uri_array_of_StringInstance_True_False_None_None + .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + symbols = null; // won't be used but prevents compiler from complaining. + final String __message = "the `symbols` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Enum_name type; + try { + type = + LoaderInstances + .typedsl_Enum_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.name = (java.util.Optional) name; + this.symbols = (java.util.List) symbols; + this.type = (Enum_name) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("name", "symbols", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/Enum_name.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Enum_name.java new file mode 100644 index 00000000..eb814c9f --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Enum_name.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum Enum_name { + ENUM("enum"); + + private static String[] symbols = new String[] {"enum"}; + private String docVal; + + private Enum_name(final String docVal) { + this.docVal = docVal; + } + + public static Enum_name fromDocumentVal(final String docVal) { + for(final Enum_name val : Enum_name.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", Enum_name.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnvVarRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnvVarRequirement.java new file mode 100644 index 00000000..8e1e917f --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnvVarRequirement.java @@ -0,0 +1,45 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#EnvVarRequirement
This interface is implemented by {@link EnvVarRequirementImpl}
+ Define a list of environment variables which will be set in the + execution environment of the tool. See `EnvironmentDef` for details. +
+ */ +public interface EnvVarRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#EnvVarRequirement/class
+ *
+ * Always 'EnvVarRequirement' *
+ */ + + EnvVarRequirement_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#EnvVarRequirement/envDef
+ *
+ * The list of environment variables. *
+ */ + + java.util.List getEnvDef(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnvVarRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnvVarRequirementImpl.java new file mode 100644 index 00000000..086f4cd8 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnvVarRequirementImpl.java @@ -0,0 +1,131 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#EnvVarRequirement
+ Define a list of environment variables which will be set in the + execution environment of the tool. See `EnvironmentDef` for details. +
+ */ +public class EnvVarRequirementImpl extends SaveableImpl implements EnvVarRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private EnvVarRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#EnvVarRequirement/class
+ *
+ * Always 'EnvVarRequirement' *
+ */ + + public EnvVarRequirement_class getClass_() { + return this.class_; + } + + private java.util.List envDef; + + /** + * Getter for property https://w3id.org/cwl/cwl#EnvVarRequirement/envDef
+ *
+ * The list of environment variables. *
+ */ + + public java.util.List getEnvDef() { + return this.envDef; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of EnvVarRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public EnvVarRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("EnvVarRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + EnvVarRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_EnvVarRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.List envDef; + try { + envDef = + LoaderInstances + .idmap_envDef_array_of_EnvironmentDef + .loadField(__doc.get("envDef"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + envDef = null; // won't be used but prevents compiler from complaining. + final String __message = "the `envDef` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (EnvVarRequirement_class) class_; + this.envDef = (java.util.List) envDef; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "envDef"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnvVarRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnvVarRequirement_class.java new file mode 100644 index 00000000..b02c8af1 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnvVarRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum EnvVarRequirement_class { + ENVVARREQUIREMENT("EnvVarRequirement"); + + private static String[] symbols = new String[] {"EnvVarRequirement"}; + private String docVal; + + private EnvVarRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static EnvVarRequirement_class fromDocumentVal(final String docVal) { + for(final EnvVarRequirement_class val : EnvVarRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", EnvVarRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnvironmentDef.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnvironmentDef.java new file mode 100644 index 00000000..309578d4 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnvironmentDef.java @@ -0,0 +1,46 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#EnvironmentDef
This interface is implemented by {@link EnvironmentDefImpl}
+ Define an environment variable that will be set in the runtime environment + by the workflow platform when executing the command line tool. May be the + result of executing an expression, such as getting a parameter from input. +
+ */ +public interface EnvironmentDef extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#EnvironmentDef/envName
+ *
+ * The environment variable name *
+ */ + + String getEnvName(); + /** + * Getter for property https://w3id.org/cwl/cwl#EnvironmentDef/envValue
+ *
+ * The environment variable value *
+ */ + + Object getEnvValue(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnvironmentDefImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnvironmentDefImpl.java new file mode 100644 index 00000000..1bb4af69 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/EnvironmentDefImpl.java @@ -0,0 +1,132 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#EnvironmentDef
+ Define an environment variable that will be set in the runtime environment + by the workflow platform when executing the command line tool. May be the + result of executing an expression, such as getting a parameter from input. +
+ */ +public class EnvironmentDefImpl extends SaveableImpl implements EnvironmentDef { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private String envName; + + /** + * Getter for property https://w3id.org/cwl/cwl#EnvironmentDef/envName
+ *
+ * The environment variable name *
+ */ + + public String getEnvName() { + return this.envName; + } + + private Object envValue; + + /** + * Getter for property https://w3id.org/cwl/cwl#EnvironmentDef/envValue
+ *
+ * The environment variable value *
+ */ + + public Object getEnvValue() { + return this.envValue; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of EnvironmentDefImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public EnvironmentDefImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("EnvironmentDefImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + String envName; + try { + envName = + LoaderInstances + .StringInstance + .loadField(__doc.get("envName"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + envName = null; // won't be used but prevents compiler from complaining. + final String __message = "the `envName` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Object envValue; + try { + envValue = + LoaderInstances + .union_of_StringInstance_or_ExpressionLoader + .loadField(__doc.get("envValue"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + envValue = null; // won't be used but prevents compiler from complaining. + final String __message = "the `envValue` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.envName = (String) envName; + this.envValue = (Object) envValue; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("envName", "envValue"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/Expression.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Expression.java new file mode 100644 index 00000000..d2a1f251 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Expression.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum Expression { + EXPRESSIONPLACEHOLDER("ExpressionPlaceholder"); + + private static String[] symbols = new String[] {"ExpressionPlaceholder"}; + private String docVal; + + private Expression(final String docVal) { + this.docVal = docVal; + } + + public static Expression fromDocumentVal(final String docVal) { + for(final Expression val : Expression.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", Expression.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionTool.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionTool.java new file mode 100644 index 00000000..c0c52555 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionTool.java @@ -0,0 +1,158 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#ExpressionTool
This interface is implemented by {@link ExpressionToolImpl}
+ An ExpressionTool is a type of Process object that can be run by itself + or as a Workflow step. It executes a pure Javascript expression that has + access to the same input parameters as a workflow. It is meant to be used + sparingly as a way to isolate complex Javascript expressions that need to + operate on input data and produce some result; perhaps just a + rearrangement of the inputs. No Docker software container is required + or allowed. +
+ */ +public interface ExpressionTool extends Process, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Process/id
+ *
+ * The unique identifier for this object. + * + * Only useful for `$graph` at `Process` level. Should not be exposed + * to users in graphical or terminal user interfaces. + * *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#ExpressionTool/class
+ + */ + + ExpressionTool_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#inputs
+ *
+ * Defines the input parameters of the process. The process is ready to + * run when all required input parameters are associated with concrete + * values. Input parameters include a schema for each parameter which is + * used to validate the input object. It may also be used to build a user + * interface for constructing the input object. + * + * When accepting an input object, all input parameters must have a value. + * If an input parameter is missing from the input object, it must be + * assigned a value of `null` (or the value of `default` for that + * parameter, if provided) for the purposes of validation and evaluation + * of expressions. + * *
+ */ + + java.util.List getInputs(); + /** + * Getter for property https://w3id.org/cwl/cwl#outputs
+ *
+ * Defines the parameters representing the output of the process. May be + * used to generate and/or validate the output object. + * *
+ */ + + java.util.List getOutputs(); + /** + * Getter for property https://w3id.org/cwl/cwl#requirements
+ *
+ * Declares requirements that apply to either the runtime environment or the + * workflow engine that must be met in order to execute this process. If + * an implementation cannot satisfy all requirements, or a requirement is + * listed which is not recognized by the implementation, it is a fatal + * error and the implementation must not attempt to run the process, + * unless overridden at user option. + * *
+ */ + + java.util.Optional> getRequirements(); + /** + * Getter for property https://w3id.org/cwl/cwl#hints
+ *
+ * Declares hints applying to either the runtime environment or the + * workflow engine that may be helpful in executing this process. It is + * not an error if an implementation cannot satisfy all hints, however + * the implementation may report a warning. + * *
+ */ + + java.util.Optional> getHints(); + /** + * Getter for property https://w3id.org/cwl/cwl#cwlVersion
+ *
+ * CWL document version. Always required at the document root. Not + * required for a Process embedded inside another Process. + * *
+ */ + + java.util.Optional getCwlVersion(); + /** + * Getter for property https://w3id.org/cwl/cwl#Process/intent
+ *
+ * An identifier for the type of computational operation, of this Process. + * Especially useful for [`Operation`](Workflow.html#Operation), but can also be used for + * [`CommandLineTool`](CommandLineTool.html#CommandLineTool), + * [`Workflow`](Workflow.html#Workflow), or [ExpressionTool](Workflow.html#ExpressionTool). + * + * If provided, then this must be an IRI of a concept node that + * represents the type of operation, preferably defined within an ontology. + * + * For example, in the domain of bioinformatics, one can use an IRI from + * the EDAM Ontology's [Operation concept nodes](http://edamontology.org/operation_0004), + * like [Alignment](http://edamontology.org/operation_2928), + * or [Clustering](http://edamontology.org/operation_3432); or a more + * specific Operation concept like + * [Split read mapping](http://edamontology.org/operation_3199). + * *
+ */ + + java.util.Optional> getIntent(); + /** + * Getter for property https://w3id.org/cwl/cwl#ExpressionTool/expression
+ *
+ * The expression to execute. The expression must return a plain + * Javascript object which matches the output parameters of the + * ExpressionTool. + * *
+ */ + + String getExpression(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionToolImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionToolImpl.java new file mode 100644 index 00000000..595f1119 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionToolImpl.java @@ -0,0 +1,453 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#ExpressionTool
+ An ExpressionTool is a type of Process object that can be run by itself + or as a Workflow step. It executes a pure Javascript expression that has + access to the same input parameters as a workflow. It is meant to be used + sparingly as a way to isolate complex Javascript expressions that need to + operate on input data and produce some result; perhaps just a + rearrangement of the inputs. No Docker software container is required + or allowed. +
+ */ +public class ExpressionToolImpl extends SaveableImpl implements ExpressionTool { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Process/id
+ *
+ * The unique identifier for this object. + * + * Only useful for `$graph` at `Process` level. Should not be exposed + * to users in graphical or terminal user interfaces. + * *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private ExpressionTool_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#ExpressionTool/class
+ + */ + + public ExpressionTool_class getClass_() { + return this.class_; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private java.util.List inputs; + + /** + * Getter for property https://w3id.org/cwl/cwl#inputs
+ *
+ * Defines the input parameters of the process. The process is ready to + * run when all required input parameters are associated with concrete + * values. Input parameters include a schema for each parameter which is + * used to validate the input object. It may also be used to build a user + * interface for constructing the input object. + * + * When accepting an input object, all input parameters must have a value. + * If an input parameter is missing from the input object, it must be + * assigned a value of `null` (or the value of `default` for that + * parameter, if provided) for the purposes of validation and evaluation + * of expressions. + * *
+ */ + + public java.util.List getInputs() { + return this.inputs; + } + + private java.util.List outputs; + + /** + * Getter for property https://w3id.org/cwl/cwl#outputs
+ *
+ * Defines the parameters representing the output of the process. May be + * used to generate and/or validate the output object. + * *
+ */ + + public java.util.List getOutputs() { + return this.outputs; + } + + private java.util.Optional> requirements; + + /** + * Getter for property https://w3id.org/cwl/cwl#requirements
+ *
+ * Declares requirements that apply to either the runtime environment or the + * workflow engine that must be met in order to execute this process. If + * an implementation cannot satisfy all requirements, or a requirement is + * listed which is not recognized by the implementation, it is a fatal + * error and the implementation must not attempt to run the process, + * unless overridden at user option. + * *
+ */ + + public java.util.Optional> getRequirements() { + return this.requirements; + } + + private java.util.Optional> hints; + + /** + * Getter for property https://w3id.org/cwl/cwl#hints
+ *
+ * Declares hints applying to either the runtime environment or the + * workflow engine that may be helpful in executing this process. It is + * not an error if an implementation cannot satisfy all hints, however + * the implementation may report a warning. + * *
+ */ + + public java.util.Optional> getHints() { + return this.hints; + } + + private java.util.Optional cwlVersion; + + /** + * Getter for property https://w3id.org/cwl/cwl#cwlVersion
+ *
+ * CWL document version. Always required at the document root. Not + * required for a Process embedded inside another Process. + * *
+ */ + + public java.util.Optional getCwlVersion() { + return this.cwlVersion; + } + + private java.util.Optional> intent; + + /** + * Getter for property https://w3id.org/cwl/cwl#Process/intent
+ *
+ * An identifier for the type of computational operation, of this Process. + * Especially useful for [`Operation`](Workflow.html#Operation), but can also be used for + * [`CommandLineTool`](CommandLineTool.html#CommandLineTool), + * [`Workflow`](Workflow.html#Workflow), or [ExpressionTool](Workflow.html#ExpressionTool). + * + * If provided, then this must be an IRI of a concept node that + * represents the type of operation, preferably defined within an ontology. + * + * For example, in the domain of bioinformatics, one can use an IRI from + * the EDAM Ontology's [Operation concept nodes](http://edamontology.org/operation_0004), + * like [Alignment](http://edamontology.org/operation_2928), + * or [Clustering](http://edamontology.org/operation_3432); or a more + * specific Operation concept like + * [Split read mapping](http://edamontology.org/operation_3199). + * *
+ */ + + public java.util.Optional> getIntent() { + return this.intent; + } + + private String expression; + + /** + * Getter for property https://w3id.org/cwl/cwl#ExpressionTool/expression
+ *
+ * The expression to execute. The expression must return a plain + * Javascript object which matches the output parameters of the + * ExpressionTool. + * *
+ */ + + public String getExpression() { + return this.expression; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of ExpressionToolImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public ExpressionToolImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("ExpressionToolImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + ExpressionTool_class class_; + try { + class_ = + LoaderInstances + .uri_ExpressionTool_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + java.util.List inputs; + try { + inputs = + LoaderInstances + .idmap_inputs_array_of_WorkflowInputParameter + .loadField(__doc.get("inputs"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputs = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputs` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.List outputs; + try { + outputs = + LoaderInstances + .idmap_outputs_array_of_ExpressionToolOutputParameter + .loadField(__doc.get("outputs"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + outputs = null; // won't be used but prevents compiler from complaining. + final String __message = "the `outputs` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional> requirements; + + if (__doc.containsKey("requirements")) { + try { + requirements = + LoaderInstances + .idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement + .loadField(__doc.get("requirements"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + requirements = null; // won't be used but prevents compiler from complaining. + final String __message = "the `requirements` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + requirements = null; + } + java.util.Optional> hints; + + if (__doc.containsKey("hints")) { + try { + hints = + LoaderInstances + .idmap_hints_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance + .loadField(__doc.get("hints"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + hints = null; // won't be used but prevents compiler from complaining. + final String __message = "the `hints` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + hints = null; + } + java.util.Optional cwlVersion; + + if (__doc.containsKey("cwlVersion")) { + try { + cwlVersion = + LoaderInstances + .uri_optional_CWLVersion_False_True_None_None + .loadField(__doc.get("cwlVersion"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + cwlVersion = null; // won't be used but prevents compiler from complaining. + final String __message = "the `cwlVersion` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + cwlVersion = null; + } + java.util.Optional> intent; + + if (__doc.containsKey("intent")) { + try { + intent = + LoaderInstances + .uri_optional_array_of_StringInstance_True_False_None_None + .loadField(__doc.get("intent"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + intent = null; // won't be used but prevents compiler from complaining. + final String __message = "the `intent` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + intent = null; + } + String expression; + try { + expression = + LoaderInstances + .ExpressionLoader + .loadField(__doc.get("expression"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + expression = null; // won't be used but prevents compiler from complaining. + final String __message = "the `expression` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.id = (java.util.Optional) id; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.inputs = (java.util.List) inputs; + this.outputs = (java.util.List) outputs; + this.requirements = (java.util.Optional>) requirements; + this.hints = (java.util.Optional>) hints; + this.cwlVersion = (java.util.Optional) cwlVersion; + this.intent = (java.util.Optional>) intent; + this.class_ = (ExpressionTool_class) class_; + this.expression = (String) expression; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("id", "label", "doc", "inputs", "outputs", "requirements", "hints", "cwlVersion", "intent", "class", "expression"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionToolOutputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionToolOutputParameter.java new file mode 100644 index 00000000..306985d9 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionToolOutputParameter.java @@ -0,0 +1,131 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#ExpressionToolOutputParameter
This interface is implemented by {@link ExpressionToolOutputParameterImpl}
+ */ +public interface ExpressionToolOutputParameter extends OutputParameter, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + Object getFormat(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * Note that this field just acts as a hint, as the outputs of an + * ExpressionTool process are always considered valid. + * *
+ */ + + Object getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionToolOutputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionToolOutputParameterImpl.java new file mode 100644 index 00000000..1e3b20cb --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionToolOutputParameterImpl.java @@ -0,0 +1,352 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#ExpressionToolOutputParameter
+ */ +public class ExpressionToolOutputParameterImpl extends SaveableImpl implements ExpressionToolOutputParameter { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional streamable; + + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + public java.util.Optional getStreamable() { + return this.streamable; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + public Object getFormat() { + return this.format; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * Note that this field just acts as a hint, as the outputs of an + * ExpressionTool process are always considered valid. + * *
+ */ + + public Object getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of ExpressionToolOutputParameterImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public ExpressionToolOutputParameterImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("ExpressionToolOutputParameterImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional streamable; + + if (__doc.containsKey("streamable")) { + try { + streamable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + streamable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `streamable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + streamable = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + Object type; + try { + type = + LoaderInstances + .typedsl_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.label = (java.util.Optional) label; + this.secondaryFiles = (Object) secondaryFiles; + this.streamable = (java.util.Optional) streamable; + this.doc = (Object) doc; + this.id = (java.util.Optional) id; + this.format = (Object) format; + this.type = (Object) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("label", "secondaryFiles", "streamable", "doc", "id", "format", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionTool_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionTool_class.java new file mode 100644 index 00000000..76c00adc --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ExpressionTool_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum ExpressionTool_class { + EXPRESSIONTOOL("ExpressionTool"); + + private static String[] symbols = new String[] {"ExpressionTool"}; + private String docVal; + + private ExpressionTool_class(final String docVal) { + this.docVal = docVal; + } + + public static ExpressionTool_class fromDocumentVal(final String docVal) { + for(final ExpressionTool_class val : ExpressionTool_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", ExpressionTool_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/FieldBase.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/FieldBase.java new file mode 100644 index 00000000..76852b5e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/FieldBase.java @@ -0,0 +1,96 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#FieldBase
+ */ +public interface FieldBase extends Labeled, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/File.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/File.java new file mode 100644 index 00000000..d7ba075e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/File.java @@ -0,0 +1,289 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#File
This interface is implemented by {@link FileImpl}
+ Represents a file (or group of files when `secondaryFiles` is provided) that + will be accessible by tools using standard POSIX file system call API such as + open(2) and read(2). + + Files are represented as objects with `class` of `File`. File objects have + a number of properties that provide metadata about the file. + + The `location` property of a File is a IRI that uniquely identifies the + file. Implementations must support the `file://` IRI scheme and may support + other schemes such as `http://` and `https://`. The value of `location` may also be a + relative reference, in which case it must be resolved relative to the IRI + of the document it appears in. Alternately to `location`, implementations + must also accept the `path` property on File, which must be a filesystem + path available on the same host as the CWL runner (for inputs) or the + runtime environment of a command line tool execution (for command line tool + outputs). + + If no `location` or `path` is specified, a file object must specify + `contents` with the UTF-8 text content of the file. This is a "file + literal". File literals do not correspond to external resources, but are + created on disk with `contents` with when needed for executing a tool. + Where appropriate, expressions can return file literals to define new files + on a runtime. The maximum size of `contents` is 64 kilobytes. + + The `basename` property defines the filename on disk where the file is + staged. This may differ from the resource name. If not provided, + `basename` must be computed from the last path part of `location` and made + available to expressions. + + The `secondaryFiles` property is a list of File or Directory objects that + must be staged in the same directory as the primary file. It is an error + for file names to be duplicated in `secondaryFiles`. + + The `size` property is the size in bytes of the File. It must be computed + from the resource and made available to expressions. The `checksum` field + contains a cryptographic hash of the file content for use it verifying file + contents. Implementations may, at user option, enable or disable + computation of the `checksum` field for performance or other reasons. + However, the ability to compute output checksums is required to pass the + CWL conformance test suite. + + When executing a CommandLineTool, the files and secondary files may be + staged to an arbitrary directory, but must use the value of `basename` for + the filename. The `path` property must be file path in the context of the + tool execution runtime (local to the compute node, or within the executing + container). All computed properties should be available to expressions. + File literals also must be staged and `path` must be set. + + When collecting CommandLineTool outputs, `glob` matching returns file paths + (with the `path` property) and the derived properties. This can all be + modified by `outputEval`. Alternately, if the file `cwl.output.json` is + present in the output, `outputBinding` is ignored. + + File objects in the output must provide either a `location` IRI or a `path` + property in the context of the tool execution runtime (local to the compute + node, or within the executing container). + + When evaluating an ExpressionTool, file objects must be referenced via + `location` (the expression tool does not have access to files on disk so + `path` is meaningless) or as file literals. It is legal to return a file + object with an existing `location` but a different `basename`. The + `loadContents` field of ExpressionTool inputs behaves the same as on + CommandLineTool inputs, however it is not meaningful on the outputs. + + An ExpressionTool may forward file references from input to output by using + the same value for `location`. +
+ */ +public interface File extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#File/class
+ *
+ * Must be `File` to indicate this object describes a file. *
+ */ + + File_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#File/location
+ *
+ * An IRI that identifies the file resource. This may be a relative + * reference, in which case it must be resolved using the base IRI of the + * document. The location may refer to a local or remote resource; the + * implementation must use the IRI to retrieve file content. If an + * implementation is unable to retrieve the file content stored at a + * remote resource (due to unsupported protocol, access denied, or other + * issue) it must signal an error. + * + * If the `location` field is not provided, the `contents` field must be + * provided. The implementation must assign a unique identifier for + * the `location` field. + * + * If the `path` field is provided but the `location` field is not, an + * implementation may assign the value of the `path` field to `location`, + * then follow the rules above. + * *
+ */ + + java.util.Optional getLocation(); + /** + * Getter for property https://w3id.org/cwl/cwl#path
+ *
+ * The local host path where the File is available when a CommandLineTool is + * executed. This field must be set by the implementation. The final + * path component must match the value of `basename`. This field + * must not be used in any other context. The command line tool being + * executed must be able to access the file at `path` using the POSIX + * `open(2)` syscall. + * + * As a special case, if the `path` field is provided but the `location` + * field is not, an implementation may assign the value of the `path` + * field to `location`, and remove the `path` field. + * + * If the `path` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02) + * (`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`, + * ``, ``, and ``) or characters + * [not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml) + * for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452) + * then implementations may terminate the process with a + * `permanentFailure`. + * *
+ */ + + java.util.Optional getPath(); + /** + * Getter for property https://w3id.org/cwl/cwl#File/basename
+ *
+ * The base name of the file, that is, the name of the file without any + * leading directory path. The base name must not contain a slash `/`. + * + * If not provided, the implementation must set this field based on the + * `location` field by taking the final path component after parsing + * `location` as an IRI. If `basename` is provided, it is not required to + * match the value from `location`. + * + * When this file is made available to a CommandLineTool, it must be named + * with `basename`, i.e. the final component of the `path` field must match + * `basename`. + * *
+ */ + + java.util.Optional getBasename(); + /** + * Getter for property https://w3id.org/cwl/cwl#File/dirname
+ *
+ * The name of the directory containing file, that is, the path leading up + * to the final slash in the path such that `dirname + '/' + basename == + * path`. + * + * The implementation must set this field based on the value of `path` + * prior to evaluating parameter references or expressions in a + * CommandLineTool document. This field must not be used in any other + * context. + * *
+ */ + + java.util.Optional getDirname(); + /** + * Getter for property https://w3id.org/cwl/cwl#File/nameroot
+ *
+ * The basename root such that `nameroot + nameext == basename`, and + * `nameext` is empty or begins with a period and contains at most one + * period. For the purposes of path splitting leading periods on the + * basename are ignored; a basename of `.cshrc` will have a nameroot of + * `.cshrc`. + * + * The implementation must set this field automatically based on the value + * of `basename` prior to evaluating parameter references or expressions. + * *
+ */ + + java.util.Optional getNameroot(); + /** + * Getter for property https://w3id.org/cwl/cwl#File/nameext
+ *
+ * The basename extension such that `nameroot + nameext == basename`, and + * `nameext` is empty or begins with a period and contains at most one + * period. Leading periods on the basename are ignored; a basename of + * `.cshrc` will have an empty `nameext`. + * + * The implementation must set this field automatically based on the value + * of `basename` prior to evaluating parameter references or expressions. + * *
+ */ + + java.util.Optional getNameext(); + /** + * Getter for property https://w3id.org/cwl/cwl#File/checksum
+ *
+ * Optional hash code for validating file integrity. Currently, must be in the form + * "sha1$ + hexadecimal string" using the SHA-1 algorithm. + * *
+ */ + + java.util.Optional getChecksum(); + /** + * Getter for property https://w3id.org/cwl/cwl#File/size
+ *
+ * Optional file size (in bytes) *
+ */ + + Object getSize(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * A list of additional files or directories that are associated with the + * primary file and must be transferred alongside the primary file. + * Examples include indexes of the primary file, or external references + * which must be included when loading primary document. A file object + * listed in `secondaryFiles` may itself include `secondaryFiles` for + * which the same rules apply. + * *
+ */ + + java.util.Optional> getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * The format of the file: this must be an IRI of a concept node that + * represents the file format, preferably defined within an ontology. + * If no ontology is available, file formats may be tested by exact match. + * + * Reasoning about format compatibility must be done by checking that an + * input file format is the same, `owl:equivalentClass` or + * `rdfs:subClassOf` the format required by the input parameter. + * `owl:equivalentClass` is transitive with `rdfs:subClassOf`, e.g. if + * ` owl:equivalentClass ` and ` owl:subclassOf ` then infer + * ` owl:subclassOf `. + * + * File format ontologies may be provided in the "$schemas" metadata at the + * root of the document. If no ontologies are specified in `$schemas`, the + * runtime may perform exact file format matches. + * *
+ */ + + java.util.Optional getFormat(); + /** + * Getter for property https://w3id.org/cwl/cwl#File/contents
+ *
+ * File contents literal. + * + * If neither `location` nor `path` is provided, `contents` must be + * non-null. The implementation must assign a unique identifier for the + * `location` field. When the file is staged as input to CommandLineTool, + * the value of `contents` must be written to a file. + * + * If `contents` is set as a result of a Javascript expression, + * an `entry` in `InitialWorkDirRequirement`, or read in from + * `cwl.output.json`, there is no specified upper limit on the + * size of `contents`. Implementations may have practical limits + * on the size of `contents` based on memory and storage + * available to the workflow runner or other factors. + * + * If the `loadContents` field of an `InputParameter` or + * `OutputParameter` is true, and the input or output File object + * `location` is valid, the file must be a UTF-8 text file 64 KiB + * or smaller, and the implementation must read the entire + * contents of the file and place it in the `contents` field. If + * the size of the file is greater than 64 KiB, the + * implementation must raise a fatal error. + * *
+ */ + + java.util.Optional getContents(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/FileImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/FileImpl.java new file mode 100644 index 00000000..8deb6089 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/FileImpl.java @@ -0,0 +1,611 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#File
+ Represents a file (or group of files when `secondaryFiles` is provided) that + will be accessible by tools using standard POSIX file system call API such as + open(2) and read(2). + + Files are represented as objects with `class` of `File`. File objects have + a number of properties that provide metadata about the file. + + The `location` property of a File is a IRI that uniquely identifies the + file. Implementations must support the `file://` IRI scheme and may support + other schemes such as `http://` and `https://`. The value of `location` may also be a + relative reference, in which case it must be resolved relative to the IRI + of the document it appears in. Alternately to `location`, implementations + must also accept the `path` property on File, which must be a filesystem + path available on the same host as the CWL runner (for inputs) or the + runtime environment of a command line tool execution (for command line tool + outputs). + + If no `location` or `path` is specified, a file object must specify + `contents` with the UTF-8 text content of the file. This is a "file + literal". File literals do not correspond to external resources, but are + created on disk with `contents` with when needed for executing a tool. + Where appropriate, expressions can return file literals to define new files + on a runtime. The maximum size of `contents` is 64 kilobytes. + + The `basename` property defines the filename on disk where the file is + staged. This may differ from the resource name. If not provided, + `basename` must be computed from the last path part of `location` and made + available to expressions. + + The `secondaryFiles` property is a list of File or Directory objects that + must be staged in the same directory as the primary file. It is an error + for file names to be duplicated in `secondaryFiles`. + + The `size` property is the size in bytes of the File. It must be computed + from the resource and made available to expressions. The `checksum` field + contains a cryptographic hash of the file content for use it verifying file + contents. Implementations may, at user option, enable or disable + computation of the `checksum` field for performance or other reasons. + However, the ability to compute output checksums is required to pass the + CWL conformance test suite. + + When executing a CommandLineTool, the files and secondary files may be + staged to an arbitrary directory, but must use the value of `basename` for + the filename. The `path` property must be file path in the context of the + tool execution runtime (local to the compute node, or within the executing + container). All computed properties should be available to expressions. + File literals also must be staged and `path` must be set. + + When collecting CommandLineTool outputs, `glob` matching returns file paths + (with the `path` property) and the derived properties. This can all be + modified by `outputEval`. Alternately, if the file `cwl.output.json` is + present in the output, `outputBinding` is ignored. + + File objects in the output must provide either a `location` IRI or a `path` + property in the context of the tool execution runtime (local to the compute + node, or within the executing container). + + When evaluating an ExpressionTool, file objects must be referenced via + `location` (the expression tool does not have access to files on disk so + `path` is meaningless) or as file literals. It is legal to return a file + object with an existing `location` but a different `basename`. The + `loadContents` field of ExpressionTool inputs behaves the same as on + CommandLineTool inputs, however it is not meaningful on the outputs. + + An ExpressionTool may forward file references from input to output by using + the same value for `location`. +
+ */ +public class FileImpl extends SaveableImpl implements File { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private File_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#File/class
+ *
+ * Must be `File` to indicate this object describes a file. *
+ */ + + public File_class getClass_() { + return this.class_; + } + + private java.util.Optional location; + + /** + * Getter for property https://w3id.org/cwl/cwl#File/location
+ *
+ * An IRI that identifies the file resource. This may be a relative + * reference, in which case it must be resolved using the base IRI of the + * document. The location may refer to a local or remote resource; the + * implementation must use the IRI to retrieve file content. If an + * implementation is unable to retrieve the file content stored at a + * remote resource (due to unsupported protocol, access denied, or other + * issue) it must signal an error. + * + * If the `location` field is not provided, the `contents` field must be + * provided. The implementation must assign a unique identifier for + * the `location` field. + * + * If the `path` field is provided but the `location` field is not, an + * implementation may assign the value of the `path` field to `location`, + * then follow the rules above. + * *
+ */ + + public java.util.Optional getLocation() { + return this.location; + } + + private java.util.Optional path; + + /** + * Getter for property https://w3id.org/cwl/cwl#path
+ *
+ * The local host path where the File is available when a CommandLineTool is + * executed. This field must be set by the implementation. The final + * path component must match the value of `basename`. This field + * must not be used in any other context. The command line tool being + * executed must be able to access the file at `path` using the POSIX + * `open(2)` syscall. + * + * As a special case, if the `path` field is provided but the `location` + * field is not, an implementation may assign the value of the `path` + * field to `location`, and remove the `path` field. + * + * If the `path` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02) + * (`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`, + * ``, ``, and ``) or characters + * [not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml) + * for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452) + * then implementations may terminate the process with a + * `permanentFailure`. + * *
+ */ + + public java.util.Optional getPath() { + return this.path; + } + + private java.util.Optional basename; + + /** + * Getter for property https://w3id.org/cwl/cwl#File/basename
+ *
+ * The base name of the file, that is, the name of the file without any + * leading directory path. The base name must not contain a slash `/`. + * + * If not provided, the implementation must set this field based on the + * `location` field by taking the final path component after parsing + * `location` as an IRI. If `basename` is provided, it is not required to + * match the value from `location`. + * + * When this file is made available to a CommandLineTool, it must be named + * with `basename`, i.e. the final component of the `path` field must match + * `basename`. + * *
+ */ + + public java.util.Optional getBasename() { + return this.basename; + } + + private java.util.Optional dirname; + + /** + * Getter for property https://w3id.org/cwl/cwl#File/dirname
+ *
+ * The name of the directory containing file, that is, the path leading up + * to the final slash in the path such that `dirname + '/' + basename == + * path`. + * + * The implementation must set this field based on the value of `path` + * prior to evaluating parameter references or expressions in a + * CommandLineTool document. This field must not be used in any other + * context. + * *
+ */ + + public java.util.Optional getDirname() { + return this.dirname; + } + + private java.util.Optional nameroot; + + /** + * Getter for property https://w3id.org/cwl/cwl#File/nameroot
+ *
+ * The basename root such that `nameroot + nameext == basename`, and + * `nameext` is empty or begins with a period and contains at most one + * period. For the purposes of path splitting leading periods on the + * basename are ignored; a basename of `.cshrc` will have a nameroot of + * `.cshrc`. + * + * The implementation must set this field automatically based on the value + * of `basename` prior to evaluating parameter references or expressions. + * *
+ */ + + public java.util.Optional getNameroot() { + return this.nameroot; + } + + private java.util.Optional nameext; + + /** + * Getter for property https://w3id.org/cwl/cwl#File/nameext
+ *
+ * The basename extension such that `nameroot + nameext == basename`, and + * `nameext` is empty or begins with a period and contains at most one + * period. Leading periods on the basename are ignored; a basename of + * `.cshrc` will have an empty `nameext`. + * + * The implementation must set this field automatically based on the value + * of `basename` prior to evaluating parameter references or expressions. + * *
+ */ + + public java.util.Optional getNameext() { + return this.nameext; + } + + private java.util.Optional checksum; + + /** + * Getter for property https://w3id.org/cwl/cwl#File/checksum
+ *
+ * Optional hash code for validating file integrity. Currently, must be in the form + * "sha1$ + hexadecimal string" using the SHA-1 algorithm. + * *
+ */ + + public java.util.Optional getChecksum() { + return this.checksum; + } + + private Object size; + + /** + * Getter for property https://w3id.org/cwl/cwl#File/size
+ *
+ * Optional file size (in bytes) *
+ */ + + public Object getSize() { + return this.size; + } + + private java.util.Optional> secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * A list of additional files or directories that are associated with the + * primary file and must be transferred alongside the primary file. + * Examples include indexes of the primary file, or external references + * which must be included when loading primary document. A file object + * listed in `secondaryFiles` may itself include `secondaryFiles` for + * which the same rules apply. + * *
+ */ + + public java.util.Optional> getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * The format of the file: this must be an IRI of a concept node that + * represents the file format, preferably defined within an ontology. + * If no ontology is available, file formats may be tested by exact match. + * + * Reasoning about format compatibility must be done by checking that an + * input file format is the same, `owl:equivalentClass` or + * `rdfs:subClassOf` the format required by the input parameter. + * `owl:equivalentClass` is transitive with `rdfs:subClassOf`, e.g. if + * ` owl:equivalentClass ` and ` owl:subclassOf ` then infer + * ` owl:subclassOf `. + * + * File format ontologies may be provided in the "$schemas" metadata at the + * root of the document. If no ontologies are specified in `$schemas`, the + * runtime may perform exact file format matches. + * *
+ */ + + public java.util.Optional getFormat() { + return this.format; + } + + private java.util.Optional contents; + + /** + * Getter for property https://w3id.org/cwl/cwl#File/contents
+ *
+ * File contents literal. + * + * If neither `location` nor `path` is provided, `contents` must be + * non-null. The implementation must assign a unique identifier for the + * `location` field. When the file is staged as input to CommandLineTool, + * the value of `contents` must be written to a file. + * + * If `contents` is set as a result of a Javascript expression, + * an `entry` in `InitialWorkDirRequirement`, or read in from + * `cwl.output.json`, there is no specified upper limit on the + * size of `contents`. Implementations may have practical limits + * on the size of `contents` based on memory and storage + * available to the workflow runner or other factors. + * + * If the `loadContents` field of an `InputParameter` or + * `OutputParameter` is true, and the input or output File object + * `location` is valid, the file must be a UTF-8 text file 64 KiB + * or smaller, and the implementation must read the entire + * contents of the file and place it in the `contents` field. If + * the size of the file is greater than 64 KiB, the + * implementation must raise a fatal error. + * *
+ */ + + public java.util.Optional getContents() { + return this.contents; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of FileImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public FileImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("FileImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + File_class class_; + try { + class_ = + LoaderInstances + .uri_File_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional location; + + if (__doc.containsKey("location")) { + try { + location = + LoaderInstances + .uri_optional_StringInstance_False_False_None_None + .loadField(__doc.get("location"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + location = null; // won't be used but prevents compiler from complaining. + final String __message = "the `location` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + location = null; + } + java.util.Optional path; + + if (__doc.containsKey("path")) { + try { + path = + LoaderInstances + .uri_optional_StringInstance_False_False_None_None + .loadField(__doc.get("path"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + path = null; // won't be used but prevents compiler from complaining. + final String __message = "the `path` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + path = null; + } + java.util.Optional basename; + + if (__doc.containsKey("basename")) { + try { + basename = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("basename"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + basename = null; // won't be used but prevents compiler from complaining. + final String __message = "the `basename` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + basename = null; + } + java.util.Optional dirname; + + if (__doc.containsKey("dirname")) { + try { + dirname = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("dirname"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + dirname = null; // won't be used but prevents compiler from complaining. + final String __message = "the `dirname` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + dirname = null; + } + java.util.Optional nameroot; + + if (__doc.containsKey("nameroot")) { + try { + nameroot = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("nameroot"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + nameroot = null; // won't be used but prevents compiler from complaining. + final String __message = "the `nameroot` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + nameroot = null; + } + java.util.Optional nameext; + + if (__doc.containsKey("nameext")) { + try { + nameext = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("nameext"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + nameext = null; // won't be used but prevents compiler from complaining. + final String __message = "the `nameext` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + nameext = null; + } + java.util.Optional checksum; + + if (__doc.containsKey("checksum")) { + try { + checksum = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("checksum"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + checksum = null; // won't be used but prevents compiler from complaining. + final String __message = "the `checksum` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + checksum = null; + } + Object size; + + if (__doc.containsKey("size")) { + try { + size = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_LongInstance + .loadField(__doc.get("size"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + size = null; // won't be used but prevents compiler from complaining. + final String __message = "the `size` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + size = null; + } + java.util.Optional> secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_optional_array_of_union_of_File_or_Directory + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_optional_StringInstance_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + java.util.Optional contents; + + if (__doc.containsKey("contents")) { + try { + contents = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("contents"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + contents = null; // won't be used but prevents compiler from complaining. + final String __message = "the `contents` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + contents = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (File_class) class_; + this.location = (java.util.Optional) location; + this.path = (java.util.Optional) path; + this.basename = (java.util.Optional) basename; + this.dirname = (java.util.Optional) dirname; + this.nameroot = (java.util.Optional) nameroot; + this.nameext = (java.util.Optional) nameext; + this.checksum = (java.util.Optional) checksum; + this.size = (Object) size; + this.secondaryFiles = (java.util.Optional>) secondaryFiles; + this.format = (java.util.Optional) format; + this.contents = (java.util.Optional) contents; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "location", "path", "basename", "dirname", "nameroot", "nameext", "checksum", "size", "secondaryFiles", "format", "contents"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/File_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/File_class.java new file mode 100644 index 00000000..d8ae0b3d --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/File_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum File_class { + FILE("File"); + + private static String[] symbols = new String[] {"File"}; + private String docVal; + + private File_class(final String docVal) { + this.docVal = docVal; + } + + public static File_class fromDocumentVal(final String docVal) { + for(final File_class val : File_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", File_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/IOSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/IOSchema.java new file mode 100644 index 00000000..4fa4facc --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/IOSchema.java @@ -0,0 +1,42 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#IOSchema
+ */ +public interface IOSchema extends Labeled, Documented, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/Identified.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Identified.java new file mode 100644 index 00000000..15736c75 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Identified.java @@ -0,0 +1,28 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#Identified
+ */ +public interface Identified extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InitialWorkDirRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InitialWorkDirRequirement.java new file mode 100644 index 00000000..73d54aac --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InitialWorkDirRequirement.java @@ -0,0 +1,68 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InitialWorkDirRequirement
This interface is implemented by {@link InitialWorkDirRequirementImpl}
+ Define a list of files and subdirectories that must be staged by the workflow platform prior to executing the command line tool. + Normally files are staged within the designated output directory. However, when running inside containers, files may be staged at arbitrary locations, see discussion for [`Dirent.entryname`](#Dirent). Together with `DockerRequirement.dockerOutputDirectory` it is possible to control the locations of both input and output files when running in containers.
+ */ +public interface InitialWorkDirRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#InitialWorkDirRequirement/class
+ *
+ * InitialWorkDirRequirement *
+ */ + + InitialWorkDirRequirement_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#listing
+ *
+ * The list of files or subdirectories that must be staged prior + * to executing the command line tool. + * + * Return type of each expression must validate as `["null", + * File, Directory, Dirent, {type: array, items: [File, + * Directory]}]`. + * + * Each `File` or `Directory` that is returned by an Expression + * must be added to the designated output directory prior to + * executing the tool. + * + * Each `Dirent` record that is listed or returned by an + * expression specifies a file to be created or staged in the + * designated output directory prior to executing the tool. + * + * Expressions may return null, in which case they have no effect. + * + * Files or Directories which are listed in the input parameters + * and appear in the `InitialWorkDirRequirement` listing must + * have their `path` set to their staged location. If the same + * File or Directory appears more than once in the + * `InitialWorkDirRequirement` listing, the implementation must + * choose exactly one value for `path`; how this value is chosen + * is undefined. + * *
+ */ + + Object getListing(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InitialWorkDirRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InitialWorkDirRequirementImpl.java new file mode 100644 index 00000000..3e488f33 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InitialWorkDirRequirementImpl.java @@ -0,0 +1,154 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#InitialWorkDirRequirement
+ Define a list of files and subdirectories that must be staged by the workflow platform prior to executing the command line tool. + Normally files are staged within the designated output directory. However, when running inside containers, files may be staged at arbitrary locations, see discussion for [`Dirent.entryname`](#Dirent). Together with `DockerRequirement.dockerOutputDirectory` it is possible to control the locations of both input and output files when running in containers.
+ */ +public class InitialWorkDirRequirementImpl extends SaveableImpl implements InitialWorkDirRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private InitialWorkDirRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#InitialWorkDirRequirement/class
+ *
+ * InitialWorkDirRequirement *
+ */ + + public InitialWorkDirRequirement_class getClass_() { + return this.class_; + } + + private Object listing; + + /** + * Getter for property https://w3id.org/cwl/cwl#listing
+ *
+ * The list of files or subdirectories that must be staged prior + * to executing the command line tool. + * + * Return type of each expression must validate as `["null", + * File, Directory, Dirent, {type: array, items: [File, + * Directory]}]`. + * + * Each `File` or `Directory` that is returned by an Expression + * must be added to the designated output directory prior to + * executing the tool. + * + * Each `Dirent` record that is listed or returned by an + * expression specifies a file to be created or staged in the + * designated output directory prior to executing the tool. + * + * Expressions may return null, in which case they have no effect. + * + * Files or Directories which are listed in the input parameters + * and appear in the `InitialWorkDirRequirement` listing must + * have their `path` set to their staged location. If the same + * File or Directory appears more than once in the + * `InitialWorkDirRequirement` listing, the implementation must + * choose exactly one value for `path`; how this value is chosen + * is undefined. + * *
+ */ + + public Object getListing() { + return this.listing; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of InitialWorkDirRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public InitialWorkDirRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("InitialWorkDirRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + InitialWorkDirRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_InitialWorkDirRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Object listing; + try { + listing = + LoaderInstances + .union_of_ExpressionLoader_or_array_of_union_of_NullInstance_or_Dirent_or_ExpressionLoader_or_File_or_Directory_or_array_of_union_of_File_or_Directory + .loadField(__doc.get("listing"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + listing = null; // won't be used but prevents compiler from complaining. + final String __message = "the `listing` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (InitialWorkDirRequirement_class) class_; + this.listing = (Object) listing; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "listing"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InitialWorkDirRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InitialWorkDirRequirement_class.java new file mode 100644 index 00000000..297a71fa --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InitialWorkDirRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum InitialWorkDirRequirement_class { + INITIALWORKDIRREQUIREMENT("InitialWorkDirRequirement"); + + private static String[] symbols = new String[] {"InitialWorkDirRequirement"}; + private String docVal; + + private InitialWorkDirRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static InitialWorkDirRequirement_class fromDocumentVal(final String docVal) { + for(final InitialWorkDirRequirement_class val : InitialWorkDirRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", InitialWorkDirRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InlineJavascriptRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InlineJavascriptRequirement.java new file mode 100644 index 00000000..1d03d48a --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InlineJavascriptRequirement.java @@ -0,0 +1,49 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InlineJavascriptRequirement
This interface is implemented by {@link InlineJavascriptRequirementImpl}
+ Indicates that the workflow platform must support inline Javascript expressions. + If this requirement is not present, the workflow platform must not perform expression + interpolation. +
+ */ +public interface InlineJavascriptRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#InlineJavascriptRequirement/class
+ *
+ * Always 'InlineJavascriptRequirement' *
+ */ + + InlineJavascriptRequirement_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#InlineJavascriptRequirement/expressionLib
+ *
+ * Additional code fragments that will also be inserted + * before executing the expression code. Allows for function definitions that may + * be called from CWL expressions. + * *
+ */ + + java.util.Optional> getExpressionLib(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InlineJavascriptRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InlineJavascriptRequirementImpl.java new file mode 100644 index 00000000..56b349f9 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InlineJavascriptRequirementImpl.java @@ -0,0 +1,141 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#InlineJavascriptRequirement
+ Indicates that the workflow platform must support inline Javascript expressions. + If this requirement is not present, the workflow platform must not perform expression + interpolation. +
+ */ +public class InlineJavascriptRequirementImpl extends SaveableImpl implements InlineJavascriptRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private InlineJavascriptRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#InlineJavascriptRequirement/class
+ *
+ * Always 'InlineJavascriptRequirement' *
+ */ + + public InlineJavascriptRequirement_class getClass_() { + return this.class_; + } + + private java.util.Optional> expressionLib; + + /** + * Getter for property https://w3id.org/cwl/cwl#InlineJavascriptRequirement/expressionLib
+ *
+ * Additional code fragments that will also be inserted + * before executing the expression code. Allows for function definitions that may + * be called from CWL expressions. + * *
+ */ + + public java.util.Optional> getExpressionLib() { + return this.expressionLib; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of InlineJavascriptRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public InlineJavascriptRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("InlineJavascriptRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + InlineJavascriptRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_InlineJavascriptRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional> expressionLib; + + if (__doc.containsKey("expressionLib")) { + try { + expressionLib = + LoaderInstances + .optional_array_of_StringInstance + .loadField(__doc.get("expressionLib"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + expressionLib = null; // won't be used but prevents compiler from complaining. + final String __message = "the `expressionLib` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + expressionLib = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (InlineJavascriptRequirement_class) class_; + this.expressionLib = (java.util.Optional>) expressionLib; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "expressionLib"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InlineJavascriptRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InlineJavascriptRequirement_class.java new file mode 100644 index 00000000..d5944c02 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InlineJavascriptRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum InlineJavascriptRequirement_class { + INLINEJAVASCRIPTREQUIREMENT("InlineJavascriptRequirement"); + + private static String[] symbols = new String[] {"InlineJavascriptRequirement"}; + private String docVal; + + private InlineJavascriptRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static InlineJavascriptRequirement_class fromDocumentVal(final String docVal) { + for(final InlineJavascriptRequirement_class val : InlineJavascriptRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", InlineJavascriptRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InplaceUpdateRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InplaceUpdateRequirement.java new file mode 100644 index 00000000..452bc892 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InplaceUpdateRequirement.java @@ -0,0 +1,72 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InplaceUpdateRequirement
This interface is implemented by {@link InplaceUpdateRequirementImpl}
+ + If `inplaceUpdate` is true, then an implementation supporting this + feature may permit tools to directly update files with `writable: + true` in InitialWorkDirRequirement. That is, as an optimization, + files may be destructively modified in place as opposed to copied + and updated. + + An implementation must ensure that only one workflow step may + access a writable file at a time. It is an error if a file which + is writable by one workflow step file is accessed (for reading or + writing) by any other workflow step running independently. + However, a file which has been updated in a previous completed + step may be used as input to multiple steps, provided it is + read-only in every step. + + Workflow steps which modify a file must produce the modified file + as output. Downstream steps which further process the file must + use the output of previous steps, and not refer to a common input + (this is necessary for both ordering and correctness). + + Workflow authors should provide this in the `hints` section. The + intent of this feature is that workflows produce the same results + whether or not InplaceUpdateRequirement is supported by the + implementation, and this feature is primarily available as an + optimization for particular environments. + + Users and implementers should be aware that workflows that + destructively modify inputs may not be repeatable or reproducible. + In particular, enabling this feature implies that WorkReuse should + not be enabled. +
+ */ +public interface InplaceUpdateRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#InplaceUpdateRequirement/class
+ *
+ * Always 'InplaceUpdateRequirement' *
+ */ + + InplaceUpdateRequirement_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#InplaceUpdateRequirement/inplaceUpdate
+ + */ + + Boolean getInplaceUpdate(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InplaceUpdateRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InplaceUpdateRequirementImpl.java new file mode 100644 index 00000000..37c27405 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InplaceUpdateRequirementImpl.java @@ -0,0 +1,158 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#InplaceUpdateRequirement
+ + If `inplaceUpdate` is true, then an implementation supporting this + feature may permit tools to directly update files with `writable: + true` in InitialWorkDirRequirement. That is, as an optimization, + files may be destructively modified in place as opposed to copied + and updated. + + An implementation must ensure that only one workflow step may + access a writable file at a time. It is an error if a file which + is writable by one workflow step file is accessed (for reading or + writing) by any other workflow step running independently. + However, a file which has been updated in a previous completed + step may be used as input to multiple steps, provided it is + read-only in every step. + + Workflow steps which modify a file must produce the modified file + as output. Downstream steps which further process the file must + use the output of previous steps, and not refer to a common input + (this is necessary for both ordering and correctness). + + Workflow authors should provide this in the `hints` section. The + intent of this feature is that workflows produce the same results + whether or not InplaceUpdateRequirement is supported by the + implementation, and this feature is primarily available as an + optimization for particular environments. + + Users and implementers should be aware that workflows that + destructively modify inputs may not be repeatable or reproducible. + In particular, enabling this feature implies that WorkReuse should + not be enabled. +
+ */ +public class InplaceUpdateRequirementImpl extends SaveableImpl implements InplaceUpdateRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private InplaceUpdateRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#InplaceUpdateRequirement/class
+ *
+ * Always 'InplaceUpdateRequirement' *
+ */ + + public InplaceUpdateRequirement_class getClass_() { + return this.class_; + } + + private Boolean inplaceUpdate; + + /** + * Getter for property https://w3id.org/cwl/cwl#InplaceUpdateRequirement/inplaceUpdate
+ + */ + + public Boolean getInplaceUpdate() { + return this.inplaceUpdate; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of InplaceUpdateRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public InplaceUpdateRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("InplaceUpdateRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + InplaceUpdateRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_InplaceUpdateRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Boolean inplaceUpdate; + try { + inplaceUpdate = + LoaderInstances + .BooleanInstance + .loadField(__doc.get("inplaceUpdate"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inplaceUpdate = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inplaceUpdate` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (InplaceUpdateRequirement_class) class_; + this.inplaceUpdate = (Boolean) inplaceUpdate; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "inplaceUpdate"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InplaceUpdateRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InplaceUpdateRequirement_class.java new file mode 100644 index 00000000..05c0a2b0 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InplaceUpdateRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum InplaceUpdateRequirement_class { + INPLACEUPDATEREQUIREMENT("InplaceUpdateRequirement"); + + private static String[] symbols = new String[] {"InplaceUpdateRequirement"}; + private String docVal; + + private InplaceUpdateRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static InplaceUpdateRequirement_class fromDocumentVal(final String docVal) { + for(final InplaceUpdateRequirement_class val : InplaceUpdateRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", InplaceUpdateRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputArraySchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputArraySchema.java new file mode 100644 index 00000000..c1e3b024 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputArraySchema.java @@ -0,0 +1,63 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InputArraySchema
This interface is implemented by {@link InputArraySchemaImpl}
+ */ +public interface InputArraySchema extends CWLArraySchema, InputSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + Object getItems(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + Array_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputArraySchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputArraySchemaImpl.java new file mode 100644 index 00000000..bffce6ed --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputArraySchemaImpl.java @@ -0,0 +1,232 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputArraySchema
+ */ +public class InputArraySchemaImpl extends SaveableImpl implements InputArraySchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private Object items; + + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + public Object getItems() { + return this.items; + } + + private Array_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + public Array_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of InputArraySchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public InputArraySchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("InputArraySchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + Object items; + try { + items = + LoaderInstances + .uri_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_False_True_2_None + .loadField(__doc.get("items"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + items = null; // won't be used but prevents compiler from complaining. + final String __message = "the `items` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Array_name type; + try { + type = + LoaderInstances + .typedsl_Array_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.items = (Object) items; + this.type = (Array_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.name = (java.util.Optional) name; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("items", "type", "label", "doc", "name"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputBinding.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputBinding.java new file mode 100644 index 00000000..8c101b9b --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputBinding.java @@ -0,0 +1,38 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InputBinding
This interface is implemented by {@link InputBindingImpl}
+ */ +public interface InputBinding extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#InputBinding/loadContents
+ *
+ * Use of `loadContents` in `InputBinding` is deprecated. + * Preserved for v1.0 backwards compatibility. Will be removed in + * CWL v2.0. Use `InputParameter.loadContents` instead. + * *
+ */ + + java.util.Optional getLoadContents(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputBindingImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputBindingImpl.java new file mode 100644 index 00000000..7afedd9f --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputBindingImpl.java @@ -0,0 +1,113 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputBinding
+ */ +public class InputBindingImpl extends SaveableImpl implements InputBinding { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional loadContents; + + /** + * Getter for property https://w3id.org/cwl/cwl#InputBinding/loadContents
+ *
+ * Use of `loadContents` in `InputBinding` is deprecated. + * Preserved for v1.0 backwards compatibility. Will be removed in + * CWL v2.0. Use `InputParameter.loadContents` instead. + * *
+ */ + + public java.util.Optional getLoadContents() { + return this.loadContents; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of InputBindingImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public InputBindingImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("InputBindingImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional loadContents; + + if (__doc.containsKey("loadContents")) { + try { + loadContents = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadContents = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadContents` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadContents = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.loadContents = (java.util.Optional) loadContents; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("loadContents"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputEnumSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputEnumSchema.java new file mode 100644 index 00000000..9a252c27 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputEnumSchema.java @@ -0,0 +1,63 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InputEnumSchema
This interface is implemented by {@link InputEnumSchemaImpl}
+ */ +public interface InputEnumSchema extends EnumSchema, InputSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + java.util.List getSymbols(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + Enum_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputEnumSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputEnumSchemaImpl.java new file mode 100644 index 00000000..1f6cb8d5 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputEnumSchemaImpl.java @@ -0,0 +1,232 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputEnumSchema
+ */ +public class InputEnumSchemaImpl extends SaveableImpl implements InputEnumSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private java.util.List symbols; + + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + public java.util.List getSymbols() { + return this.symbols; + } + + private Enum_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + public Enum_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of InputEnumSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public InputEnumSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("InputEnumSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + java.util.List symbols; + try { + symbols = + LoaderInstances + .uri_array_of_StringInstance_True_False_None_None + .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + symbols = null; // won't be used but prevents compiler from complaining. + final String __message = "the `symbols` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Enum_name type; + try { + type = + LoaderInstances + .typedsl_Enum_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.name = (java.util.Optional) name; + this.symbols = (java.util.List) symbols; + this.type = (Enum_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("name", "symbols", "type", "label", "doc"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputFormat.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputFormat.java new file mode 100644 index 00000000..094ceb90 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputFormat.java @@ -0,0 +1,41 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InputFormat
+ */ +public interface InputFormat extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + Object getFormat(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputParameter.java new file mode 100644 index 00000000..b5911163 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputParameter.java @@ -0,0 +1,159 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InputParameter
+ */ +public interface InputParameter extends Parameter, InputFormat, LoadContents, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + Object getFormat(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * If true, the file (or each file in the array) must be a UTF-8 + * text file 64 KiB or smaller, and the implementation must read + * the entire contents of the file (or file array) and place it + * in the `contents` field of the File object for use by + * expressions. If the size of the file is greater than 64 KiB, + * the implementation must raise a fatal error. + * *
+ */ + + java.util.Optional getLoadContents(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + java.util.Optional getLoadListing(); + /** + * Getter for property https://w3id.org/cwl/salad#default
+ *
+ * The default value to use for this parameter if the parameter is missing + * from the input object, or if the value of the parameter in the input + * object is `null`. Default values are applied before evaluating expressions + * (e.g. dependent `valueFrom` fields). + * *
+ */ + + java.util.Optional getDefault(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputRecordField.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputRecordField.java new file mode 100644 index 00000000..1f8063af --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputRecordField.java @@ -0,0 +1,164 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InputRecordField
This interface is implemented by {@link InputRecordFieldImpl}
+ */ +public interface InputRecordField extends CWLRecordField, FieldBase, InputFormat, LoadContents, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + String getName(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + Object getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + Object getFormat(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * If true, the file (or each file in the array) must be a UTF-8 + * text file 64 KiB or smaller, and the implementation must read + * the entire contents of the file (or file array) and place it + * in the `contents` field of the File object for use by + * expressions. If the size of the file is greater than 64 KiB, + * the implementation must raise a fatal error. + * *
+ */ + + java.util.Optional getLoadContents(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + java.util.Optional getLoadListing(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputRecordFieldImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputRecordFieldImpl.java new file mode 100644 index 00000000..045e19e7 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputRecordFieldImpl.java @@ -0,0 +1,426 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputRecordField
+ */ +public class InputRecordFieldImpl extends SaveableImpl implements InputRecordField { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private String name; + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + public String getName() { + return this.name; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + public Object getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional streamable; + + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + public java.util.Optional getStreamable() { + return this.streamable; + } + + private Object format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + public Object getFormat() { + return this.format; + } + + private java.util.Optional loadContents; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * If true, the file (or each file in the array) must be a UTF-8 + * text file 64 KiB or smaller, and the implementation must read + * the entire contents of the file (or file array) and place it + * in the `contents` field of the File object for use by + * expressions. If the size of the file is greater than 64 KiB, + * the implementation must raise a fatal error. + * *
+ */ + + public java.util.Optional getLoadContents() { + return this.loadContents; + } + + private java.util.Optional loadListing; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + public java.util.Optional getLoadListing() { + return this.loadListing; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of InputRecordFieldImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public InputRecordFieldImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("InputRecordFieldImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + String name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + if (name == null) { + if (__docRoot != null) { + name = __docRoot; + } else { + throw new ValidationException("Missing name"); + } + } + __baseUri = (String) name; + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object type; + try { + type = + LoaderInstances + .typedsl_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional streamable; + + if (__doc.containsKey("streamable")) { + try { + streamable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + streamable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `streamable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + streamable = null; + } + Object format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + java.util.Optional loadContents; + + if (__doc.containsKey("loadContents")) { + try { + loadContents = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadContents = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadContents` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadContents = null; + } + java.util.Optional loadListing; + + if (__doc.containsKey("loadListing")) { + try { + loadListing = + LoaderInstances + .optional_LoadListingEnum + .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadListing = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadListing` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadListing = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.doc = (Object) doc; + this.name = (String) name; + this.type = (Object) type; + this.label = (java.util.Optional) label; + this.secondaryFiles = (Object) secondaryFiles; + this.streamable = (java.util.Optional) streamable; + this.format = (Object) format; + this.loadContents = (java.util.Optional) loadContents; + this.loadListing = (java.util.Optional) loadListing; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("doc", "name", "type", "label", "secondaryFiles", "streamable", "format", "loadContents", "loadListing"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputRecordSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputRecordSchema.java new file mode 100644 index 00000000..c9acc178 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputRecordSchema.java @@ -0,0 +1,63 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InputRecordSchema
This interface is implemented by {@link InputRecordSchemaImpl}
+ */ +public interface InputRecordSchema extends CWLRecordSchema, InputSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + java.util.Optional> getFields(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + Record_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputRecordSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputRecordSchemaImpl.java new file mode 100644 index 00000000..31cf073e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputRecordSchemaImpl.java @@ -0,0 +1,238 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputRecordSchema
+ */ +public class InputRecordSchemaImpl extends SaveableImpl implements InputRecordSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private java.util.Optional> fields; + + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + public java.util.Optional> getFields() { + return this.fields; + } + + private Record_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + public Record_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of InputRecordSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public InputRecordSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("InputRecordSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + java.util.Optional> fields; + + if (__doc.containsKey("fields")) { + try { + fields = + LoaderInstances + .idmap_fields_optional_array_of_InputRecordField + .loadField(__doc.get("fields"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + fields = null; // won't be used but prevents compiler from complaining. + final String __message = "the `fields` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + fields = null; + } + Record_name type; + try { + type = + LoaderInstances + .typedsl_Record_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.fields = (java.util.Optional>) fields; + this.type = (Record_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.name = (java.util.Optional) name; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("fields", "type", "label", "doc", "name"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputSchema.java new file mode 100644 index 00000000..933fbb39 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/InputSchema.java @@ -0,0 +1,42 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#InputSchema
+ */ +public interface InputSchema extends IOSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/Labeled.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Labeled.java new file mode 100644 index 00000000..057c76fe --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Labeled.java @@ -0,0 +1,35 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#Labeled
+ */ +public interface Labeled extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/LinkMergeMethod.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/LinkMergeMethod.java new file mode 100644 index 00000000..4e55cf1e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/LinkMergeMethod.java @@ -0,0 +1,38 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum LinkMergeMethod { + MERGE_NESTED("merge_nested"), + MERGE_FLATTENED("merge_flattened"); + + private static String[] symbols = new String[] {"merge_nested", "merge_flattened"}; + private String docVal; + + private LinkMergeMethod(final String docVal) { + this.docVal = docVal; + } + + public static LinkMergeMethod fromDocumentVal(final String docVal) { + for(final LinkMergeMethod val : LinkMergeMethod.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", LinkMergeMethod.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/LoadContents.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/LoadContents.java new file mode 100644 index 00000000..2d7c7fb7 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/LoadContents.java @@ -0,0 +1,60 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#LoadContents
+ */ +public interface LoadContents extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * If true, the file (or each file in the array) must be a UTF-8 + * text file 64 KiB or smaller, and the implementation must read + * the entire contents of the file (or file array) and place it + * in the `contents` field of the File object for use by + * expressions. If the size of the file is greater than 64 KiB, + * the implementation must raise a fatal error. + * *
+ */ + + java.util.Optional getLoadContents(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + java.util.Optional getLoadListing(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/LoadListingEnum.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/LoadListingEnum.java new file mode 100644 index 00000000..63cecdde --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/LoadListingEnum.java @@ -0,0 +1,39 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum LoadListingEnum { + NO_LISTING("no_listing"), + SHALLOW_LISTING("shallow_listing"), + DEEP_LISTING("deep_listing"); + + private static String[] symbols = new String[] {"no_listing", "shallow_listing", "deep_listing"}; + private String docVal; + + private LoadListingEnum(final String docVal) { + this.docVal = docVal; + } + + public static LoadListingEnum fromDocumentVal(final String docVal) { + for(final LoadListingEnum val : LoadListingEnum.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", LoadListingEnum.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/LoadListingRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/LoadListingRequirement.java new file mode 100644 index 00000000..d1c7f0d0 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/LoadListingRequirement.java @@ -0,0 +1,44 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#LoadListingRequirement
This interface is implemented by {@link LoadListingRequirementImpl}
+ Specify the desired behavior for loading the `listing` field of + a Directory object for use by expressions. +
+ */ +public interface LoadListingRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadListingRequirement/class
+ *
+ * Always 'LoadListingRequirement' *
+ */ + + LoadListingRequirement_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadListingRequirement/loadListing
+ + */ + + java.util.Optional getLoadListing(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/LoadListingRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/LoadListingRequirementImpl.java new file mode 100644 index 00000000..bc64e221 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/LoadListingRequirementImpl.java @@ -0,0 +1,136 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#LoadListingRequirement
+ Specify the desired behavior for loading the `listing` field of + a Directory object for use by expressions. +
+ */ +public class LoadListingRequirementImpl extends SaveableImpl implements LoadListingRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private LoadListingRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadListingRequirement/class
+ *
+ * Always 'LoadListingRequirement' *
+ */ + + public LoadListingRequirement_class getClass_() { + return this.class_; + } + + private java.util.Optional loadListing; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadListingRequirement/loadListing
+ + */ + + public java.util.Optional getLoadListing() { + return this.loadListing; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of LoadListingRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public LoadListingRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("LoadListingRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + LoadListingRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_LoadListingRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional loadListing; + + if (__doc.containsKey("loadListing")) { + try { + loadListing = + LoaderInstances + .optional_LoadListingEnum + .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadListing = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadListing` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadListing = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (LoadListingRequirement_class) class_; + this.loadListing = (java.util.Optional) loadListing; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "loadListing"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/LoadListingRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/LoadListingRequirement_class.java new file mode 100644 index 00000000..80353e40 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/LoadListingRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum LoadListingRequirement_class { + LOADLISTINGREQUIREMENT("LoadListingRequirement"); + + private static String[] symbols = new String[] {"LoadListingRequirement"}; + private String docVal; + + private LoadListingRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static LoadListingRequirement_class fromDocumentVal(final String docVal) { + for(final LoadListingRequirement_class val : LoadListingRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", LoadListingRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/MapSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/MapSchema.java new file mode 100644 index 00000000..54d8f0bb --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/MapSchema.java @@ -0,0 +1,42 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/salad#MapSchema
This interface is implemented by {@link MapSchemaImpl}
+ */ +public interface MapSchema extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `map` *
+ */ + + Map_name getType(); + /** + * Getter for property https://w3id.org/cwl/salad#values
+ *
+ * Defines the type of the map elements. *
+ */ + + Object getValues(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/MapSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/MapSchemaImpl.java new file mode 100644 index 00000000..bb3c2860 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/MapSchemaImpl.java @@ -0,0 +1,128 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/salad#MapSchema
+ */ +public class MapSchemaImpl extends SaveableImpl implements MapSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private Map_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `map` *
+ */ + + public Map_name getType() { + return this.type; + } + + private Object values; + + /** + * Getter for property https://w3id.org/cwl/salad#values
+ *
+ * Defines the type of the map elements. *
+ */ + + public Object getValues() { + return this.values; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of MapSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public MapSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("MapSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + Map_name type; + try { + type = + LoaderInstances + .typedsl_Map_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Object values; + try { + values = + LoaderInstances + .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 + .loadField(__doc.get("values"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + values = null; // won't be used but prevents compiler from complaining. + final String __message = "the `values` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.type = (Map_name) type; + this.values = (Object) values; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("type", "values"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/Map_name.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Map_name.java new file mode 100644 index 00000000..2d70a37c --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Map_name.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum Map_name { + MAP("map"); + + private static String[] symbols = new String[] {"map"}; + private String docVal; + + private Map_name(final String docVal) { + this.docVal = docVal; + } + + public static Map_name fromDocumentVal(final String docVal) { + for(final Map_name val : Map_name.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", Map_name.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/MultipleInputFeatureRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/MultipleInputFeatureRequirement.java new file mode 100644 index 00000000..b075fbad --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/MultipleInputFeatureRequirement.java @@ -0,0 +1,38 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#MultipleInputFeatureRequirement
This interface is implemented by {@link MultipleInputFeatureRequirementImpl}
+ Indicates that the workflow platform must support multiple inbound data links + listed in the `source` field of [WorkflowStepInput](#WorkflowStepInput). +
+ */ +public interface MultipleInputFeatureRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#MultipleInputFeatureRequirement/class
+ *
+ * Always 'MultipleInputFeatureRequirement' *
+ */ + + MultipleInputFeatureRequirement_class getClass_(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/MultipleInputFeatureRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/MultipleInputFeatureRequirementImpl.java new file mode 100644 index 00000000..e3e28d33 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/MultipleInputFeatureRequirementImpl.java @@ -0,0 +1,107 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#MultipleInputFeatureRequirement
+ Indicates that the workflow platform must support multiple inbound data links + listed in the `source` field of [WorkflowStepInput](#WorkflowStepInput). +
+ */ +public class MultipleInputFeatureRequirementImpl extends SaveableImpl implements MultipleInputFeatureRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private MultipleInputFeatureRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#MultipleInputFeatureRequirement/class
+ *
+ * Always 'MultipleInputFeatureRequirement' *
+ */ + + public MultipleInputFeatureRequirement_class getClass_() { + return this.class_; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of MultipleInputFeatureRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public MultipleInputFeatureRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("MultipleInputFeatureRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + MultipleInputFeatureRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_MultipleInputFeatureRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (MultipleInputFeatureRequirement_class) class_; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/MultipleInputFeatureRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/MultipleInputFeatureRequirement_class.java new file mode 100644 index 00000000..0b3150d1 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/MultipleInputFeatureRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum MultipleInputFeatureRequirement_class { + MULTIPLEINPUTFEATUREREQUIREMENT("MultipleInputFeatureRequirement"); + + private static String[] symbols = new String[] {"MultipleInputFeatureRequirement"}; + private String docVal; + + private MultipleInputFeatureRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static MultipleInputFeatureRequirement_class fromDocumentVal(final String docVal) { + for(final MultipleInputFeatureRequirement_class val : MultipleInputFeatureRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", MultipleInputFeatureRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/NetworkAccess.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/NetworkAccess.java new file mode 100644 index 00000000..2d02328a --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/NetworkAccess.java @@ -0,0 +1,57 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#NetworkAccess
This interface is implemented by {@link NetworkAccessImpl}
+ Indicate whether a process requires outgoing IPv4/IPv6 network + access. Choice of IPv4 or IPv6 is implementation and site + specific, correct tools must support both. + + If `networkAccess` is false or not specified, tools must not + assume network access, except for localhost (the loopback device). + + If `networkAccess` is true, the tool must be able to make outgoing + connections to network resources. Resources may be on a private + subnet or the public Internet. However, implementations and sites + may apply their own security policies to restrict what is + accessible by the tool. + + Enabling network access does not imply a publicly routable IP + address or the ability to accept inbound connections. +
+ */ +public interface NetworkAccess extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#NetworkAccess/class
+ *
+ * Always 'NetworkAccess' *
+ */ + + NetworkAccess_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#NetworkAccess/networkAccess
+ + */ + + Object getNetworkAccess(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/NetworkAccessImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/NetworkAccessImpl.java new file mode 100644 index 00000000..fc982627 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/NetworkAccessImpl.java @@ -0,0 +1,143 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#NetworkAccess
+ Indicate whether a process requires outgoing IPv4/IPv6 network + access. Choice of IPv4 or IPv6 is implementation and site + specific, correct tools must support both. + + If `networkAccess` is false or not specified, tools must not + assume network access, except for localhost (the loopback device). + + If `networkAccess` is true, the tool must be able to make outgoing + connections to network resources. Resources may be on a private + subnet or the public Internet. However, implementations and sites + may apply their own security policies to restrict what is + accessible by the tool. + + Enabling network access does not imply a publicly routable IP + address or the ability to accept inbound connections. +
+ */ +public class NetworkAccessImpl extends SaveableImpl implements NetworkAccess { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private NetworkAccess_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#NetworkAccess/class
+ *
+ * Always 'NetworkAccess' *
+ */ + + public NetworkAccess_class getClass_() { + return this.class_; + } + + private Object networkAccess; + + /** + * Getter for property https://w3id.org/cwl/cwl#NetworkAccess/networkAccess
+ + */ + + public Object getNetworkAccess() { + return this.networkAccess; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of NetworkAccessImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public NetworkAccessImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("NetworkAccessImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + NetworkAccess_class class_; + try { + class_ = + LoaderInstances + .uri_NetworkAccess_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Object networkAccess; + try { + networkAccess = + LoaderInstances + .union_of_BooleanInstance_or_ExpressionLoader + .loadField(__doc.get("networkAccess"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + networkAccess = null; // won't be used but prevents compiler from complaining. + final String __message = "the `networkAccess` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (NetworkAccess_class) class_; + this.networkAccess = (Object) networkAccess; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "networkAccess"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/NetworkAccess_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/NetworkAccess_class.java new file mode 100644 index 00000000..584b1e01 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/NetworkAccess_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum NetworkAccess_class { + NETWORKACCESS("NetworkAccess"); + + private static String[] symbols = new String[] {"NetworkAccess"}; + private String docVal; + + private NetworkAccess_class(final String docVal) { + this.docVal = docVal; + } + + public static NetworkAccess_class fromDocumentVal(final String docVal) { + for(final NetworkAccess_class val : NetworkAccess_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", NetworkAccess_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Operation.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Operation.java similarity index 96% rename from src/main/java/org/w3id/cwl/cwl1_2/Operation.java rename to src/main/java/org/commonwl/cwlsdk/cwl1_2/Operation.java index 6670c394..fe026b94 100644 --- a/src/main/java/org/w3id/cwl/cwl1_2/Operation.java +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Operation.java @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -package org.w3id.cwl.cwl1_2; +package org.commonwl.cwlsdk.cwl1_2; -import org.w3id.cwl.cwl1_2.utils.Saveable; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; /** * Auto-generated interface for https://w3id.org/cwl/cwl#Operation
This interface is implemented by {@link OperationImpl}
@@ -28,6 +29,10 @@ an Operation to a concrete process (such as Workflow,
*/ public interface Operation extends Process, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + /** * Getter for property https://w3id.org/cwl/cwl#Process/id
*
diff --git a/src/main/java/org/w3id/cwl/cwl1_2/OperationImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationImpl.java similarity index 94% rename from src/main/java/org/w3id/cwl/cwl1_2/OperationImpl.java rename to src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationImpl.java index d62238c8..b88a7c0d 100644 --- a/src/main/java/org/w3id/cwl/cwl1_2/OperationImpl.java +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationImpl.java @@ -12,13 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -package org.w3id.cwl.cwl1_2; +package org.commonwl.cwlsdk.cwl1_2; -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; /** * Auto-generated class implementation for https://w3id.org/cwl/cwl#Operation
@@ -35,6 +35,9 @@ public class OperationImpl extends SaveableImpl implements Operation { private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); private java.util.Map extensionFields_ = new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } public java.util.Map getExtensionFields() { return this.extensionFields_; } @@ -202,7 +205,7 @@ public java.util.Optional> getIntent() { } /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of OperationImpl. + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of OperationImpl. * * @param __doc_ Document fragment to load this record object from (presumably a {@link java.util.Map}). @@ -410,5 +413,14 @@ public OperationImpl( this.cwlVersion = (java.util.Optional) cwlVersion; this.intent = (java.util.Optional>) intent; this.class_ = (Operation_class) class_; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } } + private java.util.List attrs = java.util.Arrays.asList("id", "label", "doc", "inputs", "outputs", "requirements", "hints", "cwlVersion", "intent", "class"); } diff --git a/src/main/java/org/w3id/cwl/cwl1_2/OperationInputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationInputParameter.java similarity index 96% rename from src/main/java/org/w3id/cwl/cwl1_2/OperationInputParameter.java rename to src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationInputParameter.java index 42ed2527..0acb947a 100644 --- a/src/main/java/org/w3id/cwl/cwl1_2/OperationInputParameter.java +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationInputParameter.java @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -package org.w3id.cwl.cwl1_2; +package org.commonwl.cwlsdk.cwl1_2; -import org.w3id.cwl.cwl1_2.utils.Saveable; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; /** * Auto-generated interface for https://w3id.org/cwl/cwl#OperationInputParameter
This interface is implemented by {@link OperationInputParameterImpl}
@@ -22,6 +23,10 @@
*/ public interface OperationInputParameter extends InputParameter, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + /** * Getter for property https://w3id.org/cwl/cwl#Identified/id
*
diff --git a/src/main/java/org/w3id/cwl/cwl1_2/OperationInputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationInputParameterImpl.java similarity index 94% rename from src/main/java/org/w3id/cwl/cwl1_2/OperationInputParameterImpl.java rename to src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationInputParameterImpl.java index 4569c98d..88a6c97e 100644 --- a/src/main/java/org/w3id/cwl/cwl1_2/OperationInputParameterImpl.java +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationInputParameterImpl.java @@ -12,13 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -package org.w3id.cwl.cwl1_2; +package org.commonwl.cwlsdk.cwl1_2; -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; /** * Auto-generated class implementation for https://w3id.org/cwl/cwl#OperationInputParameter
@@ -29,6 +29,9 @@ public class OperationInputParameterImpl extends SaveableImpl implements Operati private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); private java.util.Map extensionFields_ = new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } public java.util.Map getExtensionFields() { return this.extensionFields_; } @@ -230,7 +233,7 @@ public Object getType() { } /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of OperationInputParameterImpl. + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of OperationInputParameterImpl. * * @param __doc_ Document fragment to load this record object from (presumably a {@link java.util.Map}). @@ -450,5 +453,14 @@ public OperationInputParameterImpl( this.loadListing = (java.util.Optional) loadListing; this.default_ = (java.util.Optional) default_; this.type = (Object) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } } + private java.util.List attrs = java.util.Arrays.asList("label", "secondaryFiles", "streamable", "doc", "id", "format", "loadContents", "loadListing", "default", "type"); } diff --git a/src/main/java/org/w3id/cwl/cwl1_2/OperationOutputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationOutputParameter.java similarity index 95% rename from src/main/java/org/w3id/cwl/cwl1_2/OperationOutputParameter.java rename to src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationOutputParameter.java index 2939f1d7..aec2a6e5 100644 --- a/src/main/java/org/w3id/cwl/cwl1_2/OperationOutputParameter.java +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationOutputParameter.java @@ -12,9 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -package org.w3id.cwl.cwl1_2; +package org.commonwl.cwlsdk.cwl1_2; -import org.w3id.cwl.cwl1_2.utils.Saveable; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; /** * Auto-generated interface for https://w3id.org/cwl/cwl#OperationOutputParameter
This interface is implemented by {@link OperationOutputParameterImpl}
@@ -22,6 +23,10 @@
*/ public interface OperationOutputParameter extends OutputParameter, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + /** * Getter for property https://w3id.org/cwl/cwl#Identified/id
*
diff --git a/src/main/java/org/w3id/cwl/cwl1_2/OperationOutputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationOutputParameterImpl.java similarity index 92% rename from src/main/java/org/w3id/cwl/cwl1_2/OperationOutputParameterImpl.java rename to src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationOutputParameterImpl.java index 90dedaba..2cb07a23 100644 --- a/src/main/java/org/w3id/cwl/cwl1_2/OperationOutputParameterImpl.java +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OperationOutputParameterImpl.java @@ -12,13 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -package org.w3id.cwl.cwl1_2; +package org.commonwl.cwlsdk.cwl1_2; -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; /** * Auto-generated class implementation for https://w3id.org/cwl/cwl#OperationOutputParameter
@@ -29,6 +29,9 @@ public class OperationOutputParameterImpl extends SaveableImpl implements Operat private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); private java.util.Map extensionFields_ = new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } public java.util.Map getExtensionFields() { return this.extensionFields_; } @@ -170,7 +173,7 @@ public Object getType() { } /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of OperationOutputParameterImpl. + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of OperationOutputParameterImpl. * * @param __doc_ Document fragment to load this record object from (presumably a {@link java.util.Map}). @@ -336,5 +339,14 @@ public OperationOutputParameterImpl( this.id = (java.util.Optional) id; this.format = (Object) format; this.type = (Object) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } } + private java.util.List attrs = java.util.Arrays.asList("label", "secondaryFiles", "streamable", "doc", "id", "format", "type"); } diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Operation_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Operation_class.java similarity index 92% rename from src/main/java/org/w3id/cwl/cwl1_2/Operation_class.java rename to src/main/java/org/commonwl/cwlsdk/cwl1_2/Operation_class.java index d3ca76a9..f102af8a 100644 --- a/src/main/java/org/w3id/cwl/cwl1_2/Operation_class.java +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Operation_class.java @@ -12,9 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -package org.w3id.cwl.cwl1_2; +package org.commonwl.cwlsdk.cwl1_2; -import org.w3id.cwl.cwl1_2.utils.ValidationException; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; public enum Operation_class { OPERATION("Operation"); diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputArraySchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputArraySchema.java new file mode 100644 index 00000000..9fd7d6e9 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputArraySchema.java @@ -0,0 +1,63 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#OutputArraySchema
This interface is implemented by {@link OutputArraySchemaImpl}
+ */ +public interface OutputArraySchema extends CWLArraySchema, OutputSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + Object getItems(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + Array_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputArraySchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputArraySchemaImpl.java new file mode 100644 index 00000000..f638eae4 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputArraySchemaImpl.java @@ -0,0 +1,232 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#OutputArraySchema
+ */ +public class OutputArraySchemaImpl extends SaveableImpl implements OutputArraySchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private Object items; + + /** + * Getter for property https://w3id.org/cwl/salad#items
+ *
+ * Defines the type of the array elements. *
+ */ + + public Object getItems() { + return this.items; + } + + private Array_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `array` *
+ */ + + public Array_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of OutputArraySchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public OutputArraySchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("OutputArraySchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + Object items; + try { + items = + LoaderInstances + .uri_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_False_True_2_None + .loadField(__doc.get("items"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + items = null; // won't be used but prevents compiler from complaining. + final String __message = "the `items` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Array_name type; + try { + type = + LoaderInstances + .typedsl_Array_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.items = (Object) items; + this.type = (Array_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.name = (java.util.Optional) name; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("items", "type", "label", "doc", "name"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputEnumSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputEnumSchema.java new file mode 100644 index 00000000..d6c66bfd --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputEnumSchema.java @@ -0,0 +1,63 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#OutputEnumSchema
This interface is implemented by {@link OutputEnumSchemaImpl}
+ */ +public interface OutputEnumSchema extends EnumSchema, OutputSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + java.util.List getSymbols(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + Enum_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputEnumSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputEnumSchemaImpl.java new file mode 100644 index 00000000..0ecfb5ae --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputEnumSchemaImpl.java @@ -0,0 +1,232 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#OutputEnumSchema
+ */ +public class OutputEnumSchemaImpl extends SaveableImpl implements OutputEnumSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private java.util.List symbols; + + /** + * Getter for property https://w3id.org/cwl/salad#symbols
+ *
+ * Defines the set of valid symbols. *
+ */ + + public java.util.List getSymbols() { + return this.symbols; + } + + private Enum_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `enum` *
+ */ + + public Enum_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of OutputEnumSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public OutputEnumSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("OutputEnumSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + java.util.List symbols; + try { + symbols = + LoaderInstances + .uri_array_of_StringInstance_True_False_None_None + .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + symbols = null; // won't be used but prevents compiler from complaining. + final String __message = "the `symbols` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Enum_name type; + try { + type = + LoaderInstances + .typedsl_Enum_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.name = (java.util.Optional) name; + this.symbols = (java.util.List) symbols; + this.type = (Enum_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("name", "symbols", "type", "label", "doc"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputFormat.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputFormat.java new file mode 100644 index 00000000..c35a393a --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputFormat.java @@ -0,0 +1,39 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#OutputFormat
+ */ +public interface OutputFormat extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + Object getFormat(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputParameter.java new file mode 100644 index 00000000..c6d47671 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputParameter.java @@ -0,0 +1,114 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#OutputParameter
+ */ +public interface OutputParameter extends Parameter, OutputFormat, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + Object getFormat(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputRecordField.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputRecordField.java new file mode 100644 index 00000000..6913c54b --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputRecordField.java @@ -0,0 +1,130 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#OutputRecordField
This interface is implemented by {@link OutputRecordFieldImpl}
+ */ +public interface OutputRecordField extends CWLRecordField, FieldBase, OutputFormat, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + String getName(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + Object getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + Object getFormat(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputRecordFieldImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputRecordFieldImpl.java new file mode 100644 index 00000000..6292695c --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputRecordFieldImpl.java @@ -0,0 +1,346 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#OutputRecordField
+ */ +public class OutputRecordFieldImpl extends SaveableImpl implements OutputRecordField { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private String name; + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + public String getName() { + return this.name; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type + * *
+ */ + + public Object getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional streamable; + + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + public java.util.Optional getStreamable() { + return this.streamable; + } + + private Object format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + public Object getFormat() { + return this.format; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of OutputRecordFieldImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public OutputRecordFieldImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("OutputRecordFieldImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + String name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + if (name == null) { + if (__docRoot != null) { + name = __docRoot; + } else { + throw new ValidationException("Missing name"); + } + } + __baseUri = (String) name; + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object type; + try { + type = + LoaderInstances + .typedsl_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional streamable; + + if (__doc.containsKey("streamable")) { + try { + streamable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + streamable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `streamable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + streamable = null; + } + Object format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.doc = (Object) doc; + this.name = (String) name; + this.type = (Object) type; + this.label = (java.util.Optional) label; + this.secondaryFiles = (Object) secondaryFiles; + this.streamable = (java.util.Optional) streamable; + this.format = (Object) format; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("doc", "name", "type", "label", "secondaryFiles", "streamable", "format"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputRecordSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputRecordSchema.java new file mode 100644 index 00000000..a2cdc0c9 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputRecordSchema.java @@ -0,0 +1,63 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#OutputRecordSchema
This interface is implemented by {@link OutputRecordSchemaImpl}
+ */ +public interface OutputRecordSchema extends CWLRecordSchema, OutputSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + java.util.Optional getName(); + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + java.util.Optional> getFields(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + Record_name getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputRecordSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputRecordSchemaImpl.java new file mode 100644 index 00000000..3b4dcf0e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputRecordSchemaImpl.java @@ -0,0 +1,238 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#OutputRecordSchema
+ */ +public class OutputRecordSchemaImpl extends SaveableImpl implements OutputRecordSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional name; + + /** + * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
+ *
+ * The identifier for this type *
+ */ + + public java.util.Optional getName() { + return this.name; + } + + private java.util.Optional> fields; + + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + public java.util.Optional> getFields() { + return this.fields; + } + + private Record_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + public Record_name getType() { + return this.type; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of OutputRecordSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public OutputRecordSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("OutputRecordSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + Boolean __original_is_null = name == null; + if (name == null) { + if (__docRoot != null) { + name = java.util.Optional.of(__docRoot); + } else { + name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) name.orElse(null); + } + java.util.Optional> fields; + + if (__doc.containsKey("fields")) { + try { + fields = + LoaderInstances + .idmap_fields_optional_array_of_OutputRecordField + .loadField(__doc.get("fields"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + fields = null; // won't be used but prevents compiler from complaining. + final String __message = "the `fields` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + fields = null; + } + Record_name type; + try { + type = + LoaderInstances + .typedsl_Record_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.fields = (java.util.Optional>) fields; + this.type = (Record_name) type; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.name = (java.util.Optional) name; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("fields", "type", "label", "doc", "name"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputSchema.java new file mode 100644 index 00000000..3115db03 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/OutputSchema.java @@ -0,0 +1,42 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#OutputSchema
+ */ +public interface OutputSchema extends IOSchema, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/Parameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Parameter.java new file mode 100644 index 00000000..a416c3ba --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Parameter.java @@ -0,0 +1,105 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#Parameter
+ Define an input or output parameter to a process. +
+ */ +public interface Parameter extends FieldBase, Documented, Identified, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); +} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/PickValueMethod.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/PickValueMethod.java similarity index 93% rename from src/main/java/org/w3id/cwl/cwl1_2/PickValueMethod.java rename to src/main/java/org/commonwl/cwlsdk/cwl1_2/PickValueMethod.java index 163d2657..9cd0bee6 100644 --- a/src/main/java/org/w3id/cwl/cwl1_2/PickValueMethod.java +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/PickValueMethod.java @@ -12,9 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. -package org.w3id.cwl.cwl1_2; +package org.commonwl.cwlsdk.cwl1_2; -import org.w3id.cwl.cwl1_2.utils.ValidationException; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; public enum PickValueMethod { FIRST_NON_NULL("first_non_null"), diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/PrimitiveType.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/PrimitiveType.java new file mode 100644 index 00000000..47f10785 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/PrimitiveType.java @@ -0,0 +1,43 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum PrimitiveType { + NULL("null"), + BOOLEAN("boolean"), + INT("int"), + LONG("long"), + FLOAT("float"), + DOUBLE("double"), + STRING("string"); + + private static String[] symbols = new String[] {"null", "boolean", "int", "long", "float", "double", "string"}; + private String docVal; + + private PrimitiveType(final String docVal) { + this.docVal = docVal; + } + + public static PrimitiveType fromDocumentVal(final String docVal) { + for(final PrimitiveType val : PrimitiveType.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", PrimitiveType.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/Process.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Process.java new file mode 100644 index 00000000..f8caeed8 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Process.java @@ -0,0 +1,128 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#Process
+ + The base executable type in CWL is the `Process` object defined by the + document. Note that the `Process` object is abstract and cannot be + directly executed. +
+ */ +public interface Process extends Identified, Labeled, Documented, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#inputs
+ *
+ * Defines the input parameters of the process. The process is ready to + * run when all required input parameters are associated with concrete + * values. Input parameters include a schema for each parameter which is + * used to validate the input object. It may also be used to build a user + * interface for constructing the input object. + * + * When accepting an input object, all input parameters must have a value. + * If an input parameter is missing from the input object, it must be + * assigned a value of `null` (or the value of `default` for that + * parameter, if provided) for the purposes of validation and evaluation + * of expressions. + * *
+ */ + + java.util.List getInputs(); + /** + * Getter for property https://w3id.org/cwl/cwl#outputs
+ *
+ * Defines the parameters representing the output of the process. May be + * used to generate and/or validate the output object. + * *
+ */ + + java.util.List getOutputs(); + /** + * Getter for property https://w3id.org/cwl/cwl#requirements
+ *
+ * Declares requirements that apply to either the runtime environment or the + * workflow engine that must be met in order to execute this process. If + * an implementation cannot satisfy all requirements, or a requirement is + * listed which is not recognized by the implementation, it is a fatal + * error and the implementation must not attempt to run the process, + * unless overridden at user option. + * *
+ */ + + java.util.Optional> getRequirements(); + /** + * Getter for property https://w3id.org/cwl/cwl#hints
+ *
+ * Declares hints applying to either the runtime environment or the + * workflow engine that may be helpful in executing this process. It is + * not an error if an implementation cannot satisfy all hints, however + * the implementation may report a warning. + * *
+ */ + + java.util.Optional> getHints(); + /** + * Getter for property https://w3id.org/cwl/cwl#cwlVersion
+ *
+ * CWL document version. Always required at the document root. Not + * required for a Process embedded inside another Process. + * *
+ */ + + java.util.Optional getCwlVersion(); + /** + * Getter for property https://w3id.org/cwl/cwl#Process/intent
+ *
+ * An identifier for the type of computational operation, of this Process. + * Especially useful for [`Operation`](Workflow.html#Operation), but can also be used for + * [`CommandLineTool`](CommandLineTool.html#CommandLineTool), + * [`Workflow`](Workflow.html#Workflow), or [ExpressionTool](Workflow.html#ExpressionTool). + * + * If provided, then this must be an IRI of a concept node that + * represents the type of operation, preferably defined within an ontology. + * + * For example, in the domain of bioinformatics, one can use an IRI from + * the EDAM Ontology's [Operation concept nodes](http://edamontology.org/operation_0004), + * like [Alignment](http://edamontology.org/operation_2928), + * or [Clustering](http://edamontology.org/operation_3432); or a more + * specific Operation concept like + * [Split read mapping](http://edamontology.org/operation_3199). + * *
+ */ + + java.util.Optional> getIntent(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ProcessRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ProcessRequirement.java new file mode 100644 index 00000000..5ade099b --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ProcessRequirement.java @@ -0,0 +1,35 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#ProcessRequirement
+ A process requirement declares a prerequisite that may or must be fulfilled + before executing a process. See [`Process.hints`](#process) and + [`Process.requirements`](#process). + + Process requirements are the primary mechanism for specifying extensions to + the CWL core specification. +
+ */ +public interface ProcessRequirement extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/RecordField.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/RecordField.java new file mode 100644 index 00000000..c476e818 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/RecordField.java @@ -0,0 +1,54 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/salad#RecordField
This interface is implemented by {@link RecordFieldImpl}
+ A field of a record.
+ */ +public interface RecordField extends Documented, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + String getName(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type. If it is an array, it indicates + * that the field type is a union type of its elements. + * Its elements may be duplicated. + * *
+ */ + + Object getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/RecordFieldImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/RecordFieldImpl.java new file mode 100644 index 00000000..3493cd90 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/RecordFieldImpl.java @@ -0,0 +1,178 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/salad#RecordField
+ A field of a record.
+ */ +public class RecordFieldImpl extends SaveableImpl implements RecordField { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private String name; + + /** + * Getter for property https://w3id.org/cwl/salad#RecordField/name
+ *
+ * The name of the field + * *
+ */ + + public String getName() { + return this.name; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * The field type. If it is an array, it indicates + * that the field type is a union type of its elements. + * Its elements may be duplicated. + * *
+ */ + + public Object getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of RecordFieldImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public RecordFieldImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("RecordFieldImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + String name; + + if (__doc.containsKey("name")) { + try { + name = + LoaderInstances + .uri_StringInstance_True_False_None_None + .loadField(__doc.get("name"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + name = null; // won't be used but prevents compiler from complaining. + final String __message = "the `name` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + name = null; + } + + if (name == null) { + if (__docRoot != null) { + name = __docRoot; + } else { + throw new ValidationException("Missing name"); + } + } + __baseUri = (String) name; + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object type; + try { + type = + LoaderInstances + .typedsl_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_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.doc = (Object) doc; + this.name = (String) name; + this.type = (Object) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("doc", "name", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/RecordSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/RecordSchema.java new file mode 100644 index 00000000..527a094a --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/RecordSchema.java @@ -0,0 +1,42 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/salad#RecordSchema
This interface is implemented by {@link RecordSchemaImpl}
+ */ +public interface RecordSchema extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + java.util.Optional> getFields(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + Record_name getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/RecordSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/RecordSchemaImpl.java new file mode 100644 index 00000000..70728cf2 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/RecordSchemaImpl.java @@ -0,0 +1,134 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/salad#RecordSchema
+ */ +public class RecordSchemaImpl extends SaveableImpl implements RecordSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional> fields; + + /** + * Getter for property https://w3id.org/cwl/salad#fields
+ *
+ * Defines the fields of the record. *
+ */ + + public java.util.Optional> getFields() { + return this.fields; + } + + private Record_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `record` *
+ */ + + public Record_name getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of RecordSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public RecordSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("RecordSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional> fields; + + if (__doc.containsKey("fields")) { + try { + fields = + LoaderInstances + .idmap_fields_optional_array_of_RecordField + .loadField(__doc.get("fields"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + fields = null; // won't be used but prevents compiler from complaining. + final String __message = "the `fields` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + fields = null; + } + Record_name type; + try { + type = + LoaderInstances + .typedsl_Record_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.fields = (java.util.Optional>) fields; + this.type = (Record_name) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("fields", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/Record_name.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Record_name.java new file mode 100644 index 00000000..a1c07e90 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Record_name.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum Record_name { + RECORD("record"); + + private static String[] symbols = new String[] {"record"}; + private String docVal; + + private Record_name(final String docVal) { + this.docVal = docVal; + } + + public static Record_name fromDocumentVal(final String docVal) { + for(final Record_name val : Record_name.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", Record_name.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ResourceRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ResourceRequirement.java new file mode 100644 index 00000000..f1dda9ef --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ResourceRequirement.java @@ -0,0 +1,175 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#ResourceRequirement
This interface is implemented by {@link ResourceRequirementImpl}
+ Specify basic hardware resource requirements. + + "min" is the minimum amount of a resource that must be reserved to + schedule a job. If "min" cannot be satisfied, the job should not + be run. + + "max" is the maximum amount of a resource that the job shall be + allocated. If a node has sufficient resources, multiple jobs may + be scheduled on a single node provided each job's "max" resource + requirements are met. If a job attempts to exceed its resource + allocation, an implementation may deny additional resources, which + may result in job failure. + + If both "min" and "max" are specified, an implementation may + choose to allocate any amount between "min" and "max", with the + actual allocation provided in the `runtime` object. + + If "min" is specified but "max" is not, then "max" == "min" + If "max" is specified by "min" is not, then "min" == "max". + + It is an error if max < min. + + It is an error if the value of any of these fields is negative. + + If neither "min" nor "max" is specified for a resource, use the default values below. +
+ */ +public interface ResourceRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/class
+ *
+ * Always 'ResourceRequirement' *
+ */ + + ResourceRequirement_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/coresMin
+ *
+ * Minimum reserved number of CPU cores (default is 1). + * + * May be a fractional value to indicate to a scheduling + * algorithm that one core can be allocated to multiple + * jobs. For example, a value of 0.25 indicates that up to 4 + * jobs may run in parallel on 1 core. A value of 1.25 means + * that up to 3 jobs can run on a 4 core system (4/1.25 ≈ 3). + * + * Processes can only share a core allocation if the sum of each + * of their `ramMax`, `tmpdirMax`, and `outdirMax` requests also + * do not exceed the capacity of the node. + * + * Processes sharing a core must have the same level of isolation + * (typically a container or VM) that they would normally have. + * + * The reported number of CPU cores reserved for the process, + * which is available to expressions on the CommandLineTool as + * `runtime.cores`, must be a non-zero integer, and may be + * calculated by rounding up the cores request to the next whole + * number. + * + * Scheduling systems may allocate fractional CPU resources by + * setting quotas or scheduling weights. Scheduling systems that + * do not support fractional CPUs may round up the request to the + * next whole number. + * *
+ */ + + Object getCoresMin(); + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/coresMax
+ *
+ * Maximum reserved number of CPU cores. + * + * See `coresMin` for discussion about fractional CPU requests. + * *
+ */ + + Object getCoresMax(); + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/ramMin
+ *
+ * Minimum reserved RAM in mebibytes (2**20) (default is 256) + * + * May be a fractional value. If so, the actual RAM request must + * be rounded up to the next whole number. The reported amount of + * RAM reserved for the process, which is available to + * expressions on the CommandLineTool as `runtime.ram`, must be a + * non-zero integer. + * *
+ */ + + Object getRamMin(); + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/ramMax
+ *
+ * Maximum reserved RAM in mebibytes (2**20) + * + * See `ramMin` for discussion about fractional RAM requests. + * *
+ */ + + Object getRamMax(); + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/tmpdirMin
+ *
+ * Minimum reserved filesystem based storage for the designated temporary directory, in mebibytes (2**20) (default is 1024) + * + * May be a fractional value. If so, the actual storage request + * must be rounded up to the next whole number. The reported + * amount of storage reserved for the process, which is available + * to expressions on the CommandLineTool as `runtime.tmpdirSize`, + * must be a non-zero integer. + * *
+ */ + + Object getTmpdirMin(); + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/tmpdirMax
+ *
+ * Maximum reserved filesystem based storage for the designated temporary directory, in mebibytes (2**20) + * + * See `tmpdirMin` for discussion about fractional storage requests. + * *
+ */ + + Object getTmpdirMax(); + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/outdirMin
+ *
+ * Minimum reserved filesystem based storage for the designated output directory, in mebibytes (2**20) (default is 1024) + * + * May be a fractional value. If so, the actual storage request + * must be rounded up to the next whole number. The reported + * amount of storage reserved for the process, which is available + * to expressions on the CommandLineTool as `runtime.outdirSize`, + * must be a non-zero integer. + * *
+ */ + + Object getOutdirMin(); + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/outdirMax
+ *
+ * Maximum reserved filesystem based storage for the designated output directory, in mebibytes (2**20) + * + * See `outdirMin` for discussion about fractional storage requests. + * *
+ */ + + Object getOutdirMax(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ResourceRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ResourceRequirementImpl.java new file mode 100644 index 00000000..f0f503f5 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ResourceRequirementImpl.java @@ -0,0 +1,428 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#ResourceRequirement
+ Specify basic hardware resource requirements. + + "min" is the minimum amount of a resource that must be reserved to + schedule a job. If "min" cannot be satisfied, the job should not + be run. + + "max" is the maximum amount of a resource that the job shall be + allocated. If a node has sufficient resources, multiple jobs may + be scheduled on a single node provided each job's "max" resource + requirements are met. If a job attempts to exceed its resource + allocation, an implementation may deny additional resources, which + may result in job failure. + + If both "min" and "max" are specified, an implementation may + choose to allocate any amount between "min" and "max", with the + actual allocation provided in the `runtime` object. + + If "min" is specified but "max" is not, then "max" == "min" + If "max" is specified by "min" is not, then "min" == "max". + + It is an error if max < min. + + It is an error if the value of any of these fields is negative. + + If neither "min" nor "max" is specified for a resource, use the default values below. +
+ */ +public class ResourceRequirementImpl extends SaveableImpl implements ResourceRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private ResourceRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/class
+ *
+ * Always 'ResourceRequirement' *
+ */ + + public ResourceRequirement_class getClass_() { + return this.class_; + } + + private Object coresMin; + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/coresMin
+ *
+ * Minimum reserved number of CPU cores (default is 1). + * + * May be a fractional value to indicate to a scheduling + * algorithm that one core can be allocated to multiple + * jobs. For example, a value of 0.25 indicates that up to 4 + * jobs may run in parallel on 1 core. A value of 1.25 means + * that up to 3 jobs can run on a 4 core system (4/1.25 ≈ 3). + * + * Processes can only share a core allocation if the sum of each + * of their `ramMax`, `tmpdirMax`, and `outdirMax` requests also + * do not exceed the capacity of the node. + * + * Processes sharing a core must have the same level of isolation + * (typically a container or VM) that they would normally have. + * + * The reported number of CPU cores reserved for the process, + * which is available to expressions on the CommandLineTool as + * `runtime.cores`, must be a non-zero integer, and may be + * calculated by rounding up the cores request to the next whole + * number. + * + * Scheduling systems may allocate fractional CPU resources by + * setting quotas or scheduling weights. Scheduling systems that + * do not support fractional CPUs may round up the request to the + * next whole number. + * *
+ */ + + public Object getCoresMin() { + return this.coresMin; + } + + private Object coresMax; + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/coresMax
+ *
+ * Maximum reserved number of CPU cores. + * + * See `coresMin` for discussion about fractional CPU requests. + * *
+ */ + + public Object getCoresMax() { + return this.coresMax; + } + + private Object ramMin; + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/ramMin
+ *
+ * Minimum reserved RAM in mebibytes (2**20) (default is 256) + * + * May be a fractional value. If so, the actual RAM request must + * be rounded up to the next whole number. The reported amount of + * RAM reserved for the process, which is available to + * expressions on the CommandLineTool as `runtime.ram`, must be a + * non-zero integer. + * *
+ */ + + public Object getRamMin() { + return this.ramMin; + } + + private Object ramMax; + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/ramMax
+ *
+ * Maximum reserved RAM in mebibytes (2**20) + * + * See `ramMin` for discussion about fractional RAM requests. + * *
+ */ + + public Object getRamMax() { + return this.ramMax; + } + + private Object tmpdirMin; + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/tmpdirMin
+ *
+ * Minimum reserved filesystem based storage for the designated temporary directory, in mebibytes (2**20) (default is 1024) + * + * May be a fractional value. If so, the actual storage request + * must be rounded up to the next whole number. The reported + * amount of storage reserved for the process, which is available + * to expressions on the CommandLineTool as `runtime.tmpdirSize`, + * must be a non-zero integer. + * *
+ */ + + public Object getTmpdirMin() { + return this.tmpdirMin; + } + + private Object tmpdirMax; + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/tmpdirMax
+ *
+ * Maximum reserved filesystem based storage for the designated temporary directory, in mebibytes (2**20) + * + * See `tmpdirMin` for discussion about fractional storage requests. + * *
+ */ + + public Object getTmpdirMax() { + return this.tmpdirMax; + } + + private Object outdirMin; + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/outdirMin
+ *
+ * Minimum reserved filesystem based storage for the designated output directory, in mebibytes (2**20) (default is 1024) + * + * May be a fractional value. If so, the actual storage request + * must be rounded up to the next whole number. The reported + * amount of storage reserved for the process, which is available + * to expressions on the CommandLineTool as `runtime.outdirSize`, + * must be a non-zero integer. + * *
+ */ + + public Object getOutdirMin() { + return this.outdirMin; + } + + private Object outdirMax; + + /** + * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/outdirMax
+ *
+ * Maximum reserved filesystem based storage for the designated output directory, in mebibytes (2**20) + * + * See `outdirMin` for discussion about fractional storage requests. + * *
+ */ + + public Object getOutdirMax() { + return this.outdirMax; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of ResourceRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public ResourceRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("ResourceRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + ResourceRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_ResourceRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Object coresMin; + + if (__doc.containsKey("coresMin")) { + try { + coresMin = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_DoubleInstance_or_ExpressionLoader + .loadField(__doc.get("coresMin"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + coresMin = null; // won't be used but prevents compiler from complaining. + final String __message = "the `coresMin` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + coresMin = null; + } + Object coresMax; + + if (__doc.containsKey("coresMax")) { + try { + coresMax = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_DoubleInstance_or_ExpressionLoader + .loadField(__doc.get("coresMax"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + coresMax = null; // won't be used but prevents compiler from complaining. + final String __message = "the `coresMax` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + coresMax = null; + } + Object ramMin; + + if (__doc.containsKey("ramMin")) { + try { + ramMin = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_DoubleInstance_or_ExpressionLoader + .loadField(__doc.get("ramMin"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + ramMin = null; // won't be used but prevents compiler from complaining. + final String __message = "the `ramMin` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + ramMin = null; + } + Object ramMax; + + if (__doc.containsKey("ramMax")) { + try { + ramMax = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_DoubleInstance_or_ExpressionLoader + .loadField(__doc.get("ramMax"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + ramMax = null; // won't be used but prevents compiler from complaining. + final String __message = "the `ramMax` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + ramMax = null; + } + Object tmpdirMin; + + if (__doc.containsKey("tmpdirMin")) { + try { + tmpdirMin = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_DoubleInstance_or_ExpressionLoader + .loadField(__doc.get("tmpdirMin"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + tmpdirMin = null; // won't be used but prevents compiler from complaining. + final String __message = "the `tmpdirMin` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + tmpdirMin = null; + } + Object tmpdirMax; + + if (__doc.containsKey("tmpdirMax")) { + try { + tmpdirMax = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_DoubleInstance_or_ExpressionLoader + .loadField(__doc.get("tmpdirMax"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + tmpdirMax = null; // won't be used but prevents compiler from complaining. + final String __message = "the `tmpdirMax` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + tmpdirMax = null; + } + Object outdirMin; + + if (__doc.containsKey("outdirMin")) { + try { + outdirMin = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_DoubleInstance_or_ExpressionLoader + .loadField(__doc.get("outdirMin"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + outdirMin = null; // won't be used but prevents compiler from complaining. + final String __message = "the `outdirMin` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + outdirMin = null; + } + Object outdirMax; + + if (__doc.containsKey("outdirMax")) { + try { + outdirMax = + LoaderInstances + .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_DoubleInstance_or_ExpressionLoader + .loadField(__doc.get("outdirMax"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + outdirMax = null; // won't be used but prevents compiler from complaining. + final String __message = "the `outdirMax` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + outdirMax = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (ResourceRequirement_class) class_; + this.coresMin = (Object) coresMin; + this.coresMax = (Object) coresMax; + this.ramMin = (Object) ramMin; + this.ramMax = (Object) ramMax; + this.tmpdirMin = (Object) tmpdirMin; + this.tmpdirMax = (Object) tmpdirMax; + this.outdirMin = (Object) outdirMin; + this.outdirMax = (Object) outdirMax; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "coresMin", "coresMax", "ramMin", "ramMax", "tmpdirMin", "tmpdirMax", "outdirMin", "outdirMax"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ResourceRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ResourceRequirement_class.java new file mode 100644 index 00000000..7aeb43b7 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ResourceRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum ResourceRequirement_class { + RESOURCEREQUIREMENT("ResourceRequirement"); + + private static String[] symbols = new String[] {"ResourceRequirement"}; + private String docVal; + + private ResourceRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static ResourceRequirement_class fromDocumentVal(final String docVal) { + for(final ResourceRequirement_class val : ResourceRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", ResourceRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ScatterFeatureRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ScatterFeatureRequirement.java new file mode 100644 index 00000000..4068fe07 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ScatterFeatureRequirement.java @@ -0,0 +1,38 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#ScatterFeatureRequirement
This interface is implemented by {@link ScatterFeatureRequirementImpl}
+ Indicates that the workflow platform must support the `scatter` and + `scatterMethod` fields of [WorkflowStep](#WorkflowStep). +
+ */ +public interface ScatterFeatureRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#ScatterFeatureRequirement/class
+ *
+ * Always 'ScatterFeatureRequirement' *
+ */ + + ScatterFeatureRequirement_class getClass_(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ScatterFeatureRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ScatterFeatureRequirementImpl.java new file mode 100644 index 00000000..0718a6b2 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ScatterFeatureRequirementImpl.java @@ -0,0 +1,107 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#ScatterFeatureRequirement
+ Indicates that the workflow platform must support the `scatter` and + `scatterMethod` fields of [WorkflowStep](#WorkflowStep). +
+ */ +public class ScatterFeatureRequirementImpl extends SaveableImpl implements ScatterFeatureRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private ScatterFeatureRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#ScatterFeatureRequirement/class
+ *
+ * Always 'ScatterFeatureRequirement' *
+ */ + + public ScatterFeatureRequirement_class getClass_() { + return this.class_; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of ScatterFeatureRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public ScatterFeatureRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("ScatterFeatureRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + ScatterFeatureRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_ScatterFeatureRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (ScatterFeatureRequirement_class) class_; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ScatterFeatureRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ScatterFeatureRequirement_class.java new file mode 100644 index 00000000..713f1fcd --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ScatterFeatureRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum ScatterFeatureRequirement_class { + SCATTERFEATUREREQUIREMENT("ScatterFeatureRequirement"); + + private static String[] symbols = new String[] {"ScatterFeatureRequirement"}; + private String docVal; + + private ScatterFeatureRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static ScatterFeatureRequirement_class fromDocumentVal(final String docVal) { + for(final ScatterFeatureRequirement_class val : ScatterFeatureRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", ScatterFeatureRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ScatterMethod.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ScatterMethod.java new file mode 100644 index 00000000..24c76529 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ScatterMethod.java @@ -0,0 +1,39 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum ScatterMethod { + DOTPRODUCT("dotproduct"), + NESTED_CROSSPRODUCT("nested_crossproduct"), + FLAT_CROSSPRODUCT("flat_crossproduct"); + + private static String[] symbols = new String[] {"dotproduct", "nested_crossproduct", "flat_crossproduct"}; + private String docVal; + + private ScatterMethod(final String docVal) { + this.docVal = docVal; + } + + public static ScatterMethod fromDocumentVal(final String docVal) { + for(final ScatterMethod val : ScatterMethod.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", ScatterMethod.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/SchemaDefRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SchemaDefRequirement.java new file mode 100644 index 00000000..6473059a --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SchemaDefRequirement.java @@ -0,0 +1,55 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#SchemaDefRequirement
This interface is implemented by {@link SchemaDefRequirementImpl}
+ This field consists of an array of type definitions which must be used when + interpreting the `inputs` and `outputs` fields. When a `type` field + contains a IRI, the implementation must check if the type is defined in + `schemaDefs` and use that definition. If the type is not found in + `schemaDefs`, it is an error. The entries in `schemaDefs` must be + processed in the order listed such that later schema definitions may refer + to earlier schema definitions. + + - **Type definitions are allowed for `enum` and `record` types only.** + - Type definitions may be shared by defining them in a file and then + `$include`-ing them in the `types` field. + - A file can contain a list of type definitions +
+ */ +public interface SchemaDefRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#SchemaDefRequirement/class
+ *
+ * Always 'SchemaDefRequirement' *
+ */ + + SchemaDefRequirement_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#SchemaDefRequirement/types
+ *
+ * The list of type definitions. *
+ */ + + java.util.List getTypes(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/SchemaDefRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SchemaDefRequirementImpl.java new file mode 100644 index 00000000..765d9032 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SchemaDefRequirementImpl.java @@ -0,0 +1,141 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#SchemaDefRequirement
+ This field consists of an array of type definitions which must be used when + interpreting the `inputs` and `outputs` fields. When a `type` field + contains a IRI, the implementation must check if the type is defined in + `schemaDefs` and use that definition. If the type is not found in + `schemaDefs`, it is an error. The entries in `schemaDefs` must be + processed in the order listed such that later schema definitions may refer + to earlier schema definitions. + + - **Type definitions are allowed for `enum` and `record` types only.** + - Type definitions may be shared by defining them in a file and then + `$include`-ing them in the `types` field. + - A file can contain a list of type definitions +
+ */ +public class SchemaDefRequirementImpl extends SaveableImpl implements SchemaDefRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private SchemaDefRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#SchemaDefRequirement/class
+ *
+ * Always 'SchemaDefRequirement' *
+ */ + + public SchemaDefRequirement_class getClass_() { + return this.class_; + } + + private java.util.List types; + + /** + * Getter for property https://w3id.org/cwl/cwl#SchemaDefRequirement/types
+ *
+ * The list of type definitions. *
+ */ + + public java.util.List getTypes() { + return this.types; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of SchemaDefRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public SchemaDefRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("SchemaDefRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + SchemaDefRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_SchemaDefRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.List types; + try { + types = + LoaderInstances + .array_of_union_of_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema + .loadField(__doc.get("types"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + types = null; // won't be used but prevents compiler from complaining. + final String __message = "the `types` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (SchemaDefRequirement_class) class_; + this.types = (java.util.List) types; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "types"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/SchemaDefRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SchemaDefRequirement_class.java new file mode 100644 index 00000000..8c657758 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SchemaDefRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum SchemaDefRequirement_class { + SCHEMADEFREQUIREMENT("SchemaDefRequirement"); + + private static String[] symbols = new String[] {"SchemaDefRequirement"}; + private String docVal; + + private SchemaDefRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static SchemaDefRequirement_class fromDocumentVal(final String docVal) { + for(final SchemaDefRequirement_class val : SchemaDefRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", SchemaDefRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/SecondaryFileSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SecondaryFileSchema.java new file mode 100644 index 00000000..1150e8c1 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SecondaryFileSchema.java @@ -0,0 +1,110 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#SecondaryFileSchema
This interface is implemented by {@link SecondaryFileSchemaImpl}
+ Secondary files are specified using the following micro-DSL for secondary files: + + * If the value is a string, it is transformed to an object with two fields + `pattern` and `required` + * By default, the value of `required` is `null` + (this indicates default behavior, which may be based on the context) + * If the value ends with a question mark `?` the question mark is + stripped off and the value of the field `required` is set to `False` + * The remaining value is assigned to the field `pattern` + + For implementation details and examples, please see + [this section](SchemaSalad.html#Domain_Specific_Language_for_secondary_files) + in the Schema Salad specification. +
+ */ +public interface SecondaryFileSchema extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#SecondaryFileSchema/pattern
+ *
+ * Provides a pattern or expression specifying files or directories that + * should be included alongside the primary file. + * + * If the value is an expression, the value of `self` in the + * expression must be the primary input or output File object to + * which this binding applies. The `basename`, `nameroot` and + * `nameext` fields must be present in `self`. For + * `CommandLineTool` inputs the `location` field must also be + * present. For `CommandLineTool` outputs the `path` field must + * also be present. If secondary files were included on an input + * File object as part of the Process invocation, they must also + * be present in `secondaryFiles` on `self`. + * + * The expression must return either: a filename string relative + * to the path to the primary File, a File or Directory object + * (`class: File` or `class: Directory`) with either `location` + * (for inputs) or `path` (for outputs) and `basename` fields + * set, or an array consisting of strings or File or Directory + * objects as previously described. + * + * It is legal to use `location` from a File or Directory object + * passed in as input, including `location` from secondary files + * on `self`. If an expression returns a File object with the + * same `location` but a different `basename` as a secondary file + * that was passed in, the expression result takes precedence. + * Setting the basename with an expression this way affects the + * `path` where the secondary file will be staged to in the + * CommandLineTool. + * + * The expression may return "null" in which case there is no + * secondary file from that expression. + * + * To work on non-filename-preserving storage systems, portable + * tool descriptions should treat `location` as an + * [opaque identifier](#opaque-strings) and avoid constructing new + * values from `location`, but should construct relative references + * using `basename` or `nameroot` instead, or propagate `location` + * from defined inputs. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getPattern(); + /** + * Getter for property https://w3id.org/cwl/cwl#SecondaryFileSchema/required
+ *
+ * An implementation must not fail workflow execution if `required` is + * set to `false` and the expected secondary file does not exist. + * Default value for `required` field is `true` for secondary files on + * input and `false` for secondary files on output. + * *
+ */ + + Object getRequired(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/SecondaryFileSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SecondaryFileSchemaImpl.java new file mode 100644 index 00000000..a677c1fd --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SecondaryFileSchemaImpl.java @@ -0,0 +1,202 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#SecondaryFileSchema
+ Secondary files are specified using the following micro-DSL for secondary files: + + * If the value is a string, it is transformed to an object with two fields + `pattern` and `required` + * By default, the value of `required` is `null` + (this indicates default behavior, which may be based on the context) + * If the value ends with a question mark `?` the question mark is + stripped off and the value of the field `required` is set to `False` + * The remaining value is assigned to the field `pattern` + + For implementation details and examples, please see + [this section](SchemaSalad.html#Domain_Specific_Language_for_secondary_files) + in the Schema Salad specification. +
+ */ +public class SecondaryFileSchemaImpl extends SaveableImpl implements SecondaryFileSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private Object pattern; + + /** + * Getter for property https://w3id.org/cwl/cwl#SecondaryFileSchema/pattern
+ *
+ * Provides a pattern or expression specifying files or directories that + * should be included alongside the primary file. + * + * If the value is an expression, the value of `self` in the + * expression must be the primary input or output File object to + * which this binding applies. The `basename`, `nameroot` and + * `nameext` fields must be present in `self`. For + * `CommandLineTool` inputs the `location` field must also be + * present. For `CommandLineTool` outputs the `path` field must + * also be present. If secondary files were included on an input + * File object as part of the Process invocation, they must also + * be present in `secondaryFiles` on `self`. + * + * The expression must return either: a filename string relative + * to the path to the primary File, a File or Directory object + * (`class: File` or `class: Directory`) with either `location` + * (for inputs) or `path` (for outputs) and `basename` fields + * set, or an array consisting of strings or File or Directory + * objects as previously described. + * + * It is legal to use `location` from a File or Directory object + * passed in as input, including `location` from secondary files + * on `self`. If an expression returns a File object with the + * same `location` but a different `basename` as a secondary file + * that was passed in, the expression result takes precedence. + * Setting the basename with an expression this way affects the + * `path` where the secondary file will be staged to in the + * CommandLineTool. + * + * The expression may return "null" in which case there is no + * secondary file from that expression. + * + * To work on non-filename-preserving storage systems, portable + * tool descriptions should treat `location` as an + * [opaque identifier](#opaque-strings) and avoid constructing new + * values from `location`, but should construct relative references + * using `basename` or `nameroot` instead, or propagate `location` + * from defined inputs. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getPattern() { + return this.pattern; + } + + private Object required; + + /** + * Getter for property https://w3id.org/cwl/cwl#SecondaryFileSchema/required
+ *
+ * An implementation must not fail workflow execution if `required` is + * set to `false` and the expected secondary file does not exist. + * Default value for `required` field is `true` for secondary files on + * input and `false` for secondary files on output. + * *
+ */ + + public Object getRequired() { + return this.required; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of SecondaryFileSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public SecondaryFileSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("SecondaryFileSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + Object pattern; + try { + pattern = + LoaderInstances + .union_of_StringInstance_or_ExpressionLoader + .loadField(__doc.get("pattern"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + pattern = null; // won't be used but prevents compiler from complaining. + final String __message = "the `pattern` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Object required; + + if (__doc.containsKey("required")) { + try { + required = + LoaderInstances + .union_of_NullInstance_or_BooleanInstance_or_ExpressionLoader + .loadField(__doc.get("required"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + required = null; // won't be used but prevents compiler from complaining. + final String __message = "the `required` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + required = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.pattern = (Object) pattern; + this.required = (Object) required; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("pattern", "required"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ShellCommandRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ShellCommandRequirement.java new file mode 100644 index 00000000..f56d6bc8 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ShellCommandRequirement.java @@ -0,0 +1,43 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#ShellCommandRequirement
This interface is implemented by {@link ShellCommandRequirementImpl}
+ Modify the behavior of CommandLineTool to generate a single string + containing a shell command line. Each item in the `arguments` list must + be joined into a string separated by single spaces and quoted to prevent + interpretation by the shell, unless `CommandLineBinding` for that argument + contains `shellQuote: false`. If `shellQuote: false` is specified, the + argument is joined into the command string without quoting, which allows + the use of shell metacharacters such as `|` for pipes. +
+ */ +public interface ShellCommandRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#ShellCommandRequirement/class
+ *
+ * Always 'ShellCommandRequirement' *
+ */ + + ShellCommandRequirement_class getClass_(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ShellCommandRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ShellCommandRequirementImpl.java new file mode 100644 index 00000000..65352c3d --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ShellCommandRequirementImpl.java @@ -0,0 +1,112 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#ShellCommandRequirement
+ Modify the behavior of CommandLineTool to generate a single string + containing a shell command line. Each item in the `arguments` list must + be joined into a string separated by single spaces and quoted to prevent + interpretation by the shell, unless `CommandLineBinding` for that argument + contains `shellQuote: false`. If `shellQuote: false` is specified, the + argument is joined into the command string without quoting, which allows + the use of shell metacharacters such as `|` for pipes. +
+ */ +public class ShellCommandRequirementImpl extends SaveableImpl implements ShellCommandRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private ShellCommandRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#ShellCommandRequirement/class
+ *
+ * Always 'ShellCommandRequirement' *
+ */ + + public ShellCommandRequirement_class getClass_() { + return this.class_; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of ShellCommandRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public ShellCommandRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("ShellCommandRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + ShellCommandRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_ShellCommandRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (ShellCommandRequirement_class) class_; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ShellCommandRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ShellCommandRequirement_class.java new file mode 100644 index 00000000..aa16182b --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ShellCommandRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum ShellCommandRequirement_class { + SHELLCOMMANDREQUIREMENT("ShellCommandRequirement"); + + private static String[] symbols = new String[] {"ShellCommandRequirement"}; + private String docVal; + + private ShellCommandRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static ShellCommandRequirement_class fromDocumentVal(final String docVal) { + for(final ShellCommandRequirement_class val : ShellCommandRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", ShellCommandRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/Sink.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Sink.java new file mode 100644 index 00000000..9156ecd9 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Sink.java @@ -0,0 +1,54 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#Sink
+ */ +public interface Sink extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#source
+ *
+ * Specifies one or more workflow parameters that will provide input to + * the underlying step parameter. + * *
+ */ + + Object getSource(); + /** + * Getter for property https://w3id.org/cwl/cwl#Sink/linkMerge
+ *
+ * The method to use to merge multiple inbound links into a single array. + * If not specified, the default method is "merge_nested". + * *
+ */ + + java.util.Optional getLinkMerge(); + /** + * Getter for property https://w3id.org/cwl/cwl#Sink/pickValue
+ *
+ * The method to use to choose non-null elements among multiple sources. + * *
+ */ + + java.util.Optional getPickValue(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/SoftwarePackage.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SoftwarePackage.java new file mode 100644 index 00000000..c64db064 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SoftwarePackage.java @@ -0,0 +1,95 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#SoftwarePackage
This interface is implemented by {@link SoftwarePackageImpl}
+ */ +public interface SoftwarePackage extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/package
+ *
+ * The name of the software to be made available. If the name is + * common, inconsistent, or otherwise ambiguous it should be combined with + * one or more identifiers in the `specs` field. + * *
+ */ + + String getPackage(); + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/version
+ *
+ * The (optional) versions of the software that are known to be + * compatible. + * *
+ */ + + java.util.Optional> getVersion(); + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/specs
+ *
+ * One or more [IRI](https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier)s + * identifying resources for installing or enabling the software named in + * the `package` field. Implementations may provide resolvers which map + * these software identifier IRIs to some configuration action; or they can + * use only the name from the `package` field on a best effort basis. + * + * For example, the IRI https://packages.debian.org/bowtie could + * be resolved with `apt-get install bowtie`. The IRI + * https://anaconda.org/bioconda/bowtie could be resolved with `conda + * install -c bioconda bowtie`. + * + * IRIs can also be system independent and used to map to a specific + * software installation or selection mechanism. + * Using [RRID](https://www.identifiers.org/rrid/) as an example: + * https://identifiers.org/rrid/RRID:SCR_005476 + * could be fulfilled using the above-mentioned Debian or bioconda + * package, a local installation managed by [Environment Modules](https://modules.sourceforge.net/), + * or any other mechanism the platform chooses. IRIs can also be from + * identifier sources that are discipline specific yet still system + * independent. As an example, the equivalent [ELIXIR Tools and Data + * Service Registry](https://bio.tools) IRI to the previous RRID example is + * https://bio.tools/tool/bowtie2/version/2.2.8. + * If supported by a given registry, implementations are encouraged to + * query these system independent software identifier IRIs directly for + * links to packaging systems. + * + * A site specific IRI can be listed as well. For example, an academic + * computing cluster using Environment Modules could list the IRI + * `https://hpc.example.edu/modules/bowtie-tbb/1.22` to indicate that + * `module load bowtie-tbb/1.1.2` should be executed to make available + * `bowtie` version 1.1.2 compiled with the TBB library prior to running + * the accompanying Workflow or CommandLineTool. Note that the example IRI + * is specific to a particular institution and computing environment as + * the Environment Modules system does not have a common namespace or + * standardized naming convention. + * + * This last example is the least portable and should only be used if + * mechanisms based off of the `package` field or more generic IRIs are + * unavailable or unsuitable. While harmless to other sites, site specific + * software IRIs should be left out of shared CWL descriptions to avoid + * clutter. + * *
+ */ + + java.util.Optional> getSpecs(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/SoftwarePackageImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SoftwarePackageImpl.java new file mode 100644 index 00000000..9f352107 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SoftwarePackageImpl.java @@ -0,0 +1,210 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#SoftwarePackage
+ */ +public class SoftwarePackageImpl extends SaveableImpl implements SoftwarePackage { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private String package_; + + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/package
+ *
+ * The name of the software to be made available. If the name is + * common, inconsistent, or otherwise ambiguous it should be combined with + * one or more identifiers in the `specs` field. + * *
+ */ + + public String getPackage() { + return this.package_; + } + + private java.util.Optional> version; + + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/version
+ *
+ * The (optional) versions of the software that are known to be + * compatible. + * *
+ */ + + public java.util.Optional> getVersion() { + return this.version; + } + + private java.util.Optional> specs; + + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/specs
+ *
+ * One or more [IRI](https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier)s + * identifying resources for installing or enabling the software named in + * the `package` field. Implementations may provide resolvers which map + * these software identifier IRIs to some configuration action; or they can + * use only the name from the `package` field on a best effort basis. + * + * For example, the IRI https://packages.debian.org/bowtie could + * be resolved with `apt-get install bowtie`. The IRI + * https://anaconda.org/bioconda/bowtie could be resolved with `conda + * install -c bioconda bowtie`. + * + * IRIs can also be system independent and used to map to a specific + * software installation or selection mechanism. + * Using [RRID](https://www.identifiers.org/rrid/) as an example: + * https://identifiers.org/rrid/RRID:SCR_005476 + * could be fulfilled using the above-mentioned Debian or bioconda + * package, a local installation managed by [Environment Modules](https://modules.sourceforge.net/), + * or any other mechanism the platform chooses. IRIs can also be from + * identifier sources that are discipline specific yet still system + * independent. As an example, the equivalent [ELIXIR Tools and Data + * Service Registry](https://bio.tools) IRI to the previous RRID example is + * https://bio.tools/tool/bowtie2/version/2.2.8. + * If supported by a given registry, implementations are encouraged to + * query these system independent software identifier IRIs directly for + * links to packaging systems. + * + * A site specific IRI can be listed as well. For example, an academic + * computing cluster using Environment Modules could list the IRI + * `https://hpc.example.edu/modules/bowtie-tbb/1.22` to indicate that + * `module load bowtie-tbb/1.1.2` should be executed to make available + * `bowtie` version 1.1.2 compiled with the TBB library prior to running + * the accompanying Workflow or CommandLineTool. Note that the example IRI + * is specific to a particular institution and computing environment as + * the Environment Modules system does not have a common namespace or + * standardized naming convention. + * + * This last example is the least portable and should only be used if + * mechanisms based off of the `package` field or more generic IRIs are + * unavailable or unsuitable. While harmless to other sites, site specific + * software IRIs should be left out of shared CWL descriptions to avoid + * clutter. + * *
+ */ + + public java.util.Optional> getSpecs() { + return this.specs; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of SoftwarePackageImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public SoftwarePackageImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("SoftwarePackageImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + String package_; + try { + package_ = + LoaderInstances + .StringInstance + .loadField(__doc.get("package"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + package_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `package` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional> version; + + if (__doc.containsKey("version")) { + try { + version = + LoaderInstances + .optional_array_of_StringInstance + .loadField(__doc.get("version"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + version = null; // won't be used but prevents compiler from complaining. + final String __message = "the `version` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + version = null; + } + java.util.Optional> specs; + + if (__doc.containsKey("specs")) { + try { + specs = + LoaderInstances + .uri_optional_array_of_StringInstance_False_False_None_True + .loadField(__doc.get("specs"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + specs = null; // won't be used but prevents compiler from complaining. + final String __message = "the `specs` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + specs = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.package_ = (String) package_; + this.version = (java.util.Optional>) version; + this.specs = (java.util.Optional>) specs; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("package", "version", "specs"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/SoftwareRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SoftwareRequirement.java new file mode 100644 index 00000000..5840063a --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SoftwareRequirement.java @@ -0,0 +1,45 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#SoftwareRequirement
This interface is implemented by {@link SoftwareRequirementImpl}
+ A list of software packages that should be configured in the environment of + the defined process. +
+ */ +public interface SoftwareRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwareRequirement/class
+ *
+ * Always 'SoftwareRequirement' *
+ */ + + SoftwareRequirement_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwareRequirement/packages
+ *
+ * The list of software to be configured. *
+ */ + + java.util.List getPackages(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/SoftwareRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SoftwareRequirementImpl.java new file mode 100644 index 00000000..0b07c1f9 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SoftwareRequirementImpl.java @@ -0,0 +1,131 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#SoftwareRequirement
+ A list of software packages that should be configured in the environment of + the defined process. +
+ */ +public class SoftwareRequirementImpl extends SaveableImpl implements SoftwareRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private SoftwareRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwareRequirement/class
+ *
+ * Always 'SoftwareRequirement' *
+ */ + + public SoftwareRequirement_class getClass_() { + return this.class_; + } + + private java.util.List packages; + + /** + * Getter for property https://w3id.org/cwl/cwl#SoftwareRequirement/packages
+ *
+ * The list of software to be configured. *
+ */ + + public java.util.List getPackages() { + return this.packages; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of SoftwareRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public SoftwareRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("SoftwareRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + SoftwareRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_SoftwareRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.List packages; + try { + packages = + LoaderInstances + .idmap_packages_array_of_SoftwarePackage + .loadField(__doc.get("packages"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + packages = null; // won't be used but prevents compiler from complaining. + final String __message = "the `packages` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (SoftwareRequirement_class) class_; + this.packages = (java.util.List) packages; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "packages"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/SoftwareRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SoftwareRequirement_class.java new file mode 100644 index 00000000..729bad26 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SoftwareRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum SoftwareRequirement_class { + SOFTWAREREQUIREMENT("SoftwareRequirement"); + + private static String[] symbols = new String[] {"SoftwareRequirement"}; + private String docVal; + + private SoftwareRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static SoftwareRequirement_class fromDocumentVal(final String docVal) { + for(final SoftwareRequirement_class val : SoftwareRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", SoftwareRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/StepInputExpressionRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/StepInputExpressionRequirement.java new file mode 100644 index 00000000..9b5f60d0 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/StepInputExpressionRequirement.java @@ -0,0 +1,38 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#StepInputExpressionRequirement
This interface is implemented by {@link StepInputExpressionRequirementImpl}
+ Indicate that the workflow platform must support the `valueFrom` field + of [WorkflowStepInput](#WorkflowStepInput). +
+ */ +public interface StepInputExpressionRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#StepInputExpressionRequirement/class
+ *
+ * Always 'StepInputExpressionRequirement' *
+ */ + + StepInputExpressionRequirement_class getClass_(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/StepInputExpressionRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/StepInputExpressionRequirementImpl.java new file mode 100644 index 00000000..86c3abd2 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/StepInputExpressionRequirementImpl.java @@ -0,0 +1,107 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#StepInputExpressionRequirement
+ Indicate that the workflow platform must support the `valueFrom` field + of [WorkflowStepInput](#WorkflowStepInput). +
+ */ +public class StepInputExpressionRequirementImpl extends SaveableImpl implements StepInputExpressionRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private StepInputExpressionRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#StepInputExpressionRequirement/class
+ *
+ * Always 'StepInputExpressionRequirement' *
+ */ + + public StepInputExpressionRequirement_class getClass_() { + return this.class_; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of StepInputExpressionRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public StepInputExpressionRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("StepInputExpressionRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + StepInputExpressionRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_StepInputExpressionRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (StepInputExpressionRequirement_class) class_; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/StepInputExpressionRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/StepInputExpressionRequirement_class.java new file mode 100644 index 00000000..6a806b21 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/StepInputExpressionRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum StepInputExpressionRequirement_class { + STEPINPUTEXPRESSIONREQUIREMENT("StepInputExpressionRequirement"); + + private static String[] symbols = new String[] {"StepInputExpressionRequirement"}; + private String docVal; + + private StepInputExpressionRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static StepInputExpressionRequirement_class fromDocumentVal(final String docVal) { + for(final StepInputExpressionRequirement_class val : StepInputExpressionRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", StepInputExpressionRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/SubworkflowFeatureRequirement.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SubworkflowFeatureRequirement.java new file mode 100644 index 00000000..03156cb9 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SubworkflowFeatureRequirement.java @@ -0,0 +1,38 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#SubworkflowFeatureRequirement
This interface is implemented by {@link SubworkflowFeatureRequirementImpl}
+ Indicates that the workflow platform must support nested workflows in + the `run` field of [WorkflowStep](#WorkflowStep). +
+ */ +public interface SubworkflowFeatureRequirement extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#SubworkflowFeatureRequirement/class
+ *
+ * Always 'SubworkflowFeatureRequirement' *
+ */ + + SubworkflowFeatureRequirement_class getClass_(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/SubworkflowFeatureRequirementImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SubworkflowFeatureRequirementImpl.java new file mode 100644 index 00000000..d347673f --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SubworkflowFeatureRequirementImpl.java @@ -0,0 +1,107 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#SubworkflowFeatureRequirement
+ Indicates that the workflow platform must support nested workflows in + the `run` field of [WorkflowStep](#WorkflowStep). +
+ */ +public class SubworkflowFeatureRequirementImpl extends SaveableImpl implements SubworkflowFeatureRequirement { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private SubworkflowFeatureRequirement_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#SubworkflowFeatureRequirement/class
+ *
+ * Always 'SubworkflowFeatureRequirement' *
+ */ + + public SubworkflowFeatureRequirement_class getClass_() { + return this.class_; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of SubworkflowFeatureRequirementImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public SubworkflowFeatureRequirementImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("SubworkflowFeatureRequirementImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + SubworkflowFeatureRequirement_class class_; + try { + class_ = + LoaderInstances + .uri_SubworkflowFeatureRequirement_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (SubworkflowFeatureRequirement_class) class_; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/SubworkflowFeatureRequirement_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SubworkflowFeatureRequirement_class.java new file mode 100644 index 00000000..b035ef81 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/SubworkflowFeatureRequirement_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum SubworkflowFeatureRequirement_class { + SUBWORKFLOWFEATUREREQUIREMENT("SubworkflowFeatureRequirement"); + + private static String[] symbols = new String[] {"SubworkflowFeatureRequirement"}; + private String docVal; + + private SubworkflowFeatureRequirement_class(final String docVal) { + this.docVal = docVal; + } + + public static SubworkflowFeatureRequirement_class fromDocumentVal(final String docVal) { + for(final SubworkflowFeatureRequirement_class val : SubworkflowFeatureRequirement_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", SubworkflowFeatureRequirement_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ToolTimeLimit.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ToolTimeLimit.java new file mode 100644 index 00000000..8d3d2731 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ToolTimeLimit.java @@ -0,0 +1,52 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#ToolTimeLimit
This interface is implemented by {@link ToolTimeLimitImpl}
+ Set an upper limit on the execution time of a CommandLineTool. + A CommandLineTool whose execution duration exceeds the time + limit may be preemptively terminated and considered failed. + May also be used by batch systems to make scheduling decisions. + The execution duration excludes external operations, such as + staging of files, pulling a docker image etc, and only counts + wall-time for the execution of the command line itself. +
+ */ +public interface ToolTimeLimit extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#ToolTimeLimit/class
+ *
+ * Always 'ToolTimeLimit' *
+ */ + + ToolTimeLimit_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#ToolTimeLimit/timelimit
+ *
+ * The time limit, in seconds. A time limit of zero means no + * time limit. Negative time limits are an error. + * *
+ */ + + Object getTimelimit(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ToolTimeLimitImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ToolTimeLimitImpl.java new file mode 100644 index 00000000..16bab350 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ToolTimeLimitImpl.java @@ -0,0 +1,138 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#ToolTimeLimit
+ Set an upper limit on the execution time of a CommandLineTool. + A CommandLineTool whose execution duration exceeds the time + limit may be preemptively terminated and considered failed. + May also be used by batch systems to make scheduling decisions. + The execution duration excludes external operations, such as + staging of files, pulling a docker image etc, and only counts + wall-time for the execution of the command line itself. +
+ */ +public class ToolTimeLimitImpl extends SaveableImpl implements ToolTimeLimit { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private ToolTimeLimit_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#ToolTimeLimit/class
+ *
+ * Always 'ToolTimeLimit' *
+ */ + + public ToolTimeLimit_class getClass_() { + return this.class_; + } + + private Object timelimit; + + /** + * Getter for property https://w3id.org/cwl/cwl#ToolTimeLimit/timelimit
+ *
+ * The time limit, in seconds. A time limit of zero means no + * time limit. Negative time limits are an error. + * *
+ */ + + public Object getTimelimit() { + return this.timelimit; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of ToolTimeLimitImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public ToolTimeLimitImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("ToolTimeLimitImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + ToolTimeLimit_class class_; + try { + class_ = + LoaderInstances + .uri_ToolTimeLimit_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Object timelimit; + try { + timelimit = + LoaderInstances + .union_of_IntegerInstance_or_LongInstance_or_ExpressionLoader + .loadField(__doc.get("timelimit"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + timelimit = null; // won't be used but prevents compiler from complaining. + final String __message = "the `timelimit` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (ToolTimeLimit_class) class_; + this.timelimit = (Object) timelimit; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "timelimit"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/ToolTimeLimit_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ToolTimeLimit_class.java new file mode 100644 index 00000000..d607b272 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/ToolTimeLimit_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum ToolTimeLimit_class { + TOOLTIMELIMIT("ToolTimeLimit"); + + private static String[] symbols = new String[] {"ToolTimeLimit"}; + private String docVal; + + private ToolTimeLimit_class(final String docVal) { + this.docVal = docVal; + } + + public static ToolTimeLimit_class fromDocumentVal(final String docVal) { + for(final ToolTimeLimit_class val : ToolTimeLimit_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", ToolTimeLimit_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/UnionSchema.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/UnionSchema.java new file mode 100644 index 00000000..29d613e9 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/UnionSchema.java @@ -0,0 +1,42 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/salad#UnionSchema
This interface is implemented by {@link UnionSchemaImpl}
+ */ +public interface UnionSchema extends Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/salad#names
+ *
+ * Defines the type of the union elements. *
+ */ + + Object getNames(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `union` *
+ */ + + Union_name getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/UnionSchemaImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/UnionSchemaImpl.java new file mode 100644 index 00000000..6d312d65 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/UnionSchemaImpl.java @@ -0,0 +1,128 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/salad#UnionSchema
+ */ +public class UnionSchemaImpl extends SaveableImpl implements UnionSchema { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private Object names; + + /** + * Getter for property https://w3id.org/cwl/salad#names
+ *
+ * Defines the type of the union elements. *
+ */ + + public Object getNames() { + return this.names; + } + + private Union_name type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Must be `union` *
+ */ + + public Union_name getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of UnionSchemaImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public UnionSchemaImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("UnionSchemaImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + Object names; + try { + names = + LoaderInstances + .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 + .loadField(__doc.get("names"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + names = null; // won't be used but prevents compiler from complaining. + final String __message = "the `names` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Union_name type; + try { + type = + LoaderInstances + .typedsl_Union_name_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.names = (Object) names; + this.type = (Union_name) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("names", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/Union_name.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Union_name.java new file mode 100644 index 00000000..ae0e6348 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Union_name.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum Union_name { + UNION("union"); + + private static String[] symbols = new String[] {"union"}; + private String docVal; + + private Union_name(final String docVal) { + this.docVal = docVal; + } + + public static Union_name fromDocumentVal(final String docVal) { + for(final Union_name val : Union_name.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", Union_name.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkReuse.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkReuse.java new file mode 100644 index 00000000..4e459bd4 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkReuse.java @@ -0,0 +1,51 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#WorkReuse
This interface is implemented by {@link WorkReuseImpl}
+ For implementations that support reusing output from past work (on + the assumption that same code and same input produce same + results), control whether to enable or disable the reuse behavior + for a particular tool or step (to accommodate situations where that + assumption is incorrect). A reused step is not executed but + instead returns the same output as the original execution. + + If `WorkReuse` is not specified, correct tools should assume it + is enabled by default. +
+ */ +public interface WorkReuse extends ProcessRequirement, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#WorkReuse/class
+ *
+ * Always 'WorkReuse' *
+ */ + + WorkReuse_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#WorkReuse/enableReuse
+ + */ + + Object getEnableReuse(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkReuseImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkReuseImpl.java new file mode 100644 index 00000000..7a909268 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkReuseImpl.java @@ -0,0 +1,137 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkReuse
+ For implementations that support reusing output from past work (on + the assumption that same code and same input produce same + results), control whether to enable or disable the reuse behavior + for a particular tool or step (to accommodate situations where that + assumption is incorrect). A reused step is not executed but + instead returns the same output as the original execution. + + If `WorkReuse` is not specified, correct tools should assume it + is enabled by default. +
+ */ +public class WorkReuseImpl extends SaveableImpl implements WorkReuse { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private WorkReuse_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#WorkReuse/class
+ *
+ * Always 'WorkReuse' *
+ */ + + public WorkReuse_class getClass_() { + return this.class_; + } + + private Object enableReuse; + + /** + * Getter for property https://w3id.org/cwl/cwl#WorkReuse/enableReuse
+ + */ + + public Object getEnableReuse() { + return this.enableReuse; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of WorkReuseImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public WorkReuseImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("WorkReuseImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + WorkReuse_class class_; + try { + class_ = + LoaderInstances + .uri_WorkReuse_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + Object enableReuse; + try { + enableReuse = + LoaderInstances + .union_of_BooleanInstance_or_ExpressionLoader + .loadField(__doc.get("enableReuse"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + enableReuse = null; // won't be used but prevents compiler from complaining. + final String __message = "the `enableReuse` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.class_ = (WorkReuse_class) class_; + this.enableReuse = (Object) enableReuse; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("class", "enableReuse"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkReuse_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkReuse_class.java new file mode 100644 index 00000000..806a8cdf --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkReuse_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum WorkReuse_class { + WORKREUSE("WorkReuse"); + + private static String[] symbols = new String[] {"WorkReuse"}; + private String docVal; + + private WorkReuse_class(final String docVal) { + this.docVal = docVal; + } + + public static WorkReuse_class fromDocumentVal(final String docVal) { + for(final WorkReuse_class val : WorkReuse_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", WorkReuse_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/Workflow.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Workflow.java new file mode 100644 index 00000000..1c554b6e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Workflow.java @@ -0,0 +1,203 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#Workflow
This interface is implemented by {@link WorkflowImpl}
+ A workflow describes a set of **steps** and the **dependencies** between + those steps. When a step produces output that will be consumed by a + second step, the first step is a dependency of the second step. + + When there is a dependency, the workflow engine must execute the preceding + step and wait for it to successfully produce output before executing the + dependent step. If two steps are defined in the workflow graph that + are not directly or indirectly dependent, these steps are **independent**, + and may execute in any order or execute concurrently. A workflow is + complete when all steps have been executed. + + Dependencies between parameters are expressed using the `source` + field on [workflow step input parameters](#WorkflowStepInput) and + `outputSource` field on [workflow output + parameters](#WorkflowOutputParameter). + + The `source` field on each workflow step input parameter expresses + the data links that contribute to the value of the step input + parameter (the "sink"). A workflow step can only begin execution + when every data link connected to a step has been fulfilled. + + The `outputSource` field on each workflow step input parameter + expresses the data links that contribute to the value of the + workflow output parameter (the "sink"). Workflow execution cannot + complete successfully until every data link connected to an output + parameter has been fulfilled. + + ## Workflow success and failure + + A completed step must result in one of `success`, `temporaryFailure` or + `permanentFailure` states. An implementation may choose to retry a step + execution which resulted in `temporaryFailure`. An implementation may + choose to either continue running other steps of a workflow, or terminate + immediately upon `permanentFailure`. + + * If any step of a workflow execution results in `permanentFailure`, then + the workflow status is `permanentFailure`. + + * If one or more steps result in `temporaryFailure` and all other steps + complete `success` or are not executed, then the workflow status is + `temporaryFailure`. + + * If all workflow steps are executed and complete with `success`, then the + workflow status is `success`. + + # Extensions + + [ScatterFeatureRequirement](#ScatterFeatureRequirement) and + [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) are + available as standard [extensions](#Extensions_and_Metadata) to core + workflow semantics. +
+ */ +public interface Workflow extends Process, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Process/id
+ *
+ * The unique identifier for this object. + * + * Only useful for `$graph` at `Process` level. Should not be exposed + * to users in graphical or terminal user interfaces. + * *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#Workflow/class
+ + */ + + Workflow_class getClass_(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#inputs
+ *
+ * Defines the input parameters of the process. The process is ready to + * run when all required input parameters are associated with concrete + * values. Input parameters include a schema for each parameter which is + * used to validate the input object. It may also be used to build a user + * interface for constructing the input object. + * + * When accepting an input object, all input parameters must have a value. + * If an input parameter is missing from the input object, it must be + * assigned a value of `null` (or the value of `default` for that + * parameter, if provided) for the purposes of validation and evaluation + * of expressions. + * *
+ */ + + java.util.List getInputs(); + /** + * Getter for property https://w3id.org/cwl/cwl#outputs
+ *
+ * Defines the parameters representing the output of the process. May be + * used to generate and/or validate the output object. + * *
+ */ + + java.util.List getOutputs(); + /** + * Getter for property https://w3id.org/cwl/cwl#requirements
+ *
+ * Declares requirements that apply to either the runtime environment or the + * workflow engine that must be met in order to execute this process. If + * an implementation cannot satisfy all requirements, or a requirement is + * listed which is not recognized by the implementation, it is a fatal + * error and the implementation must not attempt to run the process, + * unless overridden at user option. + * *
+ */ + + java.util.Optional> getRequirements(); + /** + * Getter for property https://w3id.org/cwl/cwl#hints
+ *
+ * Declares hints applying to either the runtime environment or the + * workflow engine that may be helpful in executing this process. It is + * not an error if an implementation cannot satisfy all hints, however + * the implementation may report a warning. + * *
+ */ + + java.util.Optional> getHints(); + /** + * Getter for property https://w3id.org/cwl/cwl#cwlVersion
+ *
+ * CWL document version. Always required at the document root. Not + * required for a Process embedded inside another Process. + * *
+ */ + + java.util.Optional getCwlVersion(); + /** + * Getter for property https://w3id.org/cwl/cwl#Process/intent
+ *
+ * An identifier for the type of computational operation, of this Process. + * Especially useful for [`Operation`](Workflow.html#Operation), but can also be used for + * [`CommandLineTool`](CommandLineTool.html#CommandLineTool), + * [`Workflow`](Workflow.html#Workflow), or [ExpressionTool](Workflow.html#ExpressionTool). + * + * If provided, then this must be an IRI of a concept node that + * represents the type of operation, preferably defined within an ontology. + * + * For example, in the domain of bioinformatics, one can use an IRI from + * the EDAM Ontology's [Operation concept nodes](http://edamontology.org/operation_0004), + * like [Alignment](http://edamontology.org/operation_2928), + * or [Clustering](http://edamontology.org/operation_3432); or a more + * specific Operation concept like + * [Split read mapping](http://edamontology.org/operation_3199). + * *
+ */ + + java.util.Optional> getIntent(); + /** + * Getter for property https://w3id.org/cwl/cwl#Workflow/steps
+ *
+ * The individual steps that make up the workflow. Each step is executed when all of its + * input data links are fulfilled. An implementation may choose to execute + * the steps in a different order than listed and/or execute steps + * concurrently, provided that dependencies between steps are met. + * *
+ */ + + java.util.List getSteps(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowImpl.java new file mode 100644 index 00000000..1630c219 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowImpl.java @@ -0,0 +1,498 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#Workflow
+ A workflow describes a set of **steps** and the **dependencies** between + those steps. When a step produces output that will be consumed by a + second step, the first step is a dependency of the second step. + + When there is a dependency, the workflow engine must execute the preceding + step and wait for it to successfully produce output before executing the + dependent step. If two steps are defined in the workflow graph that + are not directly or indirectly dependent, these steps are **independent**, + and may execute in any order or execute concurrently. A workflow is + complete when all steps have been executed. + + Dependencies between parameters are expressed using the `source` + field on [workflow step input parameters](#WorkflowStepInput) and + `outputSource` field on [workflow output + parameters](#WorkflowOutputParameter). + + The `source` field on each workflow step input parameter expresses + the data links that contribute to the value of the step input + parameter (the "sink"). A workflow step can only begin execution + when every data link connected to a step has been fulfilled. + + The `outputSource` field on each workflow step input parameter + expresses the data links that contribute to the value of the + workflow output parameter (the "sink"). Workflow execution cannot + complete successfully until every data link connected to an output + parameter has been fulfilled. + + ## Workflow success and failure + + A completed step must result in one of `success`, `temporaryFailure` or + `permanentFailure` states. An implementation may choose to retry a step + execution which resulted in `temporaryFailure`. An implementation may + choose to either continue running other steps of a workflow, or terminate + immediately upon `permanentFailure`. + + * If any step of a workflow execution results in `permanentFailure`, then + the workflow status is `permanentFailure`. + + * If one or more steps result in `temporaryFailure` and all other steps + complete `success` or are not executed, then the workflow status is + `temporaryFailure`. + + * If all workflow steps are executed and complete with `success`, then the + workflow status is `success`. + + # Extensions + + [ScatterFeatureRequirement](#ScatterFeatureRequirement) and + [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) are + available as standard [extensions](#Extensions_and_Metadata) to core + workflow semantics. +
+ */ +public class WorkflowImpl extends SaveableImpl implements Workflow { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Process/id
+ *
+ * The unique identifier for this object. + * + * Only useful for `$graph` at `Process` level. Should not be exposed + * to users in graphical or terminal user interfaces. + * *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private Workflow_class class_; + + /** + * Getter for property https://w3id.org/cwl/cwl#Workflow/class
+ + */ + + public Workflow_class getClass_() { + return this.class_; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private java.util.List inputs; + + /** + * Getter for property https://w3id.org/cwl/cwl#inputs
+ *
+ * Defines the input parameters of the process. The process is ready to + * run when all required input parameters are associated with concrete + * values. Input parameters include a schema for each parameter which is + * used to validate the input object. It may also be used to build a user + * interface for constructing the input object. + * + * When accepting an input object, all input parameters must have a value. + * If an input parameter is missing from the input object, it must be + * assigned a value of `null` (or the value of `default` for that + * parameter, if provided) for the purposes of validation and evaluation + * of expressions. + * *
+ */ + + public java.util.List getInputs() { + return this.inputs; + } + + private java.util.List outputs; + + /** + * Getter for property https://w3id.org/cwl/cwl#outputs
+ *
+ * Defines the parameters representing the output of the process. May be + * used to generate and/or validate the output object. + * *
+ */ + + public java.util.List getOutputs() { + return this.outputs; + } + + private java.util.Optional> requirements; + + /** + * Getter for property https://w3id.org/cwl/cwl#requirements
+ *
+ * Declares requirements that apply to either the runtime environment or the + * workflow engine that must be met in order to execute this process. If + * an implementation cannot satisfy all requirements, or a requirement is + * listed which is not recognized by the implementation, it is a fatal + * error and the implementation must not attempt to run the process, + * unless overridden at user option. + * *
+ */ + + public java.util.Optional> getRequirements() { + return this.requirements; + } + + private java.util.Optional> hints; + + /** + * Getter for property https://w3id.org/cwl/cwl#hints
+ *
+ * Declares hints applying to either the runtime environment or the + * workflow engine that may be helpful in executing this process. It is + * not an error if an implementation cannot satisfy all hints, however + * the implementation may report a warning. + * *
+ */ + + public java.util.Optional> getHints() { + return this.hints; + } + + private java.util.Optional cwlVersion; + + /** + * Getter for property https://w3id.org/cwl/cwl#cwlVersion
+ *
+ * CWL document version. Always required at the document root. Not + * required for a Process embedded inside another Process. + * *
+ */ + + public java.util.Optional getCwlVersion() { + return this.cwlVersion; + } + + private java.util.Optional> intent; + + /** + * Getter for property https://w3id.org/cwl/cwl#Process/intent
+ *
+ * An identifier for the type of computational operation, of this Process. + * Especially useful for [`Operation`](Workflow.html#Operation), but can also be used for + * [`CommandLineTool`](CommandLineTool.html#CommandLineTool), + * [`Workflow`](Workflow.html#Workflow), or [ExpressionTool](Workflow.html#ExpressionTool). + * + * If provided, then this must be an IRI of a concept node that + * represents the type of operation, preferably defined within an ontology. + * + * For example, in the domain of bioinformatics, one can use an IRI from + * the EDAM Ontology's [Operation concept nodes](http://edamontology.org/operation_0004), + * like [Alignment](http://edamontology.org/operation_2928), + * or [Clustering](http://edamontology.org/operation_3432); or a more + * specific Operation concept like + * [Split read mapping](http://edamontology.org/operation_3199). + * *
+ */ + + public java.util.Optional> getIntent() { + return this.intent; + } + + private java.util.List steps; + + /** + * Getter for property https://w3id.org/cwl/cwl#Workflow/steps
+ *
+ * The individual steps that make up the workflow. Each step is executed when all of its + * input data links are fulfilled. An implementation may choose to execute + * the steps in a different order than listed and/or execute steps + * concurrently, provided that dependencies between steps are met. + * *
+ */ + + public java.util.List getSteps() { + return this.steps; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of WorkflowImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public WorkflowImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("WorkflowImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + Workflow_class class_; + try { + class_ = + LoaderInstances + .uri_Workflow_class_False_True_None_None + .loadField(__doc.get("class"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + class_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `class` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + java.util.List inputs; + try { + inputs = + LoaderInstances + .idmap_inputs_array_of_WorkflowInputParameter + .loadField(__doc.get("inputs"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputs = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputs` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.List outputs; + try { + outputs = + LoaderInstances + .idmap_outputs_array_of_WorkflowOutputParameter + .loadField(__doc.get("outputs"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + outputs = null; // won't be used but prevents compiler from complaining. + final String __message = "the `outputs` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional> requirements; + + if (__doc.containsKey("requirements")) { + try { + requirements = + LoaderInstances + .idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement + .loadField(__doc.get("requirements"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + requirements = null; // won't be used but prevents compiler from complaining. + final String __message = "the `requirements` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + requirements = null; + } + java.util.Optional> hints; + + if (__doc.containsKey("hints")) { + try { + hints = + LoaderInstances + .idmap_hints_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance + .loadField(__doc.get("hints"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + hints = null; // won't be used but prevents compiler from complaining. + final String __message = "the `hints` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + hints = null; + } + java.util.Optional cwlVersion; + + if (__doc.containsKey("cwlVersion")) { + try { + cwlVersion = + LoaderInstances + .uri_optional_CWLVersion_False_True_None_None + .loadField(__doc.get("cwlVersion"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + cwlVersion = null; // won't be used but prevents compiler from complaining. + final String __message = "the `cwlVersion` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + cwlVersion = null; + } + java.util.Optional> intent; + + if (__doc.containsKey("intent")) { + try { + intent = + LoaderInstances + .uri_optional_array_of_StringInstance_True_False_None_None + .loadField(__doc.get("intent"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + intent = null; // won't be used but prevents compiler from complaining. + final String __message = "the `intent` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + intent = null; + } + java.util.List steps; + try { + steps = + LoaderInstances + .idmap_steps_array_of_WorkflowStep + .loadField(__doc.get("steps"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + steps = null; // won't be used but prevents compiler from complaining. + final String __message = "the `steps` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.id = (java.util.Optional) id; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.inputs = (java.util.List) inputs; + this.outputs = (java.util.List) outputs; + this.requirements = (java.util.Optional>) requirements; + this.hints = (java.util.Optional>) hints; + this.cwlVersion = (java.util.Optional) cwlVersion; + this.intent = (java.util.Optional>) intent; + this.class_ = (Workflow_class) class_; + this.steps = (java.util.List) steps; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("id", "label", "doc", "inputs", "outputs", "requirements", "hints", "cwlVersion", "intent", "class", "steps"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowInputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowInputParameter.java new file mode 100644 index 00000000..ac48d9e1 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowInputParameter.java @@ -0,0 +1,183 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowInputParameter
This interface is implemented by {@link WorkflowInputParameterImpl}
+ */ +public interface WorkflowInputParameter extends InputParameter, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + Object getFormat(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * If true, the file (or each file in the array) must be a UTF-8 + * text file 64 KiB or smaller, and the implementation must read + * the entire contents of the file (or file array) and place it + * in the `contents` field of the File object for use by + * expressions. If the size of the file is greater than 64 KiB, + * the implementation must raise a fatal error. + * *
+ */ + + java.util.Optional getLoadContents(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + java.util.Optional getLoadListing(); + /** + * Getter for property https://w3id.org/cwl/salad#default
+ *
+ * The default value to use for this parameter if the parameter is missing + * from the input object, or if the value of the parameter in the input + * object is `null`. Default values are applied before evaluating expressions + * (e.g. dependent `valueFrom` fields). + * *
+ */ + + java.util.Optional getDefault(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * *
+ */ + + Object getType(); + /** + * Getter for property https://w3id.org/cwl/cwl#WorkflowInputParameter/inputBinding
+ *
+ * Deprecated. Preserved for v1.0 backwards compatibility. Will be removed in + * CWL v2.0. Use `WorkflowInputParameter.loadContents` instead. + * *
+ */ + + java.util.Optional getInputBinding(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowInputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowInputParameterImpl.java new file mode 100644 index 00000000..4adaf13e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowInputParameterImpl.java @@ -0,0 +1,496 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowInputParameter
+ */ +public class WorkflowInputParameterImpl extends SaveableImpl implements WorkflowInputParameter { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional streamable; + + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + public java.util.Optional getStreamable() { + return this.streamable; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This must be one or more IRIs of concept nodes + * that represents file formats which are allowed as input to this + * parameter, preferably defined within an ontology. If no ontology is + * available, file formats may be tested by exact match. + * *
+ */ + + public Object getFormat() { + return this.format; + } + + private java.util.Optional loadContents; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * If true, the file (or each file in the array) must be a UTF-8 + * text file 64 KiB or smaller, and the implementation must read + * the entire contents of the file (or file array) and place it + * in the `contents` field of the File object for use by + * expressions. If the size of the file is greater than 64 KiB, + * the implementation must raise a fatal error. + * *
+ */ + + public java.util.Optional getLoadContents() { + return this.loadContents; + } + + private java.util.Optional loadListing; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + public java.util.Optional getLoadListing() { + return this.loadListing; + } + + private java.util.Optional default_; + + /** + * Getter for property https://w3id.org/cwl/salad#default
+ *
+ * The default value to use for this parameter if the parameter is missing + * from the input object, or if the value of the parameter in the input + * object is `null`. Default values are applied before evaluating expressions + * (e.g. dependent `valueFrom` fields). + * *
+ */ + + public java.util.Optional getDefault() { + return this.default_; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * *
+ */ + + public Object getType() { + return this.type; + } + + private java.util.Optional inputBinding; + + /** + * Getter for property https://w3id.org/cwl/cwl#WorkflowInputParameter/inputBinding
+ *
+ * Deprecated. Preserved for v1.0 backwards compatibility. Will be removed in + * CWL v2.0. Use `WorkflowInputParameter.loadContents` instead. + * *
+ */ + + public java.util.Optional getInputBinding() { + return this.inputBinding; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of WorkflowInputParameterImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public WorkflowInputParameterImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("WorkflowInputParameterImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional streamable; + + if (__doc.containsKey("streamable")) { + try { + streamable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + streamable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `streamable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + streamable = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + java.util.Optional loadContents; + + if (__doc.containsKey("loadContents")) { + try { + loadContents = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadContents = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadContents` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadContents = null; + } + java.util.Optional loadListing; + + if (__doc.containsKey("loadListing")) { + try { + loadListing = + LoaderInstances + .optional_LoadListingEnum + .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadListing = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadListing` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadListing = null; + } + java.util.Optional default_; + + if (__doc.containsKey("default")) { + try { + default_ = + LoaderInstances + .optional_CWLObjectType + .loadField(__doc.get("default"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + default_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `default` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + default_ = null; + } + Object type; + try { + type = + LoaderInstances + .typedsl_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional inputBinding; + + if (__doc.containsKey("inputBinding")) { + try { + inputBinding = + LoaderInstances + .optional_InputBinding + .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + inputBinding = null; // won't be used but prevents compiler from complaining. + final String __message = "the `inputBinding` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + inputBinding = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.label = (java.util.Optional) label; + this.secondaryFiles = (Object) secondaryFiles; + this.streamable = (java.util.Optional) streamable; + this.doc = (Object) doc; + this.id = (java.util.Optional) id; + this.format = (Object) format; + this.loadContents = (java.util.Optional) loadContents; + this.loadListing = (java.util.Optional) loadListing; + this.default_ = (java.util.Optional) default_; + this.type = (Object) type; + this.inputBinding = (java.util.Optional) inputBinding; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("label", "secondaryFiles", "streamable", "doc", "id", "format", "loadContents", "loadListing", "default", "type", "inputBinding"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowOutputParameter.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowOutputParameter.java new file mode 100644 index 00000000..ab45069c --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowOutputParameter.java @@ -0,0 +1,166 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowOutputParameter
This interface is implemented by {@link WorkflowOutputParameterImpl}
+ Describe an output parameter of a workflow. The parameter must be + connected to one or more parameters defined in the workflow that + will provide the value of the output parameter. It is legal to + connect a WorkflowInputParameter to a WorkflowOutputParameter. + + See [WorkflowStepInput](#WorkflowStepInput) for discussion of + `linkMerge` and `pickValue`. +
+ */ +public interface WorkflowOutputParameter extends OutputParameter, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + Object getSecondaryFiles(); + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + java.util.Optional getStreamable(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + Object getFormat(); + /** + * Getter for property https://w3id.org/cwl/cwl#outputSource
+ *
+ * Specifies one or more names of an output from a workflow step (in the form + * `step_name/output_name` with a `/` separator`), or a workflow input name, + * that supply their value(s) to the output parameter. + * the output parameter. It is valid to reference workflow level inputs + * here. + * *
+ */ + + Object getOutputSource(); + /** + * Getter for property https://w3id.org/cwl/cwl#WorkflowOutputParameter/linkMerge
+ *
+ * The method to use to merge multiple sources into a single array. + * If not specified, the default method is "merge_nested". + * *
+ */ + + java.util.Optional getLinkMerge(); + /** + * Getter for property https://w3id.org/cwl/cwl#WorkflowOutputParameter/pickValue
+ *
+ * The method to use to choose non-null elements among multiple sources. + * *
+ */ + + java.util.Optional getPickValue(); + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * *
+ */ + + Object getType(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowOutputParameterImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowOutputParameterImpl.java new file mode 100644 index 00000000..1b045a40 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowOutputParameterImpl.java @@ -0,0 +1,456 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowOutputParameter
+ Describe an output parameter of a workflow. The parameter must be + connected to one or more parameters defined in the workflow that + will provide the value of the output parameter. It is legal to + connect a WorkflowInputParameter to a WorkflowOutputParameter. + + See [WorkflowStepInput](#WorkflowStepInput) for discussion of + `linkMerge` and `pickValue`. +
+ */ +public class WorkflowOutputParameterImpl extends SaveableImpl implements WorkflowOutputParameter { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object secondaryFiles; + + /** + * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * Provides a pattern or expression specifying files or + * directories that should be included alongside the primary + * file. Secondary files may be required or optional. When not + * explicitly specified, secondary files specified for `inputs` + * are required and `outputs` are optional. An implementation + * must include matching Files and Directories in the + * `secondaryFiles` property of the primary file. These Files + * and Directories must be transferred and staged alongside the + * primary file. An implementation may fail workflow execution + * if a required secondary file does not exist. + * + * If the value is an expression, the value of `self` in the expression + * must be the primary input or output File object to which this binding + * applies. The `basename`, `nameroot` and `nameext` fields must be + * present in `self`. For `CommandLineTool` outputs the `path` field must + * also be present. The expression must return a filename string relative + * to the path to the primary File, a File or Directory object with either + * `path` or `location` and `basename` fields set, or an array consisting + * of strings or File or Directory objects. It is legal to reference an + * unchanged File or Directory object taken from input as a secondaryFile. + * The expression may return "null" in which case there is no secondaryFile + * from that expression. + * + * To work on non-filename-preserving storage systems, portable tool + * descriptions should avoid constructing new values from `location`, but + * should construct relative references using `basename` or `nameroot` + * instead. + * + * If a value in `secondaryFiles` is a string that is not an expression, + * it specifies that the following pattern should be applied to the path + * of the primary file to yield a filename relative to the primary File: + * + * 1. If string ends with `?` character, remove the last `?` and mark + * the resulting secondary file as optional. + * 2. If string begins with one or more caret `^` characters, for each + * caret, remove the last file extension from the path (the last + * period `.` and all following characters). If there are no file + * extensions, the path is unchanged. + * 3. Append the remainder of the string to the end of the file path. + * *
+ */ + + public Object getSecondaryFiles() { + return this.secondaryFiles; + } + + private java.util.Optional streamable; + + /** + * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * A value of `true` indicates that the file is read or written + * sequentially without seeking. An implementation may use this flag to + * indicate whether it is valid to stream file contents using a named + * pipe. Default: `false`. + * *
+ */ + + public java.util.Optional getStreamable() { + return this.streamable; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private Object format; + + /** + * Getter for property https://w3id.org/cwl/cwl#format
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * This is the file format that will be assigned to the output + * File object. + * *
+ */ + + public Object getFormat() { + return this.format; + } + + private Object outputSource; + + /** + * Getter for property https://w3id.org/cwl/cwl#outputSource
+ *
+ * Specifies one or more names of an output from a workflow step (in the form + * `step_name/output_name` with a `/` separator`), or a workflow input name, + * that supply their value(s) to the output parameter. + * the output parameter. It is valid to reference workflow level inputs + * here. + * *
+ */ + + public Object getOutputSource() { + return this.outputSource; + } + + private java.util.Optional linkMerge; + + /** + * Getter for property https://w3id.org/cwl/cwl#WorkflowOutputParameter/linkMerge
+ *
+ * The method to use to merge multiple sources into a single array. + * If not specified, the default method is "merge_nested". + * *
+ */ + + public java.util.Optional getLinkMerge() { + return this.linkMerge; + } + + private java.util.Optional pickValue; + + /** + * Getter for property https://w3id.org/cwl/cwl#WorkflowOutputParameter/pickValue
+ *
+ * The method to use to choose non-null elements among multiple sources. + * *
+ */ + + public java.util.Optional getPickValue() { + return this.pickValue; + } + + private Object type; + + /** + * Getter for property https://w3id.org/cwl/salad#type
+ *
+ * Specify valid types of data that may be assigned to this parameter. + * *
+ */ + + public Object getType() { + return this.type; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of WorkflowOutputParameterImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public WorkflowOutputParameterImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("WorkflowOutputParameterImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object secondaryFiles; + + if (__doc.containsKey("secondaryFiles")) { + try { + secondaryFiles = + LoaderInstances + .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema + .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + secondaryFiles = null; // won't be used but prevents compiler from complaining. + final String __message = "the `secondaryFiles` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + secondaryFiles = null; + } + java.util.Optional streamable; + + if (__doc.containsKey("streamable")) { + try { + streamable = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + streamable = null; // won't be used but prevents compiler from complaining. + final String __message = "the `streamable` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + streamable = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + Object format; + + if (__doc.containsKey("format")) { + try { + format = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True + .loadField(__doc.get("format"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + format = null; // won't be used but prevents compiler from complaining. + final String __message = "the `format` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + format = null; + } + Object outputSource; + + if (__doc.containsKey("outputSource")) { + try { + outputSource = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_1_None + .loadField(__doc.get("outputSource"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + outputSource = null; // won't be used but prevents compiler from complaining. + final String __message = "the `outputSource` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + outputSource = null; + } + java.util.Optional linkMerge; + + if (__doc.containsKey("linkMerge")) { + try { + linkMerge = + LoaderInstances + .optional_LinkMergeMethod + .loadField(__doc.get("linkMerge"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + linkMerge = null; // won't be used but prevents compiler from complaining. + final String __message = "the `linkMerge` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + linkMerge = null; + } + java.util.Optional pickValue; + + if (__doc.containsKey("pickValue")) { + try { + pickValue = + LoaderInstances + .optional_PickValueMethod + .loadField(__doc.get("pickValue"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + pickValue = null; // won't be used but prevents compiler from complaining. + final String __message = "the `pickValue` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + pickValue = null; + } + Object type; + try { + type = + LoaderInstances + .typedsl_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_2 + .loadField(__doc.get("type"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + type = null; // won't be used but prevents compiler from complaining. + final String __message = "the `type` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.label = (java.util.Optional) label; + this.secondaryFiles = (Object) secondaryFiles; + this.streamable = (java.util.Optional) streamable; + this.doc = (Object) doc; + this.id = (java.util.Optional) id; + this.format = (Object) format; + this.outputSource = (Object) outputSource; + this.linkMerge = (java.util.Optional) linkMerge; + this.pickValue = (java.util.Optional) pickValue; + this.type = (Object) type; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("label", "secondaryFiles", "streamable", "doc", "id", "format", "outputSource", "linkMerge", "pickValue", "type"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStep.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStep.java new file mode 100644 index 00000000..16cf0891 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStep.java @@ -0,0 +1,207 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowStep
This interface is implemented by {@link WorkflowStepImpl}
+ A workflow step is an executable element of a workflow. It specifies the + underlying process implementation (such as `CommandLineTool` or another + `Workflow`) in the `run` field and connects the input and output parameters + of the underlying process to workflow parameters. + + # Scatter/gather + + To use scatter/gather, + [ScatterFeatureRequirement](#ScatterFeatureRequirement) must be specified + in the workflow or workflow step requirements. + + A "scatter" operation specifies that the associated workflow step or + subworkflow should execute separately over a list of input elements. Each + job making up a scatter operation is independent and may be executed + concurrently. + + The `scatter` field specifies one or more input parameters which will be + scattered. An input parameter may be listed more than once. The declared + type of each input parameter implicitly becomes an array of items of the + input parameter type. If a parameter is listed more than once, it becomes + a nested array. As a result, upstream parameters which are connected to + scattered parameters must be arrays. + + All output parameter types are also implicitly wrapped in arrays. Each job + in the scatter results in an entry in the output array. + + If any scattered parameter runtime value is an empty array, all outputs are + set to empty arrays and no work is done for the step, according to + applicable scattering rules. + + If `scatter` declares more than one input parameter, `scatterMethod` + describes how to decompose the input into a discrete set of jobs. + + * **dotproduct** specifies that each of the input arrays are aligned and one + element taken from each array to construct each job. It is an error + if all input arrays are not the same length. + + * **nested_crossproduct** specifies the Cartesian product of the inputs, + producing a job for every combination of the scattered inputs. The + output must be nested arrays for each level of scattering, in the + order that the input arrays are listed in the `scatter` field. + + * **flat_crossproduct** specifies the Cartesian product of the inputs, + producing a job for every combination of the scattered inputs. The + output arrays must be flattened to a single level, but otherwise listed in the + order that the input arrays are listed in the `scatter` field. + + # Conditional execution (Optional) + + Conditional execution makes execution of a step conditional on an + expression. A step that is not executed is "skipped". A skipped + step produces `null` for all output parameters. + + The condition is evaluated after `scatter`, using the input object + of each individual scatter job. This means over a set of scatter + jobs, some may be executed and some may be skipped. When the + results are gathered, skipped steps must be `null` in the output + arrays. + + The `when` field controls conditional execution. This is an + expression that must be evaluated with `inputs` bound to the step + input object (or individual scatter job), and returns a boolean + value. It is an error if this expression returns a value other + than `true` or `false`. + + Conditionals in CWL are an optional feature and are not required + to be implemented by all consumers of CWL documents. An + implementation that does not support conditionals must return a + fatal error when attempting to execute a workflow that uses + conditional constructs the implementation does not support. + + # Subworkflows + + To specify a nested workflow as part of a workflow step, + [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) must be + specified in the workflow or workflow step requirements. + + It is a fatal error if a workflow directly or indirectly invokes itself as + a subworkflow (recursive workflows are not allowed). +
+ */ +public interface WorkflowStep extends Identified, Labeled, Documented, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + Object getDoc(); + /** + * Getter for property https://w3id.org/cwl/cwl#in
+ *
+ * Defines the input parameters of the workflow step. The process is ready to + * run when all required input parameters are associated with concrete + * values. Input parameters include a schema for each parameter which is + * used to validate the input object. It may also be used build a user + * interface for constructing the input object. + * *
+ */ + + java.util.List getIn(); + /** + * Getter for property https://w3id.org/cwl/cwl#out
+ *
+ * Defines the parameters representing the output of the process. May be + * used to generate and/or validate the output object. + * *
+ */ + + java.util.List getOut(); + /** + * Getter for property https://w3id.org/cwl/cwl#requirements
+ *
+ * Declares requirements that apply to either the runtime environment or the + * workflow engine that must be met in order to execute this workflow step. If + * an implementation cannot satisfy all requirements, or a requirement is + * listed which is not recognized by the implementation, it is a fatal + * error and the implementation must not attempt to run the process, + * unless overridden at user option. + * *
+ */ + + java.util.Optional> getRequirements(); + /** + * Getter for property https://w3id.org/cwl/cwl#hints
+ *
+ * Declares hints applying to either the runtime environment or the + * workflow engine that may be helpful in executing this workflow step. It is + * not an error if an implementation cannot satisfy all hints, however + * the implementation may report a warning. + * *
+ */ + + java.util.Optional> getHints(); + /** + * Getter for property https://w3id.org/cwl/cwl#run
+ *
+ * Specifies the process to run. If `run` is a string, it must be an absolute IRI + * or a relative path from the primary document. + * *
+ */ + + Object getRun(); + /** + * Getter for property https://w3id.org/cwl/cwl#WorkflowStep/when
+ *
+ * If defined, only run the step when the expression evaluates to + * `true`. If `false` the step is skipped. A skipped step + * produces a `null` on each output. + * *
+ */ + + java.util.Optional getWhen(); + /** + * Getter for property https://w3id.org/cwl/cwl#scatter
+ + */ + + Object getScatter(); + /** + * Getter for property https://w3id.org/cwl/cwl#scatterMethod
+ *
+ * Required if `scatter` is an array of more than one element. + * *
+ */ + + java.util.Optional getScatterMethod(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepImpl.java new file mode 100644 index 00000000..67d97be7 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepImpl.java @@ -0,0 +1,508 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowStep
+ A workflow step is an executable element of a workflow. It specifies the + underlying process implementation (such as `CommandLineTool` or another + `Workflow`) in the `run` field and connects the input and output parameters + of the underlying process to workflow parameters. + + # Scatter/gather + + To use scatter/gather, + [ScatterFeatureRequirement](#ScatterFeatureRequirement) must be specified + in the workflow or workflow step requirements. + + A "scatter" operation specifies that the associated workflow step or + subworkflow should execute separately over a list of input elements. Each + job making up a scatter operation is independent and may be executed + concurrently. + + The `scatter` field specifies one or more input parameters which will be + scattered. An input parameter may be listed more than once. The declared + type of each input parameter implicitly becomes an array of items of the + input parameter type. If a parameter is listed more than once, it becomes + a nested array. As a result, upstream parameters which are connected to + scattered parameters must be arrays. + + All output parameter types are also implicitly wrapped in arrays. Each job + in the scatter results in an entry in the output array. + + If any scattered parameter runtime value is an empty array, all outputs are + set to empty arrays and no work is done for the step, according to + applicable scattering rules. + + If `scatter` declares more than one input parameter, `scatterMethod` + describes how to decompose the input into a discrete set of jobs. + + * **dotproduct** specifies that each of the input arrays are aligned and one + element taken from each array to construct each job. It is an error + if all input arrays are not the same length. + + * **nested_crossproduct** specifies the Cartesian product of the inputs, + producing a job for every combination of the scattered inputs. The + output must be nested arrays for each level of scattering, in the + order that the input arrays are listed in the `scatter` field. + + * **flat_crossproduct** specifies the Cartesian product of the inputs, + producing a job for every combination of the scattered inputs. The + output arrays must be flattened to a single level, but otherwise listed in the + order that the input arrays are listed in the `scatter` field. + + # Conditional execution (Optional) + + Conditional execution makes execution of a step conditional on an + expression. A step that is not executed is "skipped". A skipped + step produces `null` for all output parameters. + + The condition is evaluated after `scatter`, using the input object + of each individual scatter job. This means over a set of scatter + jobs, some may be executed and some may be skipped. When the + results are gathered, skipped steps must be `null` in the output + arrays. + + The `when` field controls conditional execution. This is an + expression that must be evaluated with `inputs` bound to the step + input object (or individual scatter job), and returns a boolean + value. It is an error if this expression returns a value other + than `true` or `false`. + + Conditionals in CWL are an optional feature and are not required + to be implemented by all consumers of CWL documents. An + implementation that does not support conditionals must return a + fatal error when attempting to execute a workflow that uses + conditional constructs the implementation does not support. + + # Subworkflows + + To specify a nested workflow as part of a workflow step, + [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) must be + specified in the workflow or workflow step requirements. + + It is a fatal error if a workflow directly or indirectly invokes itself as + a subworkflow (recursive workflows are not allowed). +
+ */ +public class WorkflowStepImpl extends SaveableImpl implements WorkflowStep { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private Object doc; + + /** + * Getter for property https://w3id.org/cwl/salad#Documented/doc
+ *
+ * A documentation string for this object, or an array of strings which should be concatenated. *
+ */ + + public Object getDoc() { + return this.doc; + } + + private java.util.List in; + + /** + * Getter for property https://w3id.org/cwl/cwl#in
+ *
+ * Defines the input parameters of the workflow step. The process is ready to + * run when all required input parameters are associated with concrete + * values. Input parameters include a schema for each parameter which is + * used to validate the input object. It may also be used build a user + * interface for constructing the input object. + * *
+ */ + + public java.util.List getIn() { + return this.in; + } + + private java.util.List out; + + /** + * Getter for property https://w3id.org/cwl/cwl#out
+ *
+ * Defines the parameters representing the output of the process. May be + * used to generate and/or validate the output object. + * *
+ */ + + public java.util.List getOut() { + return this.out; + } + + private java.util.Optional> requirements; + + /** + * Getter for property https://w3id.org/cwl/cwl#requirements
+ *
+ * Declares requirements that apply to either the runtime environment or the + * workflow engine that must be met in order to execute this workflow step. If + * an implementation cannot satisfy all requirements, or a requirement is + * listed which is not recognized by the implementation, it is a fatal + * error and the implementation must not attempt to run the process, + * unless overridden at user option. + * *
+ */ + + public java.util.Optional> getRequirements() { + return this.requirements; + } + + private java.util.Optional> hints; + + /** + * Getter for property https://w3id.org/cwl/cwl#hints
+ *
+ * Declares hints applying to either the runtime environment or the + * workflow engine that may be helpful in executing this workflow step. It is + * not an error if an implementation cannot satisfy all hints, however + * the implementation may report a warning. + * *
+ */ + + public java.util.Optional> getHints() { + return this.hints; + } + + private Object run; + + /** + * Getter for property https://w3id.org/cwl/cwl#run
+ *
+ * Specifies the process to run. If `run` is a string, it must be an absolute IRI + * or a relative path from the primary document. + * *
+ */ + + public Object getRun() { + return this.run; + } + + private java.util.Optional when; + + /** + * Getter for property https://w3id.org/cwl/cwl#WorkflowStep/when
+ *
+ * If defined, only run the step when the expression evaluates to + * `true`. If `false` the step is skipped. A skipped step + * produces a `null` on each output. + * *
+ */ + + public java.util.Optional getWhen() { + return this.when; + } + + private Object scatter; + + /** + * Getter for property https://w3id.org/cwl/cwl#scatter
+ + */ + + public Object getScatter() { + return this.scatter; + } + + private java.util.Optional scatterMethod; + + /** + * Getter for property https://w3id.org/cwl/cwl#scatterMethod
+ *
+ * Required if `scatter` is an array of more than one element. + * *
+ */ + + public java.util.Optional getScatterMethod() { + return this.scatterMethod; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of WorkflowStepImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public WorkflowStepImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("WorkflowStepImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + Object doc; + + if (__doc.containsKey("doc")) { + try { + doc = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance + .loadField(__doc.get("doc"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + doc = null; // won't be used but prevents compiler from complaining. + final String __message = "the `doc` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + doc = null; + } + java.util.List in; + try { + in = + LoaderInstances + .idmap_in_array_of_WorkflowStepInput + .loadField(__doc.get("in"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + in = null; // won't be used but prevents compiler from complaining. + final String __message = "the `in` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.List out; + try { + out = + LoaderInstances + .uri_array_of_union_of_StringInstance_or_WorkflowStepOutput_True_False_None_None + .loadField(__doc.get("out"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + out = null; // won't be used but prevents compiler from complaining. + final String __message = "the `out` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional> requirements; + + if (__doc.containsKey("requirements")) { + try { + requirements = + LoaderInstances + .idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement + .loadField(__doc.get("requirements"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + requirements = null; // won't be used but prevents compiler from complaining. + final String __message = "the `requirements` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + requirements = null; + } + java.util.Optional> hints; + + if (__doc.containsKey("hints")) { + try { + hints = + LoaderInstances + .idmap_hints_optional_array_of_AnyInstance + .loadField(__doc.get("hints"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + hints = null; // won't be used but prevents compiler from complaining. + final String __message = "the `hints` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + hints = null; + } + Object run; + try { + run = + LoaderInstances + .uri_union_of_StringInstance_or_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation_False_False_None_None + .loadField(__doc.get("run"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + run = null; // won't be used but prevents compiler from complaining. + final String __message = "the `run` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + java.util.Optional when; + + if (__doc.containsKey("when")) { + try { + when = + LoaderInstances + .optional_ExpressionLoader + .loadField(__doc.get("when"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + when = null; // won't be used but prevents compiler from complaining. + final String __message = "the `when` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + when = null; + } + Object scatter; + + if (__doc.containsKey("scatter")) { + try { + scatter = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_0_None + .loadField(__doc.get("scatter"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + scatter = null; // won't be used but prevents compiler from complaining. + final String __message = "the `scatter` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + scatter = null; + } + java.util.Optional scatterMethod; + + if (__doc.containsKey("scatterMethod")) { + try { + scatterMethod = + LoaderInstances + .uri_optional_ScatterMethod_False_True_None_None + .loadField(__doc.get("scatterMethod"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + scatterMethod = null; // won't be used but prevents compiler from complaining. + final String __message = "the `scatterMethod` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + scatterMethod = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.id = (java.util.Optional) id; + this.label = (java.util.Optional) label; + this.doc = (Object) doc; + this.in = (java.util.List) in; + this.out = (java.util.List) out; + this.requirements = (java.util.Optional>) requirements; + this.hints = (java.util.Optional>) hints; + this.run = (Object) run; + this.when = (java.util.Optional) when; + this.scatter = (Object) scatter; + this.scatterMethod = (java.util.Optional) scatterMethod; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("id", "label", "doc", "in", "out", "requirements", "hints", "run", "when", "scatter", "scatterMethod"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepInput.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepInput.java new file mode 100644 index 00000000..57403473 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepInput.java @@ -0,0 +1,248 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowStepInput
This interface is implemented by {@link WorkflowStepInputImpl}
+ The input of a workflow step connects an upstream parameter (from the + workflow inputs, or the outputs of other workflows steps) with the input + parameters of the process specified by the `run` field. Only input parameters + declared by the target process will be passed through at runtime to the process + though additional parameters may be specified (for use within `valueFrom` + expressions for instance) - unconnected or unused parameters do not represent an + error condition. + + # Input object + + A WorkflowStepInput object must contain an `id` field in the form + `#fieldname` or `#prefix/fieldname`. When the `id` field contains a slash + `/` the field name consists of the characters following the final slash + (the prefix portion may contain one or more slashes to indicate scope). + This defines a field of the workflow step input object with the value of + the `source` parameter(s). + + # Merging multiple inbound data links + + To merge multiple inbound data links, + [MultipleInputFeatureRequirement](#MultipleInputFeatureRequirement) must be specified + in the workflow or workflow step requirements. + + If the sink parameter is an array, or named in a [workflow + scatter](#WorkflowStep) operation, there may be multiple inbound + data links listed in the `source` field. The values from the + input links are merged depending on the method specified in the + `linkMerge` field. If both `linkMerge` and `pickValue` are null + or not specified, and there is more than one element in the + `source` array, the default method is "merge_nested". + + If both `linkMerge` and `pickValue` are null or not specified, and + there is only a single element in the `source`, then the input + parameter takes the scalar value from the single input link (it is + *not* wrapped in a single-list). + + * **merge_nested** + + The input must be an array consisting of exactly one entry for each + input link. If "merge_nested" is specified with a single link, the value + from the link must be wrapped in a single-item list. + + * **merge_flattened** + + 1. The source and sink parameters must be compatible types, or the source + type must be compatible with single element from the "items" type of + the destination array parameter. + 2. Source parameters which are arrays are concatenated. + Source parameters which are single element types are appended as + single elements. + + # Picking non-null values among inbound data links + + If present, `pickValue` specifies how to pick non-null values among inbound data links. + + `pickValue` is evaluated + 1. Once all source values from upstream step or parameters are available. + 2. After `linkMerge`. + 3. Before `scatter` or `valueFrom`. + + This is specifically intended to be useful in combination with + [conditional execution](#WorkflowStep), where several upstream + steps may be connected to a single input (`source` is a list), and + skipped steps produce null values. + + Static type checkers should check for type consistency after inferring what the type + will be after `pickValue` is applied, just as they do currently for `linkMerge`. + + * **first_non_null** + + For the first level of a list input, pick the first non-null element. The result is a scalar. + It is an error if there is no non-null element. Examples: + * `[null, x, null, y] -> x` + * `[null, [null], null, y] -> [null]` + * `[null, null, null] -> Runtime Error` + + *Intended use case*: If-else pattern where the + value comes either from a conditional step or from a default or + fallback value. The conditional step(s) should be placed first in + the list. + + * **the_only_non_null** + + For the first level of a list input, pick the single non-null element. The result is a scalar. + It is an error if there is more than one non-null element. Examples: + + * `[null, x, null] -> x` + * `[null, x, null, y] -> Runtime Error` + * `[null, [null], null] -> [null]` + * `[null, null, null] -> Runtime Error` + + *Intended use case*: Switch type patterns where developer considers + more than one active code path as a workflow error + (possibly indicating an error in writing `when` condition expressions). + + * **all_non_null** + + For the first level of a list input, pick all non-null values. + The result is a list, which may be empty. Examples: + + * `[null, x, null] -> [x]` + * `[x, null, y] -> [x, y]` + * `[null, [x], [null]] -> [[x], [null]]` + * `[null, null, null] -> []` + + *Intended use case*: It is valid to have more than one source, but + sources are conditional, so null sources (from skipped steps) + should be filtered out. +
+ */ +public interface WorkflowStepInput extends Identified, Sink, LoadContents, Labeled, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); + /** + * Getter for property https://w3id.org/cwl/cwl#source
+ *
+ * Specifies one or more workflow parameters that will provide input to + * the underlying step parameter. + * *
+ */ + + Object getSource(); + /** + * Getter for property https://w3id.org/cwl/cwl#Sink/linkMerge
+ *
+ * The method to use to merge multiple inbound links into a single array. + * If not specified, the default method is "merge_nested". + * *
+ */ + + java.util.Optional getLinkMerge(); + /** + * Getter for property https://w3id.org/cwl/cwl#Sink/pickValue
+ *
+ * The method to use to choose non-null elements among multiple sources. + * *
+ */ + + java.util.Optional getPickValue(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * If true, the file (or each file in the array) must be a UTF-8 + * text file 64 KiB or smaller, and the implementation must read + * the entire contents of the file (or file array) and place it + * in the `contents` field of the File object for use by + * expressions. If the size of the file is greater than 64 KiB, + * the implementation must raise a fatal error. + * *
+ */ + + java.util.Optional getLoadContents(); + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + java.util.Optional getLoadListing(); + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + java.util.Optional getLabel(); + /** + * Getter for property https://w3id.org/cwl/salad#default
+ *
+ * The default value for this parameter to use if either there is no + * `source` field, or the value produced by the `source` is `null`. The + * default must be applied prior to scattering or evaluating `valueFrom`. + * *
+ */ + + java.util.Optional getDefault(); + /** + * Getter for property https://w3id.org/cwl/cwl#WorkflowStepInput/valueFrom
+ *
+ * To use valueFrom, [StepInputExpressionRequirement](#StepInputExpressionRequirement) must + * be specified in the workflow or workflow step requirements. + * + * If `valueFrom` is a constant string value, use this as the value for + * this input parameter. + * + * If `valueFrom` is a parameter reference or expression, it must be + * evaluated to yield the actual value to be assigned to the input field. + * + * The `self` value in the parameter reference or expression must be + * 1. `null` if there is no `source` field + * 2. the value of the parameter(s) specified in the `source` field when this + * workflow input parameter **is not** specified in this workflow step's `scatter` field. + * 3. an element of the parameter specified in the `source` field when this workflow input + * parameter **is** specified in this workflow step's `scatter` field. + * + * The value of `inputs` in the parameter reference or expression must be + * the input object to the workflow step after assigning the `source` + * values, applying `default`, and then scattering. The order of + * evaluating `valueFrom` among step input parameters is undefined and the + * result of evaluating `valueFrom` on a parameter must not be visible to + * evaluation of `valueFrom` on other parameters. + * *
+ */ + + Object getValueFrom(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepInputImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepInputImpl.java new file mode 100644 index 00000000..58745d72 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepInputImpl.java @@ -0,0 +1,521 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowStepInput
+ The input of a workflow step connects an upstream parameter (from the + workflow inputs, or the outputs of other workflows steps) with the input + parameters of the process specified by the `run` field. Only input parameters + declared by the target process will be passed through at runtime to the process + though additional parameters may be specified (for use within `valueFrom` + expressions for instance) - unconnected or unused parameters do not represent an + error condition. + + # Input object + + A WorkflowStepInput object must contain an `id` field in the form + `#fieldname` or `#prefix/fieldname`. When the `id` field contains a slash + `/` the field name consists of the characters following the final slash + (the prefix portion may contain one or more slashes to indicate scope). + This defines a field of the workflow step input object with the value of + the `source` parameter(s). + + # Merging multiple inbound data links + + To merge multiple inbound data links, + [MultipleInputFeatureRequirement](#MultipleInputFeatureRequirement) must be specified + in the workflow or workflow step requirements. + + If the sink parameter is an array, or named in a [workflow + scatter](#WorkflowStep) operation, there may be multiple inbound + data links listed in the `source` field. The values from the + input links are merged depending on the method specified in the + `linkMerge` field. If both `linkMerge` and `pickValue` are null + or not specified, and there is more than one element in the + `source` array, the default method is "merge_nested". + + If both `linkMerge` and `pickValue` are null or not specified, and + there is only a single element in the `source`, then the input + parameter takes the scalar value from the single input link (it is + *not* wrapped in a single-list). + + * **merge_nested** + + The input must be an array consisting of exactly one entry for each + input link. If "merge_nested" is specified with a single link, the value + from the link must be wrapped in a single-item list. + + * **merge_flattened** + + 1. The source and sink parameters must be compatible types, or the source + type must be compatible with single element from the "items" type of + the destination array parameter. + 2. Source parameters which are arrays are concatenated. + Source parameters which are single element types are appended as + single elements. + + # Picking non-null values among inbound data links + + If present, `pickValue` specifies how to pick non-null values among inbound data links. + + `pickValue` is evaluated + 1. Once all source values from upstream step or parameters are available. + 2. After `linkMerge`. + 3. Before `scatter` or `valueFrom`. + + This is specifically intended to be useful in combination with + [conditional execution](#WorkflowStep), where several upstream + steps may be connected to a single input (`source` is a list), and + skipped steps produce null values. + + Static type checkers should check for type consistency after inferring what the type + will be after `pickValue` is applied, just as they do currently for `linkMerge`. + + * **first_non_null** + + For the first level of a list input, pick the first non-null element. The result is a scalar. + It is an error if there is no non-null element. Examples: + * `[null, x, null, y] -> x` + * `[null, [null], null, y] -> [null]` + * `[null, null, null] -> Runtime Error` + + *Intended use case*: If-else pattern where the + value comes either from a conditional step or from a default or + fallback value. The conditional step(s) should be placed first in + the list. + + * **the_only_non_null** + + For the first level of a list input, pick the single non-null element. The result is a scalar. + It is an error if there is more than one non-null element. Examples: + + * `[null, x, null] -> x` + * `[null, x, null, y] -> Runtime Error` + * `[null, [null], null] -> [null]` + * `[null, null, null] -> Runtime Error` + + *Intended use case*: Switch type patterns where developer considers + more than one active code path as a workflow error + (possibly indicating an error in writing `when` condition expressions). + + * **all_non_null** + + For the first level of a list input, pick all non-null values. + The result is a list, which may be empty. Examples: + + * `[null, x, null] -> [x]` + * `[x, null, y] -> [x, y]` + * `[null, [x], [null]] -> [[x], [null]]` + * `[null, null, null] -> []` + + *Intended use case*: It is valid to have more than one source, but + sources are conditional, so null sources (from skipped steps) + should be filtered out. +
+ */ +public class WorkflowStepInputImpl extends SaveableImpl implements WorkflowStepInput { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + private Object source; + + /** + * Getter for property https://w3id.org/cwl/cwl#source
+ *
+ * Specifies one or more workflow parameters that will provide input to + * the underlying step parameter. + * *
+ */ + + public Object getSource() { + return this.source; + } + + private java.util.Optional linkMerge; + + /** + * Getter for property https://w3id.org/cwl/cwl#Sink/linkMerge
+ *
+ * The method to use to merge multiple inbound links into a single array. + * If not specified, the default method is "merge_nested". + * *
+ */ + + public java.util.Optional getLinkMerge() { + return this.linkMerge; + } + + private java.util.Optional pickValue; + + /** + * Getter for property https://w3id.org/cwl/cwl#Sink/pickValue
+ *
+ * The method to use to choose non-null elements among multiple sources. + * *
+ */ + + public java.util.Optional getPickValue() { + return this.pickValue; + } + + private java.util.Optional loadContents; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
+ *
+ * Only valid when `type: File` or is an array of `items: File`. + * + * If true, the file (or each file in the array) must be a UTF-8 + * text file 64 KiB or smaller, and the implementation must read + * the entire contents of the file (or file array) and place it + * in the `contents` field of the File object for use by + * expressions. If the size of the file is greater than 64 KiB, + * the implementation must raise a fatal error. + * *
+ */ + + public java.util.Optional getLoadContents() { + return this.loadContents; + } + + private java.util.Optional loadListing; + + /** + * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
+ *
+ * Only valid when `type: Directory` or is an array of `items: Directory`. + * + * Specify the desired behavior for loading the `listing` field of + * a Directory object for use by expressions. + * + * The order of precedence for loadListing is: + * + * 1. `loadListing` on an individual parameter + * 2. Inherited from `LoadListingRequirement` + * 3. By default: `no_listing` + * *
+ */ + + public java.util.Optional getLoadListing() { + return this.loadListing; + } + + private java.util.Optional label; + + /** + * Getter for property https://w3id.org/cwl/cwl#Labeled/label
+ *
+ * A short, human-readable label of this object. *
+ */ + + public java.util.Optional getLabel() { + return this.label; + } + + private java.util.Optional default_; + + /** + * Getter for property https://w3id.org/cwl/salad#default
+ *
+ * The default value for this parameter to use if either there is no + * `source` field, or the value produced by the `source` is `null`. The + * default must be applied prior to scattering or evaluating `valueFrom`. + * *
+ */ + + public java.util.Optional getDefault() { + return this.default_; + } + + private Object valueFrom; + + /** + * Getter for property https://w3id.org/cwl/cwl#WorkflowStepInput/valueFrom
+ *
+ * To use valueFrom, [StepInputExpressionRequirement](#StepInputExpressionRequirement) must + * be specified in the workflow or workflow step requirements. + * + * If `valueFrom` is a constant string value, use this as the value for + * this input parameter. + * + * If `valueFrom` is a parameter reference or expression, it must be + * evaluated to yield the actual value to be assigned to the input field. + * + * The `self` value in the parameter reference or expression must be + * 1. `null` if there is no `source` field + * 2. the value of the parameter(s) specified in the `source` field when this + * workflow input parameter **is not** specified in this workflow step's `scatter` field. + * 3. an element of the parameter specified in the `source` field when this workflow input + * parameter **is** specified in this workflow step's `scatter` field. + * + * The value of `inputs` in the parameter reference or expression must be + * the input object to the workflow step after assigning the `source` + * values, applying `default`, and then scattering. The order of + * evaluating `valueFrom` among step input parameters is undefined and the + * result of evaluating `valueFrom` on a parameter must not be visible to + * evaluation of `valueFrom` on other parameters. + * *
+ */ + + public Object getValueFrom() { + return this.valueFrom; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of WorkflowStepInputImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public WorkflowStepInputImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("WorkflowStepInputImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + Object source; + + if (__doc.containsKey("source")) { + try { + source = + LoaderInstances + .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_2_None + .loadField(__doc.get("source"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + source = null; // won't be used but prevents compiler from complaining. + final String __message = "the `source` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + source = null; + } + java.util.Optional linkMerge; + + if (__doc.containsKey("linkMerge")) { + try { + linkMerge = + LoaderInstances + .optional_LinkMergeMethod + .loadField(__doc.get("linkMerge"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + linkMerge = null; // won't be used but prevents compiler from complaining. + final String __message = "the `linkMerge` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + linkMerge = null; + } + java.util.Optional pickValue; + + if (__doc.containsKey("pickValue")) { + try { + pickValue = + LoaderInstances + .optional_PickValueMethod + .loadField(__doc.get("pickValue"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + pickValue = null; // won't be used but prevents compiler from complaining. + final String __message = "the `pickValue` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + pickValue = null; + } + java.util.Optional loadContents; + + if (__doc.containsKey("loadContents")) { + try { + loadContents = + LoaderInstances + .optional_BooleanInstance + .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadContents = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadContents` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadContents = null; + } + java.util.Optional loadListing; + + if (__doc.containsKey("loadListing")) { + try { + loadListing = + LoaderInstances + .optional_LoadListingEnum + .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + loadListing = null; // won't be used but prevents compiler from complaining. + final String __message = "the `loadListing` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + loadListing = null; + } + java.util.Optional label; + + if (__doc.containsKey("label")) { + try { + label = + LoaderInstances + .optional_StringInstance + .loadField(__doc.get("label"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + label = null; // won't be used but prevents compiler from complaining. + final String __message = "the `label` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + label = null; + } + java.util.Optional default_; + + if (__doc.containsKey("default")) { + try { + default_ = + LoaderInstances + .optional_CWLObjectType + .loadField(__doc.get("default"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + default_ = null; // won't be used but prevents compiler from complaining. + final String __message = "the `default` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + default_ = null; + } + Object valueFrom; + + if (__doc.containsKey("valueFrom")) { + try { + valueFrom = + LoaderInstances + .union_of_NullInstance_or_StringInstance_or_ExpressionLoader + .loadField(__doc.get("valueFrom"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + valueFrom = null; // won't be used but prevents compiler from complaining. + final String __message = "the `valueFrom` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + valueFrom = null; + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.id = (java.util.Optional) id; + this.source = (Object) source; + this.linkMerge = (java.util.Optional) linkMerge; + this.pickValue = (java.util.Optional) pickValue; + this.loadContents = (java.util.Optional) loadContents; + this.loadListing = (java.util.Optional) loadListing; + this.label = (java.util.Optional) label; + this.default_ = (java.util.Optional) default_; + this.valueFrom = (Object) valueFrom; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("id", "source", "linkMerge", "pickValue", "loadContents", "loadListing", "label", "default", "valueFrom"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepOutput.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepOutput.java new file mode 100644 index 00000000..4920b23e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepOutput.java @@ -0,0 +1,44 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.Saveable; + +/** +* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowStepOutput
This interface is implemented by {@link WorkflowStepOutputImpl}
+ Associate an output parameter of the underlying process with a workflow + parameter. The workflow parameter (given in the `id` field) be may be used + as a `source` to connect with input parameters of other workflow steps, or + with an output parameter of the process. + + A unique identifier for this workflow output parameter. This is + the identifier to use in the `source` field of `WorkflowStepInput` + to connect the output value to downstream parameters. +
+ */ +public interface WorkflowStepOutput extends Identified, Saveable { + + java.util.Map getExtensionFields(); + LoadingOptions getLoadingOptions(); + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + java.util.Optional getId(); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepOutputImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepOutputImpl.java new file mode 100644 index 00000000..b81cf4b9 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/WorkflowStepOutputImpl.java @@ -0,0 +1,133 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.LoaderInstances; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptions; +import org.commonwl.cwlsdk.cwl1_2.utils.LoadingOptionsBuilder; +import org.commonwl.cwlsdk.cwl1_2.utils.SaveableImpl; +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +/** +* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowStepOutput
+ Associate an output parameter of the underlying process with a workflow + parameter. The workflow parameter (given in the `id` field) be may be used + as a `source` to connect with input parameters of other workflow steps, or + with an output parameter of the process. + + A unique identifier for this workflow output parameter. This is + the identifier to use in the `source` field of `WorkflowStepInput` + to connect the output value to downstream parameters. +
+ */ +public class WorkflowStepOutputImpl extends SaveableImpl implements WorkflowStepOutput { + private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); + private java.util.Map extensionFields_ = + new java.util.HashMap(); + public LoadingOptions getLoadingOptions() { + return this.loadingOptions_; + } + public java.util.Map getExtensionFields() { + return this.extensionFields_; + } + + private java.util.Optional id; + + /** + * Getter for property https://w3id.org/cwl/cwl#Identified/id
+ *
+ * The unique identifier for this object. *
+ */ + + public java.util.Optional getId() { + return this.id; + } + + /** + * Used by {@link org.commonwl.cwlsdk.cwl1_2.utils.RootLoader} to construct instances of WorkflowStepOutputImpl. + * + * @param __doc_ Document fragment to load this record object from (presumably a + {@link java.util.Map}). + * @param __baseUri_ Base URI to generate child document IDs against. + * @param __loadingOptions Context for loading URIs and populating objects. + * @param __docRoot_ ID at this position in the document (if available) (maybe?) + * @throws ValidationException If the document fragment is not a {@link java.util.Map} + * or validation of fields fails. + */ + public WorkflowStepOutputImpl( + final Object __doc_, + final String __baseUri_, + LoadingOptions __loadingOptions, + final String __docRoot_) { + super(__doc_, __baseUri_, __loadingOptions, __docRoot_); + // Prefix plumbing variables with '__' to reduce likelihood of collision with + // generated names. + String __baseUri = __baseUri_; + String __docRoot = __docRoot_; + if (!(__doc_ instanceof java.util.Map)) { + throw new ValidationException("WorkflowStepOutputImpl called on non-map"); + } + final java.util.Map __doc = (java.util.Map) __doc_; + final java.util.List __errors = + new java.util.ArrayList(); + if (__loadingOptions != null) { + this.loadingOptions_ = __loadingOptions; + } + java.util.Optional id; + + if (__doc.containsKey("id")) { + try { + id = + LoaderInstances + .uri_optional_StringInstance_True_False_None_None + .loadField(__doc.get("id"), __baseUri, __loadingOptions); + } catch (ValidationException e) { + id = null; // won't be used but prevents compiler from complaining. + final String __message = "the `id` field is not valid because:"; + __errors.add(new ValidationException(__message, e)); + } + + } else { + id = null; + } + + Boolean __original_is_null = id == null; + if (id == null) { + if (__docRoot != null) { + id = java.util.Optional.of(__docRoot); + } else { + id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); + } + } + if (__original_is_null) { + __baseUri = __baseUri_; + } else { + __baseUri = (String) id.orElse(null); + } + if (!__errors.isEmpty()) { + throw new ValidationException("Trying 'RecordField'", __errors); + } + this.id = (java.util.Optional) id; + for (String field:__doc.keySet()) { + if (!attrs.contains(field)) { + if (field.contains(":")) { + String expanded_field = __loadingOptions.expandUrl(field, "", false, false, null); + extensionFields_.put(expanded_field, __doc.get(field)); + } + } + } + } + private java.util.List attrs = java.util.Arrays.asList("id"); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/Workflow_class.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Workflow_class.java new file mode 100644 index 00000000..41c06b69 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/Workflow_class.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum Workflow_class { + WORKFLOW("Workflow"); + + private static String[] symbols = new String[] {"Workflow"}; + private String docVal; + + private Workflow_class(final String docVal) { + this.docVal = docVal; + } + + public static Workflow_class fromDocumentVal(final String docVal) { + for(final Workflow_class val : Workflow_class.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", Workflow_class.symbols, docVal)); + } +} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/package.html b/src/main/java/org/commonwl/cwlsdk/cwl1_2/package.html similarity index 100% rename from src/main/java/org/w3id/cwl/cwl1_2/package.html rename to src/main/java/org/commonwl/cwlsdk/cwl1_2/package.html diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/stderr.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/stderr.java new file mode 100644 index 00000000..c46c73ab --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/stderr.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum stderr { + STDERR("stderr"); + + private static String[] symbols = new String[] {"stderr"}; + private String docVal; + + private stderr(final String docVal) { + this.docVal = docVal; + } + + public static stderr fromDocumentVal(final String docVal) { + for(final stderr val : stderr.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", stderr.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/stdin.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/stdin.java new file mode 100644 index 00000000..7d3bf755 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/stdin.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum stdin { + STDIN("stdin"); + + private static String[] symbols = new String[] {"stdin"}; + private String docVal; + + private stdin(final String docVal) { + this.docVal = docVal; + } + + public static stdin fromDocumentVal(final String docVal) { + for(final stdin val : stdin.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", stdin.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/stdout.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/stdout.java new file mode 100644 index 00000000..a5126184 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/stdout.java @@ -0,0 +1,37 @@ +// Copyright Common Workflow Language project contributors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.commonwl.cwlsdk.cwl1_2; + +import org.commonwl.cwlsdk.cwl1_2.utils.ValidationException; + +public enum stdout { + STDOUT("stdout"); + + private static String[] symbols = new String[] {"stdout"}; + private String docVal; + + private stdout(final String docVal) { + this.docVal = docVal; + } + + public static stdout fromDocumentVal(final String docVal) { + for(final stdout val : stdout.values()) { + if(val.docVal.equals(docVal)) { + return val; + } + } + throw new ValidationException(String.format("Expected one of %s", stdout.symbols, docVal)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/AnyLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/AnyLoader.java new file mode 100644 index 00000000..60b61a4e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/AnyLoader.java @@ -0,0 +1,15 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +public class AnyLoader implements Loader { + + public Object load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + if (doc == null) { + throw new ValidationException("Expected non-null"); + } + return doc; + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/ArrayLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/ArrayLoader.java new file mode 100644 index 00000000..9b06396a --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/ArrayLoader.java @@ -0,0 +1,43 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.util.ArrayList; +import java.util.List; + +public class ArrayLoader implements Loader> { + private final Loader itemLoader; + + public ArrayLoader(Loader itemLoader) { + this.itemLoader = itemLoader; + } + + public List load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + final List docList = (List) Loader.validateOfJavaType(List.class, doc); + final List r = new ArrayList(); + final List loaders = new ArrayList(); + loaders.add(this); + loaders.add(this.itemLoader); + final UnionLoader unionLoader = new UnionLoader(loaders); + final List errors = new ArrayList(); + for (final Object el : docList) { + try { + final Object loadedField = unionLoader.loadField(el, baseUri, loadingOptions); + final boolean flatten = !"@list".equals(loadingOptions.container); + if (flatten && loadedField instanceof List) { + r.addAll((List) loadedField); + } else { + r.add((T) loadedField); + } + } catch (final ValidationException e) { + errors.add(e); + } + } + if (!errors.isEmpty()) { + throw new ValidationException("", errors); + } + return r; + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/ConstantMaps.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/ConstantMaps.java new file mode 100644 index 00000000..bb2f3618 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/ConstantMaps.java @@ -0,0 +1,297 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.util.HashMap; + +public class ConstantMaps { + // declare as HashMap for clone(). + public static final HashMap vocab = new HashMap(); + public static final HashMap rvocab = new HashMap(); + + static { + vocab.put("Any", "https://w3id.org/cwl/salad#Any"); + vocab.put("ArraySchema", "https://w3id.org/cwl/salad#ArraySchema"); + vocab.put("CWLArraySchema", "https://w3id.org/cwl/cwl#CWLArraySchema"); + vocab.put("CWLInputFile", "https://w3id.org/cwl/cwl#CWLInputFile"); + vocab.put("CWLObjectType", "https://w3id.org/cwl/cwl#CWLObjectType"); + vocab.put("CWLRecordField", "https://w3id.org/cwl/cwl#CWLRecordField"); + vocab.put("CWLRecordSchema", "https://w3id.org/cwl/cwl#CWLRecordSchema"); + vocab.put("CWLType", "https://w3id.org/cwl/cwl#CWLType"); + vocab.put("CWLVersion", "https://w3id.org/cwl/cwl#CWLVersion"); + vocab.put("CommandInputArraySchema", "https://w3id.org/cwl/cwl#CommandInputArraySchema"); + vocab.put("CommandInputEnumSchema", "https://w3id.org/cwl/cwl#CommandInputEnumSchema"); + vocab.put("CommandInputParameter", "https://w3id.org/cwl/cwl#CommandInputParameter"); + vocab.put("CommandInputRecordField", "https://w3id.org/cwl/cwl#CommandInputRecordField"); + vocab.put("CommandInputRecordSchema", "https://w3id.org/cwl/cwl#CommandInputRecordSchema"); + vocab.put("CommandInputSchema", "https://w3id.org/cwl/cwl#CommandInputSchema"); + vocab.put("CommandLineBindable", "https://w3id.org/cwl/cwl#CommandLineBindable"); + vocab.put("CommandLineBinding", "https://w3id.org/cwl/cwl#CommandLineBinding"); + vocab.put("CommandLineTool", "CommandLineTool"); + vocab.put("CommandOutputArraySchema", "https://w3id.org/cwl/cwl#CommandOutputArraySchema"); + vocab.put("CommandOutputBinding", "https://w3id.org/cwl/cwl#CommandOutputBinding"); + vocab.put("CommandOutputEnumSchema", "https://w3id.org/cwl/cwl#CommandOutputEnumSchema"); + vocab.put("CommandOutputParameter", "https://w3id.org/cwl/cwl#CommandOutputParameter"); + vocab.put("CommandOutputRecordField", "https://w3id.org/cwl/cwl#CommandOutputRecordField"); + vocab.put("CommandOutputRecordSchema", "https://w3id.org/cwl/cwl#CommandOutputRecordSchema"); + vocab.put("Directory", "Directory"); + vocab.put("Dirent", "https://w3id.org/cwl/cwl#Dirent"); + vocab.put("DockerRequirement", "DockerRequirement"); + vocab.put("Documented", "https://w3id.org/cwl/salad#Documented"); + vocab.put("EnumSchema", "https://w3id.org/cwl/salad#EnumSchema"); + vocab.put("EnvVarRequirement", "EnvVarRequirement"); + vocab.put("EnvironmentDef", "https://w3id.org/cwl/cwl#EnvironmentDef"); + vocab.put("Expression", "https://w3id.org/cwl/cwl#Expression"); + vocab.put("ExpressionPlaceholder", "https://w3id.org/cwl/cwl#ExpressionPlaceholder"); + vocab.put("ExpressionTool", "ExpressionTool"); + vocab.put("ExpressionToolOutputParameter", "https://w3id.org/cwl/cwl#ExpressionToolOutputParameter"); + vocab.put("FieldBase", "https://w3id.org/cwl/cwl#FieldBase"); + vocab.put("File", "File"); + vocab.put("IOSchema", "https://w3id.org/cwl/cwl#IOSchema"); + vocab.put("Identified", "https://w3id.org/cwl/cwl#Identified"); + vocab.put("InitialWorkDirRequirement", "InitialWorkDirRequirement"); + vocab.put("InlineJavascriptRequirement", "InlineJavascriptRequirement"); + vocab.put("InplaceUpdateRequirement", "InplaceUpdateRequirement"); + vocab.put("InputArraySchema", "https://w3id.org/cwl/cwl#InputArraySchema"); + vocab.put("InputBinding", "https://w3id.org/cwl/cwl#InputBinding"); + vocab.put("InputEnumSchema", "https://w3id.org/cwl/cwl#InputEnumSchema"); + vocab.put("InputFormat", "https://w3id.org/cwl/cwl#InputFormat"); + vocab.put("InputParameter", "https://w3id.org/cwl/cwl#InputParameter"); + vocab.put("InputRecordField", "https://w3id.org/cwl/cwl#InputRecordField"); + vocab.put("InputRecordSchema", "https://w3id.org/cwl/cwl#InputRecordSchema"); + vocab.put("InputSchema", "https://w3id.org/cwl/cwl#InputSchema"); + vocab.put("Labeled", "https://w3id.org/cwl/cwl#Labeled"); + vocab.put("LinkMergeMethod", "https://w3id.org/cwl/cwl#LinkMergeMethod"); + vocab.put("LoadContents", "https://w3id.org/cwl/cwl#LoadContents"); + vocab.put("LoadListingEnum", "https://w3id.org/cwl/cwl#LoadListingEnum"); + vocab.put("LoadListingRequirement", "LoadListingRequirement"); + vocab.put("MapSchema", "https://w3id.org/cwl/salad#MapSchema"); + vocab.put("MultipleInputFeatureRequirement", "MultipleInputFeatureRequirement"); + vocab.put("NetworkAccess", "NetworkAccess"); + vocab.put("Operation", "Operation"); + vocab.put("OperationInputParameter", "https://w3id.org/cwl/cwl#OperationInputParameter"); + vocab.put("OperationOutputParameter", "https://w3id.org/cwl/cwl#OperationOutputParameter"); + vocab.put("OutputArraySchema", "https://w3id.org/cwl/cwl#OutputArraySchema"); + vocab.put("OutputEnumSchema", "https://w3id.org/cwl/cwl#OutputEnumSchema"); + vocab.put("OutputFormat", "https://w3id.org/cwl/cwl#OutputFormat"); + vocab.put("OutputParameter", "https://w3id.org/cwl/cwl#OutputParameter"); + vocab.put("OutputRecordField", "https://w3id.org/cwl/cwl#OutputRecordField"); + vocab.put("OutputRecordSchema", "https://w3id.org/cwl/cwl#OutputRecordSchema"); + vocab.put("OutputSchema", "https://w3id.org/cwl/cwl#OutputSchema"); + vocab.put("Parameter", "https://w3id.org/cwl/cwl#Parameter"); + vocab.put("PickValueMethod", "https://w3id.org/cwl/cwl#PickValueMethod"); + vocab.put("PrimitiveType", "https://w3id.org/cwl/salad#PrimitiveType"); + vocab.put("Process", "https://w3id.org/cwl/cwl#Process"); + vocab.put("ProcessRequirement", "https://w3id.org/cwl/cwl#ProcessRequirement"); + vocab.put("RecordField", "https://w3id.org/cwl/salad#RecordField"); + vocab.put("RecordSchema", "https://w3id.org/cwl/salad#RecordSchema"); + vocab.put("ResourceRequirement", "ResourceRequirement"); + vocab.put("ScatterFeatureRequirement", "ScatterFeatureRequirement"); + vocab.put("ScatterMethod", "https://w3id.org/cwl/cwl#ScatterMethod"); + vocab.put("SchemaDefRequirement", "SchemaDefRequirement"); + vocab.put("SecondaryFileSchema", "https://w3id.org/cwl/cwl#SecondaryFileSchema"); + vocab.put("ShellCommandRequirement", "ShellCommandRequirement"); + vocab.put("Sink", "https://w3id.org/cwl/cwl#Sink"); + vocab.put("SoftwarePackage", "https://w3id.org/cwl/cwl#SoftwarePackage"); + vocab.put("SoftwareRequirement", "SoftwareRequirement"); + vocab.put("StepInputExpressionRequirement", "StepInputExpressionRequirement"); + vocab.put("SubworkflowFeatureRequirement", "SubworkflowFeatureRequirement"); + vocab.put("ToolTimeLimit", "ToolTimeLimit"); + vocab.put("UnionSchema", "https://w3id.org/cwl/salad#UnionSchema"); + vocab.put("WorkReuse", "WorkReuse"); + vocab.put("Workflow", "Workflow"); + vocab.put("WorkflowInputParameter", "https://w3id.org/cwl/cwl#WorkflowInputParameter"); + vocab.put("WorkflowOutputParameter", "https://w3id.org/cwl/cwl#WorkflowOutputParameter"); + vocab.put("WorkflowStep", "https://w3id.org/cwl/cwl#WorkflowStep"); + vocab.put("WorkflowStepInput", "https://w3id.org/cwl/cwl#WorkflowStepInput"); + vocab.put("WorkflowStepOutput", "https://w3id.org/cwl/cwl#WorkflowStepOutput"); + vocab.put("all_non_null", "https://w3id.org/cwl/cwl#PickValueMethod/all_non_null"); + vocab.put("array", "array"); + vocab.put("boolean", "http://www.w3.org/2001/XMLSchema#boolean"); + vocab.put("deep_listing", "https://w3id.org/cwl/cwl#LoadListingEnum/deep_listing"); + vocab.put("dotproduct", "https://w3id.org/cwl/cwl#ScatterMethod/dotproduct"); + vocab.put("double", "http://www.w3.org/2001/XMLSchema#double"); + vocab.put("draft-2", "https://w3id.org/cwl/cwl#draft-2"); + vocab.put("draft-3", "https://w3id.org/cwl/cwl#draft-3"); + vocab.put("draft-3.dev1", "https://w3id.org/cwl/cwl#draft-3.dev1"); + vocab.put("draft-3.dev2", "https://w3id.org/cwl/cwl#draft-3.dev2"); + vocab.put("draft-3.dev3", "https://w3id.org/cwl/cwl#draft-3.dev3"); + vocab.put("draft-3.dev4", "https://w3id.org/cwl/cwl#draft-3.dev4"); + vocab.put("draft-3.dev5", "https://w3id.org/cwl/cwl#draft-3.dev5"); + vocab.put("draft-4.dev1", "https://w3id.org/cwl/cwl#draft-4.dev1"); + vocab.put("draft-4.dev2", "https://w3id.org/cwl/cwl#draft-4.dev2"); + vocab.put("draft-4.dev3", "https://w3id.org/cwl/cwl#draft-4.dev3"); + vocab.put("enum", "enum"); + vocab.put("first_non_null", "https://w3id.org/cwl/cwl#PickValueMethod/first_non_null"); + vocab.put("flat_crossproduct", "https://w3id.org/cwl/cwl#ScatterMethod/flat_crossproduct"); + vocab.put("float", "http://www.w3.org/2001/XMLSchema#float"); + vocab.put("int", "http://www.w3.org/2001/XMLSchema#int"); + vocab.put("long", "http://www.w3.org/2001/XMLSchema#long"); + vocab.put("map", "map"); + vocab.put("merge_flattened", "https://w3id.org/cwl/cwl#LinkMergeMethod/merge_flattened"); + vocab.put("merge_nested", "https://w3id.org/cwl/cwl#LinkMergeMethod/merge_nested"); + vocab.put("nested_crossproduct", "https://w3id.org/cwl/cwl#ScatterMethod/nested_crossproduct"); + vocab.put("no_listing", "https://w3id.org/cwl/cwl#LoadListingEnum/no_listing"); + vocab.put("null", "https://w3id.org/cwl/salad#null"); + vocab.put("record", "record"); + vocab.put("shallow_listing", "https://w3id.org/cwl/cwl#LoadListingEnum/shallow_listing"); + vocab.put("stderr", "https://w3id.org/cwl/cwl#stderr"); + vocab.put("stdin", "https://w3id.org/cwl/cwl#stdin"); + vocab.put("stdout", "https://w3id.org/cwl/cwl#stdout"); + vocab.put("string", "http://www.w3.org/2001/XMLSchema#string"); + vocab.put("the_only_non_null", "https://w3id.org/cwl/cwl#PickValueMethod/the_only_non_null"); + vocab.put("union", "union"); + vocab.put("v1.0", "https://w3id.org/cwl/cwl#v1.0"); + vocab.put("v1.0.dev4", "https://w3id.org/cwl/cwl#v1.0.dev4"); + vocab.put("v1.1", "https://w3id.org/cwl/cwl#v1.1"); + vocab.put("v1.1.0-dev1", "https://w3id.org/cwl/cwl#v1.1.0-dev1"); + vocab.put("v1.2", "https://w3id.org/cwl/cwl#v1.2"); + vocab.put("v1.2.0-dev1", "https://w3id.org/cwl/cwl#v1.2.0-dev1"); + vocab.put("v1.2.0-dev2", "https://w3id.org/cwl/cwl#v1.2.0-dev2"); + vocab.put("v1.2.0-dev3", "https://w3id.org/cwl/cwl#v1.2.0-dev3"); + vocab.put("v1.2.0-dev4", "https://w3id.org/cwl/cwl#v1.2.0-dev4"); + vocab.put("v1.2.0-dev5", "https://w3id.org/cwl/cwl#v1.2.0-dev5"); + + + rvocab.put("https://w3id.org/cwl/salad#Any", "Any"); + rvocab.put("https://w3id.org/cwl/salad#ArraySchema", "ArraySchema"); + rvocab.put("https://w3id.org/cwl/cwl#CWLArraySchema", "CWLArraySchema"); + rvocab.put("https://w3id.org/cwl/cwl#CWLInputFile", "CWLInputFile"); + rvocab.put("https://w3id.org/cwl/cwl#CWLObjectType", "CWLObjectType"); + rvocab.put("https://w3id.org/cwl/cwl#CWLRecordField", "CWLRecordField"); + rvocab.put("https://w3id.org/cwl/cwl#CWLRecordSchema", "CWLRecordSchema"); + rvocab.put("https://w3id.org/cwl/cwl#CWLType", "CWLType"); + rvocab.put("https://w3id.org/cwl/cwl#CWLVersion", "CWLVersion"); + rvocab.put("https://w3id.org/cwl/cwl#CommandInputArraySchema", "CommandInputArraySchema"); + rvocab.put("https://w3id.org/cwl/cwl#CommandInputEnumSchema", "CommandInputEnumSchema"); + rvocab.put("https://w3id.org/cwl/cwl#CommandInputParameter", "CommandInputParameter"); + rvocab.put("https://w3id.org/cwl/cwl#CommandInputRecordField", "CommandInputRecordField"); + rvocab.put("https://w3id.org/cwl/cwl#CommandInputRecordSchema", "CommandInputRecordSchema"); + rvocab.put("https://w3id.org/cwl/cwl#CommandInputSchema", "CommandInputSchema"); + rvocab.put("https://w3id.org/cwl/cwl#CommandLineBindable", "CommandLineBindable"); + rvocab.put("https://w3id.org/cwl/cwl#CommandLineBinding", "CommandLineBinding"); + rvocab.put("CommandLineTool", "CommandLineTool"); + rvocab.put("https://w3id.org/cwl/cwl#CommandOutputArraySchema", "CommandOutputArraySchema"); + rvocab.put("https://w3id.org/cwl/cwl#CommandOutputBinding", "CommandOutputBinding"); + rvocab.put("https://w3id.org/cwl/cwl#CommandOutputEnumSchema", "CommandOutputEnumSchema"); + rvocab.put("https://w3id.org/cwl/cwl#CommandOutputParameter", "CommandOutputParameter"); + rvocab.put("https://w3id.org/cwl/cwl#CommandOutputRecordField", "CommandOutputRecordField"); + rvocab.put("https://w3id.org/cwl/cwl#CommandOutputRecordSchema", "CommandOutputRecordSchema"); + rvocab.put("Directory", "Directory"); + rvocab.put("https://w3id.org/cwl/cwl#Dirent", "Dirent"); + rvocab.put("DockerRequirement", "DockerRequirement"); + rvocab.put("https://w3id.org/cwl/salad#Documented", "Documented"); + rvocab.put("https://w3id.org/cwl/salad#EnumSchema", "EnumSchema"); + rvocab.put("EnvVarRequirement", "EnvVarRequirement"); + rvocab.put("https://w3id.org/cwl/cwl#EnvironmentDef", "EnvironmentDef"); + rvocab.put("https://w3id.org/cwl/cwl#Expression", "Expression"); + rvocab.put("https://w3id.org/cwl/cwl#ExpressionPlaceholder", "ExpressionPlaceholder"); + rvocab.put("ExpressionTool", "ExpressionTool"); + rvocab.put("https://w3id.org/cwl/cwl#ExpressionToolOutputParameter", "ExpressionToolOutputParameter"); + rvocab.put("https://w3id.org/cwl/cwl#FieldBase", "FieldBase"); + rvocab.put("File", "File"); + rvocab.put("https://w3id.org/cwl/cwl#IOSchema", "IOSchema"); + rvocab.put("https://w3id.org/cwl/cwl#Identified", "Identified"); + rvocab.put("InitialWorkDirRequirement", "InitialWorkDirRequirement"); + rvocab.put("InlineJavascriptRequirement", "InlineJavascriptRequirement"); + rvocab.put("InplaceUpdateRequirement", "InplaceUpdateRequirement"); + rvocab.put("https://w3id.org/cwl/cwl#InputArraySchema", "InputArraySchema"); + rvocab.put("https://w3id.org/cwl/cwl#InputBinding", "InputBinding"); + rvocab.put("https://w3id.org/cwl/cwl#InputEnumSchema", "InputEnumSchema"); + rvocab.put("https://w3id.org/cwl/cwl#InputFormat", "InputFormat"); + rvocab.put("https://w3id.org/cwl/cwl#InputParameter", "InputParameter"); + rvocab.put("https://w3id.org/cwl/cwl#InputRecordField", "InputRecordField"); + rvocab.put("https://w3id.org/cwl/cwl#InputRecordSchema", "InputRecordSchema"); + rvocab.put("https://w3id.org/cwl/cwl#InputSchema", "InputSchema"); + rvocab.put("https://w3id.org/cwl/cwl#Labeled", "Labeled"); + rvocab.put("https://w3id.org/cwl/cwl#LinkMergeMethod", "LinkMergeMethod"); + rvocab.put("https://w3id.org/cwl/cwl#LoadContents", "LoadContents"); + rvocab.put("https://w3id.org/cwl/cwl#LoadListingEnum", "LoadListingEnum"); + rvocab.put("LoadListingRequirement", "LoadListingRequirement"); + rvocab.put("https://w3id.org/cwl/salad#MapSchema", "MapSchema"); + rvocab.put("MultipleInputFeatureRequirement", "MultipleInputFeatureRequirement"); + rvocab.put("NetworkAccess", "NetworkAccess"); + rvocab.put("Operation", "Operation"); + rvocab.put("https://w3id.org/cwl/cwl#OperationInputParameter", "OperationInputParameter"); + rvocab.put("https://w3id.org/cwl/cwl#OperationOutputParameter", "OperationOutputParameter"); + rvocab.put("https://w3id.org/cwl/cwl#OutputArraySchema", "OutputArraySchema"); + rvocab.put("https://w3id.org/cwl/cwl#OutputEnumSchema", "OutputEnumSchema"); + rvocab.put("https://w3id.org/cwl/cwl#OutputFormat", "OutputFormat"); + rvocab.put("https://w3id.org/cwl/cwl#OutputParameter", "OutputParameter"); + rvocab.put("https://w3id.org/cwl/cwl#OutputRecordField", "OutputRecordField"); + rvocab.put("https://w3id.org/cwl/cwl#OutputRecordSchema", "OutputRecordSchema"); + rvocab.put("https://w3id.org/cwl/cwl#OutputSchema", "OutputSchema"); + rvocab.put("https://w3id.org/cwl/cwl#Parameter", "Parameter"); + rvocab.put("https://w3id.org/cwl/cwl#PickValueMethod", "PickValueMethod"); + rvocab.put("https://w3id.org/cwl/salad#PrimitiveType", "PrimitiveType"); + rvocab.put("https://w3id.org/cwl/cwl#Process", "Process"); + rvocab.put("https://w3id.org/cwl/cwl#ProcessRequirement", "ProcessRequirement"); + rvocab.put("https://w3id.org/cwl/salad#RecordField", "RecordField"); + rvocab.put("https://w3id.org/cwl/salad#RecordSchema", "RecordSchema"); + rvocab.put("ResourceRequirement", "ResourceRequirement"); + rvocab.put("ScatterFeatureRequirement", "ScatterFeatureRequirement"); + rvocab.put("https://w3id.org/cwl/cwl#ScatterMethod", "ScatterMethod"); + rvocab.put("SchemaDefRequirement", "SchemaDefRequirement"); + rvocab.put("https://w3id.org/cwl/cwl#SecondaryFileSchema", "SecondaryFileSchema"); + rvocab.put("ShellCommandRequirement", "ShellCommandRequirement"); + rvocab.put("https://w3id.org/cwl/cwl#Sink", "Sink"); + rvocab.put("https://w3id.org/cwl/cwl#SoftwarePackage", "SoftwarePackage"); + rvocab.put("SoftwareRequirement", "SoftwareRequirement"); + rvocab.put("StepInputExpressionRequirement", "StepInputExpressionRequirement"); + rvocab.put("SubworkflowFeatureRequirement", "SubworkflowFeatureRequirement"); + rvocab.put("ToolTimeLimit", "ToolTimeLimit"); + rvocab.put("https://w3id.org/cwl/salad#UnionSchema", "UnionSchema"); + rvocab.put("WorkReuse", "WorkReuse"); + rvocab.put("Workflow", "Workflow"); + rvocab.put("https://w3id.org/cwl/cwl#WorkflowInputParameter", "WorkflowInputParameter"); + rvocab.put("https://w3id.org/cwl/cwl#WorkflowOutputParameter", "WorkflowOutputParameter"); + rvocab.put("https://w3id.org/cwl/cwl#WorkflowStep", "WorkflowStep"); + rvocab.put("https://w3id.org/cwl/cwl#WorkflowStepInput", "WorkflowStepInput"); + rvocab.put("https://w3id.org/cwl/cwl#WorkflowStepOutput", "WorkflowStepOutput"); + rvocab.put("https://w3id.org/cwl/cwl#PickValueMethod/all_non_null", "all_non_null"); + rvocab.put("array", "array"); + rvocab.put("http://www.w3.org/2001/XMLSchema#boolean", "boolean"); + rvocab.put("https://w3id.org/cwl/cwl#LoadListingEnum/deep_listing", "deep_listing"); + rvocab.put("https://w3id.org/cwl/cwl#ScatterMethod/dotproduct", "dotproduct"); + rvocab.put("http://www.w3.org/2001/XMLSchema#double", "double"); + rvocab.put("https://w3id.org/cwl/cwl#draft-2", "draft-2"); + rvocab.put("https://w3id.org/cwl/cwl#draft-3", "draft-3"); + rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev1", "draft-3.dev1"); + rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev2", "draft-3.dev2"); + rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev3", "draft-3.dev3"); + rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev4", "draft-3.dev4"); + rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev5", "draft-3.dev5"); + rvocab.put("https://w3id.org/cwl/cwl#draft-4.dev1", "draft-4.dev1"); + rvocab.put("https://w3id.org/cwl/cwl#draft-4.dev2", "draft-4.dev2"); + rvocab.put("https://w3id.org/cwl/cwl#draft-4.dev3", "draft-4.dev3"); + rvocab.put("enum", "enum"); + rvocab.put("https://w3id.org/cwl/cwl#PickValueMethod/first_non_null", "first_non_null"); + rvocab.put("https://w3id.org/cwl/cwl#ScatterMethod/flat_crossproduct", "flat_crossproduct"); + rvocab.put("http://www.w3.org/2001/XMLSchema#float", "float"); + rvocab.put("http://www.w3.org/2001/XMLSchema#int", "int"); + rvocab.put("http://www.w3.org/2001/XMLSchema#long", "long"); + rvocab.put("map", "map"); + rvocab.put("https://w3id.org/cwl/cwl#LinkMergeMethod/merge_flattened", "merge_flattened"); + rvocab.put("https://w3id.org/cwl/cwl#LinkMergeMethod/merge_nested", "merge_nested"); + rvocab.put("https://w3id.org/cwl/cwl#ScatterMethod/nested_crossproduct", "nested_crossproduct"); + rvocab.put("https://w3id.org/cwl/cwl#LoadListingEnum/no_listing", "no_listing"); + rvocab.put("https://w3id.org/cwl/salad#null", "null"); + rvocab.put("record", "record"); + rvocab.put("https://w3id.org/cwl/cwl#LoadListingEnum/shallow_listing", "shallow_listing"); + rvocab.put("https://w3id.org/cwl/cwl#stderr", "stderr"); + rvocab.put("https://w3id.org/cwl/cwl#stdin", "stdin"); + rvocab.put("https://w3id.org/cwl/cwl#stdout", "stdout"); + rvocab.put("http://www.w3.org/2001/XMLSchema#string", "string"); + rvocab.put("https://w3id.org/cwl/cwl#PickValueMethod/the_only_non_null", "the_only_non_null"); + rvocab.put("union", "union"); + rvocab.put("https://w3id.org/cwl/cwl#v1.0", "v1.0"); + rvocab.put("https://w3id.org/cwl/cwl#v1.0.dev4", "v1.0.dev4"); + rvocab.put("https://w3id.org/cwl/cwl#v1.1", "v1.1"); + rvocab.put("https://w3id.org/cwl/cwl#v1.1.0-dev1", "v1.1.0-dev1"); + rvocab.put("https://w3id.org/cwl/cwl#v1.2", "v1.2"); + rvocab.put("https://w3id.org/cwl/cwl#v1.2.0-dev1", "v1.2.0-dev1"); + rvocab.put("https://w3id.org/cwl/cwl#v1.2.0-dev2", "v1.2.0-dev2"); + rvocab.put("https://w3id.org/cwl/cwl#v1.2.0-dev3", "v1.2.0-dev3"); + rvocab.put("https://w3id.org/cwl/cwl#v1.2.0-dev4", "v1.2.0-dev4"); + rvocab.put("https://w3id.org/cwl/cwl#v1.2.0-dev5", "v1.2.0-dev5"); + + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/DefaultFetcher.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/DefaultFetcher.java new file mode 100644 index 00000000..46e4ed83 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/DefaultFetcher.java @@ -0,0 +1,48 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.io.IOException; +import java.net.URI; +import java.util.Arrays; +import java.util.Scanner; + +public class DefaultFetcher implements Fetcher { + + public String urlJoin(final String baseUrl, final String url) { + if (url.startsWith("_:")) { + return url; + } + + final URI baseUri = Uris.toUri(baseUrl); + final URI uri = Uris.toUri(url); + if (baseUri.getScheme() != null + && !baseUri.getScheme().equals("file") + && "file".equals(uri.getScheme())) { + throw new ValidationException( + String.format( + "Not resolving potential remote exploit %s from base %s".format(url, baseUrl))); + } + String result = baseUri.resolve(uri).toString(); + if (result.startsWith("file:")) { + // Well this is gross - needed for http as well? + result = "file://" + result.substring("file:".length()); + } + return result; + } + + public String fetchText(final String url) { + final URI uri = Uris.toUri(url); + final String scheme = uri.getScheme(); + if (Arrays.asList("http", "https", "file").contains(scheme)) { + Scanner scanner; + try { + scanner = new Scanner(uri.toURL().openStream(), "UTF-8").useDelimiter("\\A"); + } catch (IOException e) { + throw new ValidationException("Error fetching %s: %s.".format(url, e)); + } + String result = scanner.next(); + scanner.close(); + return result; + } + throw new ValidationException("Unsupported scheme in URL: %s".format(url)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/EnumLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/EnumLoader.java new file mode 100644 index 00000000..d93d67fe --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/EnumLoader.java @@ -0,0 +1,33 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.lang.reflect.Method; +import java.lang.ReflectiveOperationException; +import java.util.Arrays; +import java.util.List; + +public class EnumLoader implements Loader{ + private final Class symbolEnumClass; + + public EnumLoader(final Class symbolEnumClass) { + this.symbolEnumClass = symbolEnumClass; + } + + public T load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + final String docString = Loader.validateOfJavaType(String.class, doc); + try { + final Method m = symbolEnumClass.getMethod("fromDocumentVal", String.class); + final T val = (T) m.invoke(null, docString); + return val; + } catch (final ReflectiveOperationException e) { + final Throwable cause = e.getCause(); + if (cause instanceof RuntimeException) { + throw (RuntimeException) cause; + } + throw new RuntimeException(e); + } + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/ExpressionLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/ExpressionLoader.java new file mode 100644 index 00000000..10cd2cdf --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/ExpressionLoader.java @@ -0,0 +1,19 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +public class ExpressionLoader implements Loader { + + public ExpressionLoader() { + } + + public String load( + final Object doc_, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + if (doc_ instanceof String) { + return (String) doc_; + } else { + throw new ValidationException("Expected a string."); + } + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/Fetcher.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/Fetcher.java new file mode 100644 index 00000000..7b6ae32b --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/Fetcher.java @@ -0,0 +1,8 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +public interface Fetcher { + + public abstract String urlJoin(final String baseUrl, final String url); + + public abstract String fetchText(final String url); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/IdMapLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/IdMapLoader.java new file mode 100644 index 00000000..d561cf0b --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/IdMapLoader.java @@ -0,0 +1,51 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.TreeSet; + +public class IdMapLoader implements Loader { + private final Loader innerLoader; + private final String mapSubject; + private final String mapPredicate; + + public IdMapLoader( + final Loader innerLoader, final String mapSubject, final String mapPredicate) { + this.innerLoader = innerLoader; + this.mapSubject = mapSubject; + this.mapPredicate = mapPredicate; + } + + public T load( + final Object doc_, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + Object doc = doc_; + if (doc instanceof Map) { + final Map docMap = (Map) doc; + final List asList = new ArrayList(); + for (final String key : docMap.keySet()) { + final Object el = docMap.get(key); + if (el instanceof Map) { + final Map v2 = new HashMap((Map) el); + v2.put(this.mapSubject, key); + asList.add(v2); + } else { + if (this.mapPredicate != null) { + final Map v3 = new HashMap(); + v3.put(this.mapPredicate, el); + v3.put(this.mapSubject, key); + asList.add(v3); + } else { + throw new ValidationException("No mapPredicate"); + } + } + } + doc = asList; + } + return this.innerLoader.load(doc, baseUri, loadingOptions); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/Loader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/Loader.java new file mode 100644 index 00000000..01f45d30 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/Loader.java @@ -0,0 +1,125 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public interface Loader { + + T load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot); + + default T load(final Object doc, final String baseUri, final LoadingOptions loadingOptions) { + return load(doc, baseUri, loadingOptions, null); + } + + default T documentLoad( + final String doc, final String baseUri, final LoadingOptions loadingOptions) { + return load(doc, baseUri, loadingOptions); + } + + default T documentLoad( + final Map doc_, final String baseUri_, final LoadingOptions loadingOptions_) { + Map doc = doc_; + LoadingOptions loadingOptions = loadingOptions_; + if (doc.containsKey("$namespaces")) { + final Map namespaces = (Map) doc.get("$namespaces"); + loadingOptions = + new LoadingOptionsBuilder().copiedFrom(loadingOptions).setNamespaces(namespaces).build(); + doc = copyWithoutKey(doc, "$namespaces"); + } + String baseUri = baseUri_; + if (doc.containsKey("$base")) { + baseUri = (String) doc.get("$base"); + } + if (doc.containsKey("$graph")) { + return load(doc.get("$graph"), baseUri, loadingOptions); + } else { + return load(doc, baseUri, loadingOptions, baseUri); + } + } + + default T documentLoad( + final List doc, final String baseUri, final LoadingOptions loadingOptions) { + return load(doc, baseUri, loadingOptions); + } + + default T documentLoadByUrl(final String url, final LoadingOptions loadingOptions) { + if (loadingOptions.idx.containsKey(url)) { + Object result = loadingOptions.idx.get(url); + if (result instanceof String) { + return documentLoad((String) result, url, loadingOptions); + } else if (result instanceof Map) { + return documentLoad((Map) result, url, loadingOptions); + } + return load(result, url, loadingOptions); + } + + final String text = loadingOptions.fetcher.fetchText(url); + try { + Map resultMap = YamlUtils.mapFromString(text); + loadingOptions.idx.put(url, resultMap); + final LoadingOptionsBuilder urlLoadingOptions = + new LoadingOptionsBuilder().copiedFrom(loadingOptions).setFileUri(url); + return documentLoad(resultMap, url, urlLoadingOptions.build()); + } catch (ClassCastException e) { + List resultList = YamlUtils.listFromString(text); + loadingOptions.idx.put(url, resultList); + final LoadingOptionsBuilder urlLoadingOptions = + new LoadingOptionsBuilder().copiedFrom(loadingOptions).setFileUri(url); + return documentLoad(resultList, url, urlLoadingOptions.build()); + } + } + + default T loadField( + final Object val_, final String baseUri, final LoadingOptions loadingOptions) { + Object val = val_; + if (val instanceof Map) { + Map valMap = (Map) val; + if (valMap.containsKey("$import")) { + if (loadingOptions.fileUri == null) { + throw new ValidationException("Cannot load $import without fileuri"); + } + return documentLoadByUrl( + loadingOptions.fetcher.urlJoin(loadingOptions.fileUri, (String) valMap.get("$import")), + loadingOptions); + } else if (valMap.containsKey("$include")) { + if (loadingOptions.fileUri == null) { + throw new ValidationException("Cannot load $import without fileuri"); + } + val = + loadingOptions.fetcher.fetchText( + loadingOptions.fetcher.urlJoin( + loadingOptions.fileUri, (String) valMap.get("$include"))); + } + } + return load(val, baseUri, loadingOptions); + } + + default Map copyWithoutKey(final Map doc, final String key) { + final Map result = new HashMap(); + for (final Map.Entry entry : doc.entrySet()) { + if (!entry.getKey().equals(key)) { + result.put(entry.getKey(), entry.getValue()); + } + } + return result; + } + + static T validateOfJavaType(final Class clazz, final Object doc) { + if (!clazz.isInstance(doc)) { + String className = "null"; + if (doc != null) { + className = doc.getClass().getName(); + } + final String message = + String.format( + "Expected object with Java type of %s but got %s", clazz.getName(), className); + throw new ValidationException(message); + } + return (T) doc; + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/LoaderInstances.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/LoaderInstances.java new file mode 100644 index 00000000..0ac0025e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/LoaderInstances.java @@ -0,0 +1,331 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.util.List; +import org.commonwl.cwlsdk.cwl1_2.*; + +public class LoaderInstances { + public static Loader StringInstance = new PrimitiveLoader(String.class); + public static Loader IntegerInstance = new PrimitiveLoader(Integer.class); + public static Loader LongInstance = new PrimitiveLoader(Long.class); + public static Loader DoubleInstance = new PrimitiveLoader(Double.class); + public static Loader BooleanInstance = new PrimitiveLoader(Boolean.class); + public static Loader NullInstance = new NullLoader(); + public static Loader AnyInstance = new AnyLoader(); + public static Loader Documented = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.Documented.class, null, null); + public static Loader PrimitiveType = new EnumLoader(PrimitiveType.class); + public static Loader Any = new EnumLoader(Any.class); + public static Loader RecordField = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.RecordFieldImpl.class, null, null); + public static Loader RecordSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.RecordSchemaImpl.class, null, null); + public static Loader EnumSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.EnumSchemaImpl.class, null, null); + public static Loader ArraySchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.ArraySchemaImpl.class, null, null); + public static Loader MapSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.MapSchemaImpl.class, null, null); + public static Loader UnionSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.UnionSchemaImpl.class, null, null); + public static Loader CWLType = new EnumLoader(CWLType.class); + public static Loader CWLArraySchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.CWLArraySchemaImpl.class, null, null); + public static Loader CWLRecordField = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.CWLRecordFieldImpl.class, null, null); + public static Loader CWLRecordSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.CWLRecordSchemaImpl.class, null, null); + public static Loader File = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.FileImpl.class, null, null); + public static Loader Directory = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.DirectoryImpl.class, null, null); + public static Loader CWLObjectType = new UnionLoader(new Loader[] {}); + public static Loader> optional_CWLObjectType = new OptionalLoader(CWLObjectType); + public static Loader>> array_of_optional_CWLObjectType = new ArrayLoader(optional_CWLObjectType); + public static Loader>> map_of_optional_CWLObjectType = new MapLoader(optional_CWLObjectType, null, null); + public static Loader InlineJavascriptRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.InlineJavascriptRequirementImpl.class, null, null); + public static Loader SchemaDefRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.SchemaDefRequirementImpl.class, null, null); + public static Loader LoadListingRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.LoadListingRequirementImpl.class, null, null); + public static Loader DockerRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.DockerRequirementImpl.class, null, null); + public static Loader SoftwareRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.SoftwareRequirementImpl.class, null, null); + public static Loader InitialWorkDirRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.InitialWorkDirRequirementImpl.class, null, null); + public static Loader EnvVarRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.EnvVarRequirementImpl.class, null, null); + public static Loader ShellCommandRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.ShellCommandRequirementImpl.class, null, null); + public static Loader ResourceRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.ResourceRequirementImpl.class, null, null); + public static Loader WorkReuse = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.WorkReuseImpl.class, null, null); + public static Loader NetworkAccess = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.NetworkAccessImpl.class, null, null); + public static Loader InplaceUpdateRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.InplaceUpdateRequirementImpl.class, null, null); + public static Loader ToolTimeLimit = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.ToolTimeLimitImpl.class, null, null); + public static Loader SubworkflowFeatureRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.SubworkflowFeatureRequirementImpl.class, null, null); + public static Loader ScatterFeatureRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.ScatterFeatureRequirementImpl.class, null, null); + public static Loader MultipleInputFeatureRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.MultipleInputFeatureRequirementImpl.class, null, null); + public static Loader StepInputExpressionRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.StepInputExpressionRequirementImpl.class, null, null); + public static Loader union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement = new UnionLoader(new Loader[] { InlineJavascriptRequirement, SchemaDefRequirement, LoadListingRequirement, DockerRequirement, SoftwareRequirement, InitialWorkDirRequirement, EnvVarRequirement, ShellCommandRequirement, ResourceRequirement, WorkReuse, NetworkAccess, InplaceUpdateRequirement, ToolTimeLimit, SubworkflowFeatureRequirement, ScatterFeatureRequirement, MultipleInputFeatureRequirement, StepInputExpressionRequirement }); + public static Loader> array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement = new ArrayLoader(union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement); + public static Loader union_of_NullInstance_or_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_CWLObjectType = new UnionLoader(new Loader[] { NullInstance, array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement, CWLObjectType }); + public static Loader> map_of_union_of_NullInstance_or_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_CWLObjectType = new MapLoader(union_of_NullInstance_or_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_CWLObjectType, "@list", true); + public static Loader CWLVersion = new EnumLoader(CWLVersion.class); + public static Loader Labeled = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.Labeled.class, null, null); + public static Loader Identified = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.Identified.class, null, null); + public static Loader LoadListingEnum = new EnumLoader(LoadListingEnum.class); + public static Loader LoadContents = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.LoadContents.class, null, null); + public static Loader FieldBase = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.FieldBase.class, null, null); + public static Loader InputFormat = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.InputFormat.class, null, null); + public static Loader OutputFormat = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.OutputFormat.class, null, null); + public static Loader Parameter = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.Parameter.class, null, null); + public static Loader Expression = new EnumLoader(Expression.class); + public static Loader InputBinding = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.InputBindingImpl.class, null, null); + public static Loader IOSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.IOSchema.class, null, null); + public static Loader InputSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.InputSchema.class, null, null); + public static Loader OutputSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.OutputSchema.class, null, null); + public static Loader InputRecordField = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.InputRecordFieldImpl.class, null, null); + public static Loader InputRecordSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.InputRecordSchemaImpl.class, null, null); + public static Loader InputEnumSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.InputEnumSchemaImpl.class, null, null); + public static Loader InputArraySchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.InputArraySchemaImpl.class, null, null); + public static Loader OutputRecordField = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.OutputRecordFieldImpl.class, null, null); + public static Loader OutputRecordSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.OutputRecordSchemaImpl.class, null, null); + public static Loader OutputEnumSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.OutputEnumSchemaImpl.class, null, null); + public static Loader OutputArraySchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.OutputArraySchemaImpl.class, null, null); + public static Loader InputParameter = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.InputParameter.class, null, null); + public static Loader OutputParameter = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.OutputParameter.class, null, null); + public static Loader ProcessRequirement = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.ProcessRequirement.class, null, null); + public static Loader Process = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.Process.class, null, null); + public static Loader CommandInputSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.CommandInputSchema.class, null, null); + public static Loader SecondaryFileSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.SecondaryFileSchemaImpl.class, null, null); + public static Loader EnvironmentDef = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.EnvironmentDefImpl.class, null, null); + public static Loader CommandLineBinding = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.CommandLineBindingImpl.class, null, null); + public static Loader CommandOutputBinding = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.CommandOutputBindingImpl.class, null, null); + public static Loader CommandLineBindable = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.CommandLineBindableImpl.class, null, null); + public static Loader CommandInputRecordField = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.CommandInputRecordFieldImpl.class, null, null); + public static Loader CommandInputRecordSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.CommandInputRecordSchemaImpl.class, null, null); + public static Loader CommandInputEnumSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.CommandInputEnumSchemaImpl.class, null, null); + public static Loader CommandInputArraySchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.CommandInputArraySchemaImpl.class, null, null); + public static Loader CommandOutputRecordField = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.CommandOutputRecordFieldImpl.class, null, null); + public static Loader CommandOutputRecordSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.CommandOutputRecordSchemaImpl.class, null, null); + public static Loader CommandOutputEnumSchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.CommandOutputEnumSchemaImpl.class, null, null); + public static Loader CommandOutputArraySchema = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.CommandOutputArraySchemaImpl.class, null, null); + public static Loader CommandInputParameter = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.CommandInputParameterImpl.class, null, null); + public static Loader CommandOutputParameter = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.CommandOutputParameterImpl.class, null, null); + public static Loader stdin = new EnumLoader(stdin.class); + public static Loader stdout = new EnumLoader(stdout.class); + public static Loader stderr = new EnumLoader(stderr.class); + public static Loader CommandLineTool = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.CommandLineToolImpl.class, null, null); + public static Loader SoftwarePackage = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.SoftwarePackageImpl.class, null, null); + public static Loader Dirent = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.DirentImpl.class, null, null); + public static Loader ExpressionToolOutputParameter = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.ExpressionToolOutputParameterImpl.class, null, null); + public static Loader WorkflowInputParameter = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.WorkflowInputParameterImpl.class, null, null); + public static Loader ExpressionTool = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.ExpressionToolImpl.class, null, null); + public static Loader LinkMergeMethod = new EnumLoader(LinkMergeMethod.class); + public static Loader PickValueMethod = new EnumLoader(PickValueMethod.class); + public static Loader WorkflowOutputParameter = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.WorkflowOutputParameterImpl.class, null, null); + public static Loader Sink = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.Sink.class, null, null); + public static Loader WorkflowStepInput = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.WorkflowStepInputImpl.class, null, null); + public static Loader WorkflowStepOutput = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.WorkflowStepOutputImpl.class, null, null); + public static Loader ScatterMethod = new EnumLoader(ScatterMethod.class); + public static Loader WorkflowStep = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.WorkflowStepImpl.class, null, null); + public static Loader Workflow = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.WorkflowImpl.class, null, null); + public static Loader OperationInputParameter = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.OperationInputParameterImpl.class, null, null); + public static Loader OperationOutputParameter = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.OperationOutputParameterImpl.class, null, null); + public static Loader Operation = new RecordLoader(org.commonwl.cwlsdk.cwl1_2.OperationImpl.class, null, null); + public static Loader> array_of_StringInstance = new ArrayLoader(StringInstance); + public static Loader union_of_NullInstance_or_StringInstance_or_array_of_StringInstance = new UnionLoader(new Loader[] { NullInstance, StringInstance, array_of_StringInstance }); + public static Loader uri_StringInstance_True_False_None_None = new UriLoader(StringInstance, true, false, null, null); + public static Loader union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance = new UnionLoader(new Loader[] { PrimitiveType, RecordSchema, EnumSchema, ArraySchema, MapSchema, UnionSchema, StringInstance }); + public static Loader> array_of_union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance = new ArrayLoader(union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance); + public static Loader 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 = new UnionLoader(new Loader[] { PrimitiveType, RecordSchema, EnumSchema, ArraySchema, MapSchema, UnionSchema, StringInstance, array_of_union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance }); + public static Loader typedsl_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_2 = new TypeDslLoader(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, 2); + public static Loader> array_of_RecordField = new ArrayLoader(RecordField); + public static Loader>> optional_array_of_RecordField = new OptionalLoader(array_of_RecordField); + public static Loader>> idmap_fields_optional_array_of_RecordField = new IdMapLoader(optional_array_of_RecordField, "name", "type"); + public static Loader Record_name = new EnumLoader(Record_name.class); + public static Loader typedsl_Record_name_2 = new TypeDslLoader(Record_name, 2); + public static Loader> optional_StringInstance = new OptionalLoader(StringInstance); + public static Loader> uri_optional_StringInstance_True_False_None_None = new UriLoader(optional_StringInstance, true, false, null, null); + public static Loader> uri_array_of_StringInstance_True_False_None_None = new UriLoader(array_of_StringInstance, true, false, null, null); + public static Loader Enum_name = new EnumLoader(Enum_name.class); + public static Loader typedsl_Enum_name_2 = new TypeDslLoader(Enum_name, 2); + public static Loader 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 = new UriLoader(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, null); + public static Loader Array_name = new EnumLoader(Array_name.class); + public static Loader typedsl_Array_name_2 = new TypeDslLoader(Array_name, 2); + public static Loader Map_name = new EnumLoader(Map_name.class); + public static Loader typedsl_Map_name_2 = new TypeDslLoader(Map_name, 2); + public static Loader Union_name = new EnumLoader(Union_name.class); + public static Loader typedsl_Union_name_2 = new TypeDslLoader(Union_name, 2); + public static Loader union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance = new UnionLoader(new Loader[] { PrimitiveType, CWLRecordSchema, EnumSchema, CWLArraySchema, StringInstance }); + public static Loader> array_of_union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance = new ArrayLoader(union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance); + public static Loader 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 = new UnionLoader(new Loader[] { PrimitiveType, CWLRecordSchema, EnumSchema, CWLArraySchema, StringInstance, array_of_union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance }); + public static Loader 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 = new UriLoader(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, null); + public static Loader 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 = new TypeDslLoader(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); + public static Loader> array_of_CWLRecordField = new ArrayLoader(CWLRecordField); + public static Loader>> optional_array_of_CWLRecordField = new OptionalLoader(array_of_CWLRecordField); + public static Loader>> idmap_fields_optional_array_of_CWLRecordField = new IdMapLoader(optional_array_of_CWLRecordField, "name", "type"); + public static Loader File_class = new EnumLoader(File_class.class); + public static Loader uri_File_class_False_True_None_None = new UriLoader(File_class, false, true, null, null); + public static Loader> uri_optional_StringInstance_False_False_None_None = new UriLoader(optional_StringInstance, false, false, null, null); + public static Loader union_of_NullInstance_or_IntegerInstance_or_LongInstance = new UnionLoader(new Loader[] { NullInstance, IntegerInstance, LongInstance }); + public static Loader union_of_File_or_Directory = new UnionLoader(new Loader[] { File, Directory }); + public static Loader> array_of_union_of_File_or_Directory = new ArrayLoader(union_of_File_or_Directory); + public static Loader>> optional_array_of_union_of_File_or_Directory = new OptionalLoader(array_of_union_of_File_or_Directory); + public static Loader>> secondaryfilesdsl_optional_array_of_union_of_File_or_Directory = new SecondaryFilesDslLoader(optional_array_of_union_of_File_or_Directory); + public static Loader> uri_optional_StringInstance_True_False_None_True = new UriLoader(optional_StringInstance, true, false, null, true); + public static Loader Directory_class = new EnumLoader(Directory_class.class); + public static Loader uri_Directory_class_False_True_None_None = new UriLoader(Directory_class, false, true, null, null); + public static Loader> optional_BooleanInstance = new OptionalLoader(BooleanInstance); + public static Loader> optional_LoadListingEnum = new OptionalLoader(LoadListingEnum); + public static Loader> array_of_SecondaryFileSchema = new ArrayLoader(SecondaryFileSchema); + public static Loader union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema = new UnionLoader(new Loader[] { NullInstance, SecondaryFileSchema, array_of_SecondaryFileSchema }); + public static Loader secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema = new SecondaryFilesDslLoader(union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema); + public static Loader ExpressionLoader = new ExpressionLoader(); + public static Loader union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, StringInstance, array_of_StringInstance, ExpressionLoader }); + public static Loader uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True = new UriLoader(union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader, true, false, null, true); + public static Loader union_of_NullInstance_or_StringInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, StringInstance, ExpressionLoader }); + public static Loader uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True = new UriLoader(union_of_NullInstance_or_StringInstance_or_ExpressionLoader, true, false, null, true); + public static Loader union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, InputRecordSchema, InputEnumSchema, InputArraySchema, StringInstance }); + public static Loader> array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance = new ArrayLoader(union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance); + public static Loader union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, InputRecordSchema, InputEnumSchema, InputArraySchema, StringInstance, array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance }); + public static Loader typedsl_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance, 2); + public static Loader> array_of_InputRecordField = new ArrayLoader(InputRecordField); + public static Loader>> optional_array_of_InputRecordField = new OptionalLoader(array_of_InputRecordField); + public static Loader>> idmap_fields_optional_array_of_InputRecordField = new IdMapLoader(optional_array_of_InputRecordField, "name", "type"); + public static Loader uri_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_False_True_2_None = new UriLoader(union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance, false, true, 2, null); + public static Loader union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, OutputRecordSchema, OutputEnumSchema, OutputArraySchema, StringInstance }); + public static Loader> array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance = new ArrayLoader(union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance); + public static Loader union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, OutputRecordSchema, OutputEnumSchema, OutputArraySchema, StringInstance, array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance }); + public static Loader typedsl_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance, 2); + public static Loader> array_of_OutputRecordField = new ArrayLoader(OutputRecordField); + public static Loader>> optional_array_of_OutputRecordField = new OptionalLoader(array_of_OutputRecordField); + public static Loader>> idmap_fields_optional_array_of_OutputRecordField = new IdMapLoader(optional_array_of_OutputRecordField, "name", "type"); + public static Loader uri_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_False_True_2_None = new UriLoader(union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance, false, true, 2, null); + public static Loader union_of_CommandInputParameter_or_WorkflowInputParameter_or_OperationInputParameter = new UnionLoader(new Loader[] { CommandInputParameter, WorkflowInputParameter, OperationInputParameter }); + public static Loader> array_of_union_of_CommandInputParameter_or_WorkflowInputParameter_or_OperationInputParameter = new ArrayLoader(union_of_CommandInputParameter_or_WorkflowInputParameter_or_OperationInputParameter); + public static Loader> idmap_inputs_array_of_union_of_CommandInputParameter_or_WorkflowInputParameter_or_OperationInputParameter = new IdMapLoader(array_of_union_of_CommandInputParameter_or_WorkflowInputParameter_or_OperationInputParameter, "id", "type"); + public static Loader union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter_or_OperationOutputParameter = new UnionLoader(new Loader[] { CommandOutputParameter, ExpressionToolOutputParameter, WorkflowOutputParameter, OperationOutputParameter }); + public static Loader> array_of_union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter_or_OperationOutputParameter = new ArrayLoader(union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter_or_OperationOutputParameter); + public static Loader> idmap_outputs_array_of_union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter_or_OperationOutputParameter = new IdMapLoader(array_of_union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter_or_OperationOutputParameter, "id", "type"); + public static Loader>> optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement = new OptionalLoader(array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement); + public static Loader>> idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement = new IdMapLoader(optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement, "class", "None"); + public static Loader union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance = new UnionLoader(new Loader[] { InlineJavascriptRequirement, SchemaDefRequirement, LoadListingRequirement, DockerRequirement, SoftwareRequirement, InitialWorkDirRequirement, EnvVarRequirement, ShellCommandRequirement, ResourceRequirement, WorkReuse, NetworkAccess, InplaceUpdateRequirement, ToolTimeLimit, SubworkflowFeatureRequirement, ScatterFeatureRequirement, MultipleInputFeatureRequirement, StepInputExpressionRequirement, AnyInstance }); + public static Loader> array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance = new ArrayLoader(union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance); + public static Loader>> optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance = new OptionalLoader(array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance); + public static Loader>> idmap_hints_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance = new IdMapLoader(optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance, "class", "None"); + public static Loader> optional_CWLVersion = new OptionalLoader(CWLVersion); + public static Loader> uri_optional_CWLVersion_False_True_None_None = new UriLoader(optional_CWLVersion, false, true, null, null); + public static Loader>> optional_array_of_StringInstance = new OptionalLoader(array_of_StringInstance); + public static Loader>> uri_optional_array_of_StringInstance_True_False_None_None = new UriLoader(optional_array_of_StringInstance, true, false, null, null); + public static Loader InlineJavascriptRequirement_class = new EnumLoader(InlineJavascriptRequirement_class.class); + public static Loader uri_InlineJavascriptRequirement_class_False_True_None_None = new UriLoader(InlineJavascriptRequirement_class, false, true, null, null); + public static Loader SchemaDefRequirement_class = new EnumLoader(SchemaDefRequirement_class.class); + public static Loader uri_SchemaDefRequirement_class_False_True_None_None = new UriLoader(SchemaDefRequirement_class, false, true, null, null); + public static Loader union_of_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema = new UnionLoader(new Loader[] { CommandInputRecordSchema, CommandInputEnumSchema, CommandInputArraySchema }); + public static Loader> array_of_union_of_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema = new ArrayLoader(union_of_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema); + public static Loader union_of_StringInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { StringInstance, ExpressionLoader }); + public static Loader union_of_NullInstance_or_BooleanInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, BooleanInstance, ExpressionLoader }); + public static Loader LoadListingRequirement_class = new EnumLoader(LoadListingRequirement_class.class); + public static Loader uri_LoadListingRequirement_class_False_True_None_None = new UriLoader(LoadListingRequirement_class, false, true, null, null); + public static Loader union_of_NullInstance_or_IntegerInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, IntegerInstance, ExpressionLoader }); + public static Loader union_of_NullInstance_or_StringInstance_or_ExpressionLoader_or_array_of_StringInstance = new UnionLoader(new Loader[] { NullInstance, StringInstance, ExpressionLoader, array_of_StringInstance }); + public static Loader> optional_ExpressionLoader = new OptionalLoader(ExpressionLoader); + public static Loader> optional_CommandLineBinding = new OptionalLoader(CommandLineBinding); + public static Loader union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, CommandInputRecordSchema, CommandInputEnumSchema, CommandInputArraySchema, StringInstance }); + public static Loader> array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance = new ArrayLoader(union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance); + public static Loader 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 = new UnionLoader(new Loader[] { CWLType, CommandInputRecordSchema, CommandInputEnumSchema, CommandInputArraySchema, StringInstance, array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance }); + public static Loader 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 = new TypeDslLoader(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); + public static Loader> array_of_CommandInputRecordField = new ArrayLoader(CommandInputRecordField); + public static Loader>> optional_array_of_CommandInputRecordField = new OptionalLoader(array_of_CommandInputRecordField); + public static Loader>> idmap_fields_optional_array_of_CommandInputRecordField = new IdMapLoader(optional_array_of_CommandInputRecordField, "name", "type"); + public static Loader 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_None = new UriLoader(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, null); + public static Loader union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, CommandOutputRecordSchema, CommandOutputEnumSchema, CommandOutputArraySchema, StringInstance }); + public static Loader> array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance = new ArrayLoader(union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance); + public static Loader union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, CommandOutputRecordSchema, CommandOutputEnumSchema, CommandOutputArraySchema, StringInstance, array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance }); + public static Loader typedsl_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance, 2); + public static Loader> optional_CommandOutputBinding = new OptionalLoader(CommandOutputBinding); + public static Loader> array_of_CommandOutputRecordField = new ArrayLoader(CommandOutputRecordField); + public static Loader>> optional_array_of_CommandOutputRecordField = new OptionalLoader(array_of_CommandOutputRecordField); + public static Loader>> idmap_fields_optional_array_of_CommandOutputRecordField = new IdMapLoader(optional_array_of_CommandOutputRecordField, "name", "type"); + public static Loader uri_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_False_True_2_None = new UriLoader(union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance, false, true, 2, null); + public static Loader union_of_CWLType_or_stdin_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, stdin, CommandInputRecordSchema, CommandInputEnumSchema, CommandInputArraySchema, StringInstance, array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance }); + public static Loader typedsl_union_of_CWLType_or_stdin_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_stdin_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance, 2); + public static Loader union_of_CWLType_or_stdout_or_stderr_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, stdout, stderr, CommandOutputRecordSchema, CommandOutputEnumSchema, CommandOutputArraySchema, StringInstance, array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance }); + public static Loader typedsl_union_of_CWLType_or_stdout_or_stderr_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_stdout_or_stderr_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance, 2); + public static Loader CommandLineTool_class = new EnumLoader(CommandLineTool_class.class); + public static Loader uri_CommandLineTool_class_False_True_None_None = new UriLoader(CommandLineTool_class, false, true, null, null); + public static Loader> array_of_CommandInputParameter = new ArrayLoader(CommandInputParameter); + public static Loader> idmap_inputs_array_of_CommandInputParameter = new IdMapLoader(array_of_CommandInputParameter, "id", "type"); + public static Loader> array_of_CommandOutputParameter = new ArrayLoader(CommandOutputParameter); + public static Loader> idmap_outputs_array_of_CommandOutputParameter = new IdMapLoader(array_of_CommandOutputParameter, "id", "type"); + public static Loader union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding = new UnionLoader(new Loader[] { StringInstance, ExpressionLoader, CommandLineBinding }); + public static Loader> array_of_union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding = new ArrayLoader(union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding); + public static Loader>> optional_array_of_union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding = new OptionalLoader(array_of_union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding); + public static Loader> array_of_IntegerInstance = new ArrayLoader(IntegerInstance); + public static Loader>> optional_array_of_IntegerInstance = new OptionalLoader(array_of_IntegerInstance); + public static Loader DockerRequirement_class = new EnumLoader(DockerRequirement_class.class); + public static Loader uri_DockerRequirement_class_False_True_None_None = new UriLoader(DockerRequirement_class, false, true, null, null); + public static Loader SoftwareRequirement_class = new EnumLoader(SoftwareRequirement_class.class); + public static Loader uri_SoftwareRequirement_class_False_True_None_None = new UriLoader(SoftwareRequirement_class, false, true, null, null); + public static Loader> array_of_SoftwarePackage = new ArrayLoader(SoftwarePackage); + public static Loader> idmap_packages_array_of_SoftwarePackage = new IdMapLoader(array_of_SoftwarePackage, "package", "specs"); + public static Loader>> uri_optional_array_of_StringInstance_False_False_None_True = new UriLoader(optional_array_of_StringInstance, false, false, null, true); + public static Loader InitialWorkDirRequirement_class = new EnumLoader(InitialWorkDirRequirement_class.class); + public static Loader uri_InitialWorkDirRequirement_class_False_True_None_None = new UriLoader(InitialWorkDirRequirement_class, false, true, null, null); + public static Loader union_of_NullInstance_or_Dirent_or_ExpressionLoader_or_File_or_Directory_or_array_of_union_of_File_or_Directory = new UnionLoader(new Loader[] { NullInstance, Dirent, ExpressionLoader, File, Directory, array_of_union_of_File_or_Directory }); + public static Loader> array_of_union_of_NullInstance_or_Dirent_or_ExpressionLoader_or_File_or_Directory_or_array_of_union_of_File_or_Directory = new ArrayLoader(union_of_NullInstance_or_Dirent_or_ExpressionLoader_or_File_or_Directory_or_array_of_union_of_File_or_Directory); + public static Loader union_of_ExpressionLoader_or_array_of_union_of_NullInstance_or_Dirent_or_ExpressionLoader_or_File_or_Directory_or_array_of_union_of_File_or_Directory = new UnionLoader(new Loader[] { ExpressionLoader, array_of_union_of_NullInstance_or_Dirent_or_ExpressionLoader_or_File_or_Directory_or_array_of_union_of_File_or_Directory }); + public static Loader EnvVarRequirement_class = new EnumLoader(EnvVarRequirement_class.class); + public static Loader uri_EnvVarRequirement_class_False_True_None_None = new UriLoader(EnvVarRequirement_class, false, true, null, null); + public static Loader> array_of_EnvironmentDef = new ArrayLoader(EnvironmentDef); + public static Loader> idmap_envDef_array_of_EnvironmentDef = new IdMapLoader(array_of_EnvironmentDef, "envName", "envValue"); + public static Loader ShellCommandRequirement_class = new EnumLoader(ShellCommandRequirement_class.class); + public static Loader uri_ShellCommandRequirement_class_False_True_None_None = new UriLoader(ShellCommandRequirement_class, false, true, null, null); + public static Loader ResourceRequirement_class = new EnumLoader(ResourceRequirement_class.class); + public static Loader uri_ResourceRequirement_class_False_True_None_None = new UriLoader(ResourceRequirement_class, false, true, null, null); + public static Loader union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_DoubleInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, IntegerInstance, LongInstance, DoubleInstance, ExpressionLoader }); + public static Loader WorkReuse_class = new EnumLoader(WorkReuse_class.class); + public static Loader uri_WorkReuse_class_False_True_None_None = new UriLoader(WorkReuse_class, false, true, null, null); + public static Loader union_of_BooleanInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { BooleanInstance, ExpressionLoader }); + public static Loader NetworkAccess_class = new EnumLoader(NetworkAccess_class.class); + public static Loader uri_NetworkAccess_class_False_True_None_None = new UriLoader(NetworkAccess_class, false, true, null, null); + public static Loader InplaceUpdateRequirement_class = new EnumLoader(InplaceUpdateRequirement_class.class); + public static Loader uri_InplaceUpdateRequirement_class_False_True_None_None = new UriLoader(InplaceUpdateRequirement_class, false, true, null, null); + public static Loader ToolTimeLimit_class = new EnumLoader(ToolTimeLimit_class.class); + public static Loader uri_ToolTimeLimit_class_False_True_None_None = new UriLoader(ToolTimeLimit_class, false, true, null, null); + public static Loader union_of_IntegerInstance_or_LongInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { IntegerInstance, LongInstance, ExpressionLoader }); + public static Loader> optional_InputBinding = new OptionalLoader(InputBinding); + public static Loader ExpressionTool_class = new EnumLoader(ExpressionTool_class.class); + public static Loader uri_ExpressionTool_class_False_True_None_None = new UriLoader(ExpressionTool_class, false, true, null, null); + public static Loader> array_of_WorkflowInputParameter = new ArrayLoader(WorkflowInputParameter); + public static Loader> idmap_inputs_array_of_WorkflowInputParameter = new IdMapLoader(array_of_WorkflowInputParameter, "id", "type"); + public static Loader> array_of_ExpressionToolOutputParameter = new ArrayLoader(ExpressionToolOutputParameter); + public static Loader> idmap_outputs_array_of_ExpressionToolOutputParameter = new IdMapLoader(array_of_ExpressionToolOutputParameter, "id", "type"); + public static Loader uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_1_None = new UriLoader(union_of_NullInstance_or_StringInstance_or_array_of_StringInstance, false, false, 1, null); + public static Loader> optional_LinkMergeMethod = new OptionalLoader(LinkMergeMethod); + public static Loader> optional_PickValueMethod = new OptionalLoader(PickValueMethod); + public static Loader uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_2_None = new UriLoader(union_of_NullInstance_or_StringInstance_or_array_of_StringInstance, false, false, 2, null); + public static Loader> array_of_WorkflowStepInput = new ArrayLoader(WorkflowStepInput); + public static Loader> idmap_in_array_of_WorkflowStepInput = new IdMapLoader(array_of_WorkflowStepInput, "id", "source"); + public static Loader union_of_StringInstance_or_WorkflowStepOutput = new UnionLoader(new Loader[] { StringInstance, WorkflowStepOutput }); + public static Loader> array_of_union_of_StringInstance_or_WorkflowStepOutput = new ArrayLoader(union_of_StringInstance_or_WorkflowStepOutput); + public static Loader> uri_array_of_union_of_StringInstance_or_WorkflowStepOutput_True_False_None_None = new UriLoader(array_of_union_of_StringInstance_or_WorkflowStepOutput, true, false, null, null); + public static Loader> array_of_AnyInstance = new ArrayLoader(AnyInstance); + public static Loader>> optional_array_of_AnyInstance = new OptionalLoader(array_of_AnyInstance); + public static Loader>> idmap_hints_optional_array_of_AnyInstance = new IdMapLoader(optional_array_of_AnyInstance, "class", "None"); + public static Loader union_of_StringInstance_or_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation = new UnionLoader(new Loader[] { StringInstance, CommandLineTool, ExpressionTool, Workflow, Operation }); + public static Loader uri_union_of_StringInstance_or_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation_False_False_None_None = new UriLoader(union_of_StringInstance_or_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation, false, false, null, null); + public static Loader uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_0_None = new UriLoader(union_of_NullInstance_or_StringInstance_or_array_of_StringInstance, false, false, 0, null); + public static Loader> optional_ScatterMethod = new OptionalLoader(ScatterMethod); + public static Loader> uri_optional_ScatterMethod_False_True_None_None = new UriLoader(optional_ScatterMethod, false, true, null, null); + public static Loader Workflow_class = new EnumLoader(Workflow_class.class); + public static Loader uri_Workflow_class_False_True_None_None = new UriLoader(Workflow_class, false, true, null, null); + public static Loader> array_of_WorkflowOutputParameter = new ArrayLoader(WorkflowOutputParameter); + public static Loader> idmap_outputs_array_of_WorkflowOutputParameter = new IdMapLoader(array_of_WorkflowOutputParameter, "id", "type"); + public static Loader> array_of_WorkflowStep = new ArrayLoader(WorkflowStep); + public static Loader> idmap_steps_array_of_WorkflowStep = new IdMapLoader(array_of_WorkflowStep, "id", "None"); + public static Loader SubworkflowFeatureRequirement_class = new EnumLoader(SubworkflowFeatureRequirement_class.class); + public static Loader uri_SubworkflowFeatureRequirement_class_False_True_None_None = new UriLoader(SubworkflowFeatureRequirement_class, false, true, null, null); + public static Loader ScatterFeatureRequirement_class = new EnumLoader(ScatterFeatureRequirement_class.class); + public static Loader uri_ScatterFeatureRequirement_class_False_True_None_None = new UriLoader(ScatterFeatureRequirement_class, false, true, null, null); + public static Loader MultipleInputFeatureRequirement_class = new EnumLoader(MultipleInputFeatureRequirement_class.class); + public static Loader uri_MultipleInputFeatureRequirement_class_False_True_None_None = new UriLoader(MultipleInputFeatureRequirement_class, false, true, null, null); + public static Loader StepInputExpressionRequirement_class = new EnumLoader(StepInputExpressionRequirement_class.class); + public static Loader uri_StepInputExpressionRequirement_class_False_True_None_None = new UriLoader(StepInputExpressionRequirement_class, false, true, null, null); + public static Loader Operation_class = new EnumLoader(Operation_class.class); + public static Loader uri_Operation_class_False_True_None_None = new UriLoader(Operation_class, false, true, null, null); + public static Loader> array_of_OperationInputParameter = new ArrayLoader(OperationInputParameter); + public static Loader> idmap_inputs_array_of_OperationInputParameter = new IdMapLoader(array_of_OperationInputParameter, "id", "type"); + public static Loader> array_of_OperationOutputParameter = new ArrayLoader(OperationOutputParameter); + public static Loader> idmap_outputs_array_of_OperationOutputParameter = new IdMapLoader(array_of_OperationOutputParameter, "id", "type"); + public static Loader union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation = new UnionLoader(new Loader[] { CommandLineTool, ExpressionTool, Workflow, Operation }); + public static Loader> array_of_union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation = new ArrayLoader(union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation); + public static Loader union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation_or_array_of_union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation = new UnionLoader(new Loader[] { CommandLineTool, ExpressionTool, Workflow, Operation, array_of_union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation }); + + static { + ((UnionLoader) CWLObjectType).addLoaders(new Loader[] { BooleanInstance, IntegerInstance, LongInstance, DoubleInstance, DoubleInstance, StringInstance, File, Directory, array_of_optional_CWLObjectType, map_of_optional_CWLObjectType }); + } + +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/LoadingOptions.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/LoadingOptions.java new file mode 100644 index 00000000..c4ae09fb --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/LoadingOptions.java @@ -0,0 +1,129 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.net.URI; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +public class LoadingOptions { + Fetcher fetcher; + String fileUri; + Map namespaces; + List schemas; + Boolean noLinkCheck; + String container; + Map idx; + Map vocab; + Map rvocab; + + LoadingOptions( + final Fetcher fetcher, + final String fileUri, + final Map namespaces, + final List schemas, + final Boolean noLinkCheck, + final String container, + final Map idx) { + this.fetcher = fetcher; + this.fileUri = fileUri; + this.namespaces = namespaces; + this.schemas = schemas; + this.noLinkCheck = noLinkCheck; + this.container = container; + this.idx = idx; + + if (namespaces != null) { + this.vocab = (Map) ConstantMaps.vocab.clone(); + this.rvocab = (Map) ConstantMaps.rvocab.clone(); + for (Map.Entry namespaceEntry : namespaces.entrySet()) { + this.vocab.put(namespaceEntry.getKey(), namespaceEntry.getValue()); + this.rvocab.put(namespaceEntry.getValue(), namespaceEntry.getKey()); + } + } else { + this.vocab = (Map) ConstantMaps.vocab; + this.rvocab = (Map) ConstantMaps.rvocab; + } + } + + public String expandUrl( + String url_, + final String baseUrl, + final boolean scopedId, + final boolean vocabTerm, + final Integer scopedRef) { + // NOT CONVERTING this - doesn't match type declaration + // if not isinstance(url, str): + // return url + String url = url_; + if (url.equals("@id") || url.equals("@type")) { + return url; + } + + if (vocabTerm && this.vocab.containsKey(url)) { + return url; + } + + if (!this.vocab.isEmpty() && url.contains(":")) { + String prefix = url.split(":")[0]; + if (this.vocab.containsKey(prefix)) { + url = this.vocab.get(prefix) + url.substring(prefix.length() + 1); + } + } + + Uris.UriSplit split = Uris.split(url); + final String scheme = split.scheme; + final boolean hasFragment = stringHasContent(split.fragment); + if (scheme != null + && ((scheme.length() > 0 + && (scheme.equals("http") || scheme.equals("https") || scheme.equals("file"))) + || url.startsWith("$(") + || url.startsWith("${"))) { + // pass + } else if (scopedId && !hasFragment) { + final Uris.UriSplit splitbase = Uris.split(baseUrl); + final String frg; + if (stringHasContent(splitbase.fragment)) { + frg = splitbase.fragment + "/" + split.path; + } else { + frg = split.path; + } + String pt; + if (!splitbase.path.equals("")) { + pt = splitbase.path; + } else { + pt = "/"; + } + url = Uris.unsplit(splitbase.scheme, splitbase.netloc, pt, splitbase.query, frg); + } else if (scopedRef != null && !hasFragment) { + final Uris.UriSplit splitbase = Uris.split(baseUrl); + final ArrayList sp = new ArrayList(Arrays.asList(splitbase.fragment.split("/"))); + int n = scopedRef; + while (n > 0 && sp.size() > 0) { + sp.remove(sp.size()-1); + n -= 1; + } + sp.add(url); + final String fragment = String.join("/", sp); + url = Uris.unsplit(splitbase.scheme, splitbase.netloc, splitbase.path, splitbase.query, fragment); + } else { + url = this.fetcher.urlJoin(baseUrl, url); + } + + if (vocabTerm) { + split = Uris.split(url); + if (stringHasContent(split.scheme)) { + if (this.rvocab.containsKey(url)) { + return this.rvocab.get(url); + } + } else { + throw new ValidationException("Term '{}' not in vocabulary".format(url)); + } + } + return url; + } + + static boolean stringHasContent(final String s) { + return s != null && s.length() > 0; + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/LoadingOptionsBuilder.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/LoadingOptionsBuilder.java new file mode 100644 index 00000000..9fbba692 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/LoadingOptionsBuilder.java @@ -0,0 +1,82 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Optional; + +public class LoadingOptionsBuilder { + private Optional fetcher = Optional.empty(); + private Optional fileUri = Optional.empty(); + private Optional> namespaces = Optional.empty(); + private Optional> schemas = Optional.empty(); + private Optional copyFrom = Optional.empty(); + private Optional noLinkCheck = Optional.empty(); + private Optional container = Optional.empty(); + + public LoadingOptionsBuilder() {} + + public LoadingOptionsBuilder setFetcher(final Fetcher fetcher) { + this.fetcher = Optional.of(fetcher); + return this; + } + + public LoadingOptionsBuilder copiedFrom(final LoadingOptions copyFrom) { + this.copyFrom = Optional.of(copyFrom); + return this; + } + + public LoadingOptionsBuilder setFileUri(final String fileUri) { + this.fileUri = Optional.of(fileUri); + return this; + } + + public LoadingOptionsBuilder setNamespaces(final Map namespaces) { + this.namespaces = Optional.of(namespaces); + return this; + } + + public LoadingOptionsBuilder setNoLinkCheck(final Boolean noLinkCheck) { + this.noLinkCheck = Optional.of(noLinkCheck); + return this; + } + + public LoadingOptionsBuilder setContainer(final String container) { + this.container = Optional.of(container); + return this; + } + + public LoadingOptions build() { + Fetcher fetcher = this.fetcher.orElse(null); + String fileUri = this.fileUri.orElse(null); + List schemas = this.schemas.orElse(null); + Map namespaces = this.namespaces.orElse(null); + Boolean noLinkCheck = this.noLinkCheck.orElse(null); + String container = this.container.orElse(null); + Map idx = new HashMap(); + if (this.copyFrom.isPresent()) { + final LoadingOptions copyFrom = this.copyFrom.get(); + idx = copyFrom.idx; + if (fetcher == null) { + fetcher = copyFrom.fetcher; + } + if (fileUri == null) { + fileUri = copyFrom.fileUri; + } + if (namespaces == null) { + namespaces = copyFrom.namespaces; + schemas = copyFrom.schemas; // Bug in Python codegen? + } + if (noLinkCheck == null) { + noLinkCheck = copyFrom.noLinkCheck; + } + if (container == null) { + container = copyFrom.container; + } + } + if (fetcher == null) { + fetcher = new DefaultFetcher(); + } + return new LoadingOptions(fetcher, fileUri, namespaces, schemas, noLinkCheck, container, idx); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/MapLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/MapLoader.java new file mode 100644 index 00000000..26099592 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/MapLoader.java @@ -0,0 +1,51 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class MapLoader implements Loader> { + private final Loader valueLoader; + private final String container; + private final Boolean noLinkCheck; + + public MapLoader(Loader valueLoader, final String container, final Boolean noLinkCheck) { + this.valueLoader = valueLoader; + this.container = container; + this.noLinkCheck = noLinkCheck; + } + + public Map load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + final Map docMap = (Map) Loader.validateOfJavaType(Map.class, doc); + LoadingOptions innerLoadingOptions = loadingOptions; + if (this.container != null || this.noLinkCheck != null) { + LoadingOptionsBuilder builder = new LoadingOptionsBuilder().copiedFrom(loadingOptions); + if (this.container != null) { + builder.setContainer(this.container); + } + if (this.noLinkCheck != null) { + builder.setNoLinkCheck(this.noLinkCheck); + } + innerLoadingOptions = builder.build(); + } + final Map r = new HashMap(); + final List errors = new ArrayList(); + for (final Map.Entry entry : docMap.entrySet()) { + try { + final Object loadedField = this.valueLoader.loadField(entry.getValue(), baseUri, innerLoadingOptions); + r.put(entry.getKey(), (T) loadedField); + } catch (final ValidationException e) { + errors.add(e); + } + } + if (!errors.isEmpty()) { + throw new ValidationException("", errors); + } + return r; + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/NullLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/NullLoader.java new file mode 100644 index 00000000..c9679b8b --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/NullLoader.java @@ -0,0 +1,15 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +public class NullLoader implements Loader { + + public Object load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + if (doc != null) { + throw new ValidationException("Expected null"); + } + return doc; + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/OneOrListOf.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/OneOrListOf.java new file mode 100644 index 00000000..d998ecf8 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/OneOrListOf.java @@ -0,0 +1,48 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.util.List; +import java.util.Optional; + +public class OneOrListOf { + private Optional object; + private Optional> objects; + + private OneOrListOf(final T object, final List objects) { + this.object = Optional.ofNullable(object); + this.objects = Optional.ofNullable(objects); + } + + public static OneOrListOf oneOf(T object) { + return new OneOrListOf(object, null); + } + + public static OneOrListOf listOf(List objects) { + assert objects != null; + return new OneOrListOf(null, objects); + } + + public boolean isOne() { + return this.getOneOptional().isPresent(); + } + + public boolean isList() { + return this.getListOptional().isPresent(); + } + + public Optional getOneOptional() { + return this.object; + } + + public Optional> getListOptional() { + return this.objects; + } + + public T getOne() { + return this.getOneOptional().get(); + } + + public List getList() { + return this.getListOptional().get(); + } + +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/OneOrListOfLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/OneOrListOfLoader.java new file mode 100644 index 00000000..054244fc --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/OneOrListOfLoader.java @@ -0,0 +1,35 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.util.ArrayList; +import java.util.List; +import java.util.Optional; + + +public class OneOrListOfLoader implements Loader> { + private final Loader oneLoader; + private final Loader> listLoader; + + public OneOrListOfLoader(Loader oneLoader, Loader> listLoader) { + this.oneLoader = oneLoader; + this.listLoader = listLoader; + } + + public OneOrListOf load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + final List errors = new ArrayList(); + try { + return OneOrListOf.oneOf(this.oneLoader.load(doc, baseUri, loadingOptions, docRoot)); + } catch (ValidationException e) { + errors.add(e); + } + try { + return OneOrListOf.listOf(this.listLoader.load(doc, baseUri, loadingOptions, docRoot)); + } catch (ValidationException e) { + errors.add(e); + } + throw new ValidationException("Failed to one or list of of type", errors); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/OptionalLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/OptionalLoader.java new file mode 100644 index 00000000..824b7eac --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/OptionalLoader.java @@ -0,0 +1,23 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.util.Optional; + + +public class OptionalLoader implements Loader> { + private final Loader itemLoader; + + public OptionalLoader(Loader itemLoader) { + this.itemLoader = itemLoader; + } + + public Optional load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + if(doc == null) { + return Optional.empty(); + } + return Optional.of(itemLoader.load(doc, baseUri, loadingOptions, docRoot)); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/PrimitiveLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/PrimitiveLoader.java new file mode 100644 index 00000000..f1a47266 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/PrimitiveLoader.java @@ -0,0 +1,17 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +public class PrimitiveLoader implements Loader { + private Class clazz; + + public PrimitiveLoader(Class clazz) { + this.clazz = clazz; + } + + public T load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + return Loader.validateOfJavaType(this.clazz, doc); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/RecordLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/RecordLoader.java new file mode 100644 index 00000000..f364d471 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/RecordLoader.java @@ -0,0 +1,51 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.lang.reflect.Constructor; +import java.lang.reflect.InvocationTargetException; + +public class RecordLoader implements Loader { + private final Class saveableClass; + private final String container; + private final Boolean noLinkCheck; + + public RecordLoader(final Class saveableClass, final String container, final Boolean noLinkCheck) { + this.saveableClass = saveableClass; + this.container = container; + this.noLinkCheck = noLinkCheck; + } + + public T load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + Loader.validateOfJavaType(java.util.Map.class, doc); + try { + final Constructor constructor = + this.saveableClass.getConstructor( + new Class[] {Object.class, String.class, LoadingOptions.class, String.class}); + LoadingOptions innerLoadingOptions = loadingOptions; + if (this.container != null || this.noLinkCheck != null) { + LoadingOptionsBuilder builder = new LoadingOptionsBuilder().copiedFrom(loadingOptions); + if (this.container != null) { + builder.setContainer(this.container); + } + if (this.noLinkCheck != null) { + builder.setNoLinkCheck(this.noLinkCheck); + } + innerLoadingOptions = builder.build(); + } + final T ret = constructor.newInstance(doc, baseUri, innerLoadingOptions, docRoot); + return ret; + } catch (InvocationTargetException e) { + final Throwable cause = e.getCause(); + if (cause instanceof RuntimeException) { + throw (RuntimeException) cause; + } + throw new RuntimeException(e.getCause()); + } catch (ReflectiveOperationException e) { + throw new RuntimeException(e); + } + } + +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/RootLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/RootLoader.java new file mode 100644 index 00000000..df3a15ea --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/RootLoader.java @@ -0,0 +1,105 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.io.File; +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.Map; + +public class RootLoader { + public static Object loadDocument( + final Map doc, final String baseUri_, final LoadingOptions loadingOptions_) { + final String baseUri = ensureBaseUri(baseUri_); + LoadingOptions loadingOptions = loadingOptions_; + if (loadingOptions == null) { + loadingOptions = new LoadingOptionsBuilder().setFileUri(baseUri).build(); + } + return LoaderInstances.union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation_or_array_of_union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation.documentLoad(doc, baseUri, loadingOptions); + } + + public static Object loadDocument( + final Map doc, final String baseUri) { + return loadDocument(doc, baseUri, null); + } + + public static Object loadDocument(final Map doc) { + return loadDocument(doc, ensureBaseUri(null)); + } + + public static Object loadDocument(final Path path) { + return loadDocument(readPath(path), path.toUri().toString()); + } + + public static Object loadDocument(final Path path, String baseUri) { + return loadDocument(readPath(path), baseUri); + } + + public static Object loadDocument( + final Path path, LoadingOptions loadingOptions) { + return loadDocument(readPath(path), loadingOptions); + } + + public static Object loadDocument( +final Path path, String baseUri, LoadingOptions loadingOptions) { + return loadDocument(readPath(path), baseUri, loadingOptions); + } + + public static Object loadDocument(final File file) { + return loadDocument(file.toPath()); + } + + public static Object loadDocument(final File file, String baseUri) { + return loadDocument(file.toPath(), baseUri); + } + + public static Object loadDocument(final File file, LoadingOptions loadingOptions) { + return loadDocument(file.toPath(), loadingOptions); + } + + public static Object loadDocument( + final File file, String baseUri, LoadingOptions loadingOptions) { + return loadDocument(file.toPath(), baseUri, loadingOptions); + } + + public static Object loadDocument(final String doc) { + return loadDocument(doc, ensureBaseUri(null)); + } + + public static Object loadDocument(final String doc, final LoadingOptions loadingOptions) { + return loadDocument(doc, ensureBaseUri(null), loadingOptions); + } + + public static Object loadDocument(final String doc, final String uri) { + return loadDocument(doc, uri, null); + } + + public static Object loadDocument( + final String doc, final String uri_, final LoadingOptions loadingOptions_) { + final String uri = ensureBaseUri(uri_); + LoadingOptions loadingOptions = loadingOptions_; + if (loadingOptions == null) { + loadingOptions = new LoadingOptionsBuilder().setFileUri(uri).build(); + } + final Map result = YamlUtils.mapFromString(doc); + loadingOptions.idx.put(uri, result); + return loadDocument(result, uri, loadingOptions); + } + + static String readPath(final Path path) { + try { + return new String(Files.readAllBytes(path), "UTF8"); + } catch (final IOException e) { + throw new RuntimeException(e); + } + } + + static String ensureBaseUri(final String baseUri_) { + String baseUri = baseUri_; + if(baseUri == null) { + baseUri = Uris.fileUri(Paths.get(".").toAbsolutePath().normalize().toString()) + "/"; + } + return baseUri; + } + +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/Saveable.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/Saveable.java new file mode 100644 index 00000000..afb775e4 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/Saveable.java @@ -0,0 +1,6 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +public interface Saveable { + // TODO: implement writable interface + // public abstract void save(boolean top, String baseUrl, boolean relativeUris); +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/SaveableImpl.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/SaveableImpl.java new file mode 100644 index 00000000..0b229c9e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/SaveableImpl.java @@ -0,0 +1,5 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +public class SaveableImpl implements Saveable { + public SaveableImpl(Object doc, String baseUri, LoadingOptions loadingOptions, String docRoot) {} +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/SecondaryFilesDslLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/SecondaryFilesDslLoader.java new file mode 100644 index 00000000..8a560d4e --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/SecondaryFilesDslLoader.java @@ -0,0 +1,86 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class SecondaryFilesDslLoader implements Loader { + private final Loader innerLoader; + + public SecondaryFilesDslLoader(final Loader innerLoader) { + this.innerLoader = innerLoader; + } + + + public T load( + final Object doc_, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + Object doc = doc_; + List> r = new ArrayList>(); + if (doc instanceof List) { + final List docList = (List) doc; + for (final Object d : docList) { + Map entry = new HashMap(); + if (d instanceof String) { + String dString = (String) d; + if (dString.endsWith("?")) { + entry.put("pattern", dString.substring(0, dString.length()-1)); + entry.put("required", false); + } else { + entry.put("pattern", dString); + } + r.add(entry); + } else if (d instanceof Map) { + @SuppressWarnings("unchecked") + Map dMap = new HashMap((Map) d); + if (dMap.containsKey("pattern")) { + entry.put("pattern", dMap.remove("pattern")); + } else { + throw new ValidationException("Missing 'pattern' in secondaryFiles specification entry."); + } + if (dMap.containsKey("required")) { + entry.put("required", dMap.remove("required")); + } + if (dMap.size() > 0) { + throw new ValidationException("Unallowed values in secondaryFiles specification entry."); + } + r.add(entry); + } else { + throw new ValidationException("Expected a string or sequence of (strings or mappings)."); + } + } + } else if (doc instanceof Map) { + Map entry = new HashMap(); + @SuppressWarnings("unchecked") + Map dMap = new HashMap((Map) doc); + if (dMap.containsKey("pattern")) { + entry.put("pattern", dMap.remove("pattern")); + } else { + throw new ValidationException("Missing 'pattern' in secondaryFiles specification entry."); + } + if (dMap.containsKey("required")) { + entry.put("required", dMap.remove("required")); + } + if (dMap.size() > 0) { + throw new ValidationException("Unallowed values in secondaryFiles specification entry."); + } + r.add(entry); + } else if (doc instanceof String) { + String dString = (String) doc; + Map entry = new HashMap(); + if (dString.endsWith("?")) { + entry.put("pattern", dString.substring(0, dString.length()-1)); + entry.put("required", false); + } else { + entry.put("pattern", dString); + } + r.add(entry); + } else { + throw new ValidationException("Expected a string or sequence of (strings or mappings)."); + } + return this.innerLoader.load(r, baseUri, loadingOptions, docRoot); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/TypeDslLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/TypeDslLoader.java new file mode 100644 index 00000000..0f32b48b --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/TypeDslLoader.java @@ -0,0 +1,81 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +public class TypeDslLoader implements Loader { + private final Loader innerLoader; + private final Integer refScope; + private static final Pattern TYPE_DSL_REGEX = Pattern.compile("^([^\\[?]+)(\\[\\])?(\\?)?$"); + + public TypeDslLoader(final Loader innerLoader, final Integer refScope) { + this.innerLoader = innerLoader; + this.refScope = refScope; + } + + private Object resolve( + final String doc_, final String baseUri, final LoadingOptions loadingOptions) { + final Matcher m = TYPE_DSL_REGEX.matcher(doc_); + if (m.matches()) { + final String first = + loadingOptions.expandUrl(m.group(1), baseUri, false, true, this.refScope); + Object second = null; + Object third = null; + if (m.group(2) != null && m.group(2).length() > 0) { + HashMap resolvedMap = new HashMap(); + resolvedMap.put("type", "array"); + resolvedMap.put("items", first); + second = resolvedMap; + } + if (m.group(3) != null && m.group(3).length() > 0) { + third = Arrays.asList("null", second != null ? second : first); + } + if (third != null) { + return third; + } else { + return second != null ? second : first; + } + } else { + return doc_; + } + } + + public T load( + final Object doc_, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + Object doc = doc_; + if (doc instanceof List) { + final List docList = (List) doc; + final List r = new ArrayList(); + for (final Object d : docList) { + if (d instanceof String) { + Object resolved = this.resolve((String) d, baseUri, loadingOptions); + if (resolved instanceof List) { + List resolvedList = (List) resolved; + for (Object i : resolvedList) { + if (!r.contains(i)) { + r.add(i); + } + } + } else { + if (!r.contains(resolved)) { + r.add(resolved); + } + } + } else { + r.add(d); + } + } + doc = docList; + } else if (doc instanceof String) { + doc = this.resolve((String) doc, baseUri, loadingOptions); + } + return this.innerLoader.load(doc, baseUri, loadingOptions); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/UnionLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/UnionLoader.java new file mode 100644 index 00000000..ec57efc9 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/UnionLoader.java @@ -0,0 +1,41 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +public class UnionLoader implements Loader { + private final ArrayList alternates; + + public UnionLoader(List alternates) { + this.alternates = new ArrayList(alternates); + } + + public UnionLoader(Loader[] alternates) { + this(Arrays.asList(alternates)); + } + + public void addLoaders(List loaders) { + this.alternates.addAll(loaders); + } + + public void addLoaders(Loader[] loaders) { + this.addLoaders(Arrays.asList(loaders)); + } + + public Object load( + final Object doc, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + final List errors = new ArrayList(); + for (final Loader loader : this.alternates) { + try { + return loader.load(doc, baseUri, loadingOptions, docRoot); + } catch (ValidationException e) { + errors.add(e); + } + } + throw new ValidationException("Failed to match union type", errors); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/UriLoader.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/UriLoader.java new file mode 100644 index 00000000..c861396a --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/UriLoader.java @@ -0,0 +1,59 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.util.ArrayList; +import java.util.List; + +public class UriLoader implements Loader { + private final Loader innerLoader; + private final boolean scopedId; + private final boolean vocabTerm; + private final Integer scopedRef; + private final Boolean noLinkCheck; + + public UriLoader( + final Loader innerLoader, + final boolean scopedId, + final boolean vocabTerm, + final Integer scopedRef, + final Boolean noLinkCheck) { + this.innerLoader = innerLoader; + this.scopedId = scopedId; + this.vocabTerm = vocabTerm; + this.scopedRef = scopedRef; + this.noLinkCheck = noLinkCheck; + } + + private Object expandUrl( + final Object object, final String baseUri, final LoadingOptions loadingOptions) { + if (object instanceof String) { + return loadingOptions.expandUrl( + (String) object, baseUri, this.scopedId, this.vocabTerm, this.scopedRef); + } else { + return object; + } + } + + public T load( + final Object doc_, + final String baseUri, + final LoadingOptions loadingOptions, + final String docRoot) { + LoadingOptions innerLoadingOptions = loadingOptions; + if (this.noLinkCheck != null) { + innerLoadingOptions = new LoadingOptionsBuilder().copiedFrom(loadingOptions).setNoLinkCheck(this.noLinkCheck).build(); + } + Object doc = doc_; + if (doc instanceof List) { + List docList = (List) doc; + List docWithExpansion = new ArrayList(); + for (final Object el : docList) { + docWithExpansion.add(this.expandUrl(el, baseUri, innerLoadingOptions)); + } + doc = docWithExpansion; + } + if (doc instanceof String) { + doc = this.expandUrl(doc, baseUri, innerLoadingOptions); + } + return this.innerLoader.load(doc, baseUri, innerLoadingOptions); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/Uris.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/Uris.java new file mode 100644 index 00000000..2aa12481 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/Uris.java @@ -0,0 +1,129 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.io.UnsupportedEncodingException; +import java.net.URI; +import java.net.URISyntaxException; +import java.nio.charset.StandardCharsets; + +public class Uris { + + // Emulate Python's urlsplit. + public static class UriSplit { + String scheme; + String netloc; + String path; + String query; + String fragment; + + public UriSplit(String scheme, String netloc, String path, String query, String fragment) { + this.scheme = scheme; + this.netloc = netloc; + this.path = path; + this.query = query; + this.fragment = fragment; + } + + public String toString() { + return String.format("UriSplit[%s,%s,%s,%s,%s]", this.scheme, this.netloc, this.path, this.query, + this.fragment); + } + + } + + public static String fileUri(final String path) { + return fileUri(path, false); + } + + public static String fileUri(final String path, final boolean splitFrag) { + if (path.equals("file://")) { + return path; + } + String frag; + String urlPath; + if (splitFrag) { + final String[] pathsp = path.split("#", 2); + // is quoting this? + urlPath = Uris.quote(pathsp[0]); + if (pathsp.length == 2) { + frag = "#" + Uris.quote(pathsp[1]); + } else { + frag = ""; + urlPath = Uris.quote(path); + } + } else { + urlPath = Uris.quote(path); + frag = ""; + } + if (urlPath.startsWith("//")) { + return "file:" + urlPath + frag; + } else { + return "file://" + urlPath + frag; + } + } + + public static UriSplit split(final String uriString) { + try { + final URI uri = new URI(uriString); + return new Uris.UriSplit(uri.getScheme(), uri.getAuthority(), uri.getPath(), uri.getQuery(), + uri.getFragment()); + } catch (URISyntaxException e) { + return new Uris.UriSplit(null, null, uriString, null, null); + } + } + + public static String unsplit(final String scheme, final String netloc, final String path, final String query, + final String fragment) { + try { + return new URI(scheme, netloc, path, query, fragment).toString(); + } catch (URISyntaxException e) { + if (scheme == null && path.startsWith("_:")) { + String uri = path; + if (fragment != null && fragment.length() > 0) { + uri += "#" + fragment; + } + return fragment; + } + throw new RuntimeException(e); + } + } + + public static URI toUri(final String url) { + try { + return new URI(url); + } catch (URISyntaxException e) { + throw new RuntimeException(e); + } + } + + public static String quote(final String uri) { + try { + return java.net.URLDecoder.decode(uri, StandardCharsets.UTF_8.name()); + } catch (UnsupportedEncodingException e) { + throw new RuntimeException(e); + } + } + + public static String unquote(final String uri) { + try { + return java.net.URLEncoder.encode(uri, StandardCharsets.UTF_8.name()); + } catch (UnsupportedEncodingException e) { + throw new RuntimeException(e); + } + } + + public static String shortname(final String input_id) { + try { + final URI uri = new URI(input_id); + final String fragment = uri.getFragment(); + if (fragment != null) { + String[] fragment_elements = fragment.split("/"); + return fragment_elements[fragment_elements.length - 1]; + } else { + String[] path_elements = uri.getPath().split("/"); + return path_elements[path_elements.length - 1]; + } + } catch (URISyntaxException e) { + return input_id; + } + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/ValidationException.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/ValidationException.java new file mode 100644 index 00000000..0893e1e1 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/ValidationException.java @@ -0,0 +1,80 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +public class ValidationException extends RuntimeException { + private final List children; + private String bullet = ""; + private String currentMessage; + + public ValidationException(final String message) { + this(message, (List) null); + } + + public ValidationException(final String message, final ValidationException child) { + this(message, Arrays.asList(child)); + } + + public ValidationException(final String message, final List children_) { + super(message); + this.currentMessage = message; + final List children = new ArrayList(); + if (children_ != null) { + for (final ValidationException child : children_) { + children.addAll(child.simplify()); + } + } + this.children = children; + } + + public ValidationException withBullet(final String bullet) { + this.bullet = bullet; + return this; + } + + public List simplify() { + if (getMessage().length() > 0) { + return Arrays.asList(this); + } else { + return this.children; + } + } + + public String summary(final int level, final boolean withBullet) { + final int indentPerLevel = 2; + final String spaces = new String(new char[level * indentPerLevel]).replace("\0", " "); + final String bullet; + if (this.bullet.length() > 0 && withBullet) { + bullet = this.bullet; + } else { + bullet = ""; + } + return spaces + bullet + this.currentMessage; + } + + public String prettyStr(final Integer level_) { + Integer level = level_; + if (level == null) { + level = 0; + } + final List parts = new ArrayList(); + int nextLevel; + if (this.currentMessage != null && this.currentMessage.length() > 0) { + parts.add(this.summary(level, true)); + nextLevel = level + 1; + } else { + nextLevel = level; + } + for (final ValidationException child : this.children) { + parts.add(child.prettyStr(nextLevel)); + } + final String ret = String.join("\n", parts); + return ret; + } + + public String getMessage() { + return this.prettyStr(null); + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/Validator.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/Validator.java new file mode 100644 index 00000000..eea66445 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/Validator.java @@ -0,0 +1,24 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.io.File; +import org.snakeyaml.engine.v2.api.Dump; +import org.snakeyaml.engine.v2.api.DumpSettings; +import org.snakeyaml.engine.v2.common.ScalarStyle; + +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.databind.ObjectMapper; + +public class Validator { + public static void main(final String[] args) throws Exception { + if (args.length != 1) { + throw new Exception("No argument supplied to validate."); + } + // TODO: allow URLs and such. + final File uri = new File(args[0]); + Object doc = RootLoader.loadDocument(uri); + ObjectMapper mapper = new ObjectMapper(); + mapper.setSerializationInclusion(Include.NON_NULL).writerWithDefaultPrettyPrinter().writeValue(System.out, doc); + System.out.println(); + + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/YamlUtils.java b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/YamlUtils.java new file mode 100644 index 00000000..343c2405 --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/YamlUtils.java @@ -0,0 +1,31 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.regex.Pattern; + +import org.snakeyaml.engine.v2.api.Load; +import org.snakeyaml.engine.v2.api.LoadSettings; +import org.snakeyaml.engine.v2.nodes.Tag; +import org.snakeyaml.engine.v2.resolver.ScalarResolver; +import org.snakeyaml.engine.v2.schema.CoreSchema; + +public class YamlUtils { + + public static Map mapFromString(final String text) { + LoadSettings settings = LoadSettings.builder().setSchema(new CoreSchema()).build(); + Load load = new Load(settings); + final Map result = (Map) load.loadFromString(text); + return result; + } + + public static List listFromString(final String text) { + LoadSettings settings = LoadSettings.builder().setSchema(new CoreSchema()).build(); + Load load = new Load(settings); + final List result = (List) load.loadFromString(text); + return result; + } +} diff --git a/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/package.html b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/package.html new file mode 100644 index 00000000..fb58a00d --- /dev/null +++ b/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/package.html @@ -0,0 +1,3 @@ + +This package contains utilities for working the SchemaSalad generated code for the org.commonwl.cwlsdk.cwl1_2 package. + diff --git a/src/main/java/org/w3id/cwl/cwl1_1/Any.java b/src/main/java/org/w3id/cwl/cwl1_1/Any.java deleted file mode 100644 index 396a0375..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/Any.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum Any { - ANY("Any"); - - private static String[] symbols = new String[] {"Any"}; - private String docVal; - - private Any(final String docVal) { - this.docVal = docVal; - } - - public static Any fromDocumentVal(final String docVal) { - for(final Any val : Any.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", Any.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ArraySchema.java b/src/main/java/org/w3id/cwl/cwl1_1/ArraySchema.java deleted file mode 100644 index 88206707..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ArraySchema.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/salad#ArraySchema
This interface is implemented by {@link ArraySchemaImpl}
- */ -public interface ArraySchema extends Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - Object getItems(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - Array_name getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ArraySchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/ArraySchemaImpl.java deleted file mode 100644 index cafd401b..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ArraySchemaImpl.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/salad#ArraySchema
- */ -public class ArraySchemaImpl extends SaveableImpl implements ArraySchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private Object items; - - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - public Object getItems() { - return this.items; - } - - private Array_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - public Array_name getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of ArraySchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public ArraySchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("ArraySchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - Object items; - try { - items = - LoaderInstances - .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 - .loadField(__doc.get("items"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - items = null; // won't be used but prevents compiler from complaining. - final String __message = "the `items` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Array_name type; - try { - type = - LoaderInstances - .typedsl_Array_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.items = (Object) items; - this.type = (Array_name) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/Array_name.java b/src/main/java/org/w3id/cwl/cwl1_1/Array_name.java deleted file mode 100644 index 70618b15..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/Array_name.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum Array_name { - ARRAY("array"); - - private static String[] symbols = new String[] {"array"}; - private String docVal; - - private Array_name(final String docVal) { - this.docVal = docVal; - } - - public static Array_name fromDocumentVal(final String docVal) { - for(final Array_name val : Array_name.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", Array_name.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CWLArraySchema.java b/src/main/java/org/w3id/cwl/cwl1_1/CWLArraySchema.java deleted file mode 100644 index fe04d0e9..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CWLArraySchema.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CWLArraySchema
This interface is implemented by {@link CWLArraySchemaImpl}
- */ -public interface CWLArraySchema extends ArraySchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - Object getItems(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - Array_name getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CWLArraySchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/CWLArraySchemaImpl.java deleted file mode 100644 index caca7dd4..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CWLArraySchemaImpl.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CWLArraySchema
- */ -public class CWLArraySchemaImpl extends SaveableImpl implements CWLArraySchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private Object items; - - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - public Object getItems() { - return this.items; - } - - private Array_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - public Array_name getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CWLArraySchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CWLArraySchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CWLArraySchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - Object items; - try { - items = - LoaderInstances - .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 - .loadField(__doc.get("items"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - items = null; // won't be used but prevents compiler from complaining. - final String __message = "the `items` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Array_name type; - try { - type = - LoaderInstances - .typedsl_Array_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.items = (Object) items; - this.type = (Array_name) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CWLRecordField.java b/src/main/java/org/w3id/cwl/cwl1_1/CWLRecordField.java deleted file mode 100644 index c66ccb8c..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CWLRecordField.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CWLRecordField
This interface is implemented by {@link CWLRecordFieldImpl}
- */ -public interface CWLRecordField extends RecordField, Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - String getName(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - Object getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CWLRecordFieldImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/CWLRecordFieldImpl.java deleted file mode 100644 index a4a6c6de..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CWLRecordFieldImpl.java +++ /dev/null @@ -1,163 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CWLRecordField
- */ -public class CWLRecordFieldImpl extends SaveableImpl implements CWLRecordField { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private String name; - - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - public String getName() { - return this.name; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - public Object getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CWLRecordFieldImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CWLRecordFieldImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CWLRecordFieldImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - String name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - if (name == null) { - if (__docRoot != null) { - name = __docRoot; - } else { - throw new ValidationException("Missing name"); - } - } - __baseUri = (String) name; - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object type; - try { - type = - LoaderInstances - .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 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.doc = (Object) doc; - this.name = (String) name; - this.type = (Object) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CWLRecordSchema.java b/src/main/java/org/w3id/cwl/cwl1_1/CWLRecordSchema.java deleted file mode 100644 index 645d59c6..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CWLRecordSchema.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CWLRecordSchema
This interface is implemented by {@link CWLRecordSchemaImpl}
- */ -public interface CWLRecordSchema extends RecordSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - java.util.Optional> getFields(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - Record_name getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CWLRecordSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/CWLRecordSchemaImpl.java deleted file mode 100644 index 8ee3ab03..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CWLRecordSchemaImpl.java +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CWLRecordSchema
- */ -public class CWLRecordSchemaImpl extends SaveableImpl implements CWLRecordSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional> fields; - - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - public java.util.Optional> getFields() { - return this.fields; - } - - private Record_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - public Record_name getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CWLRecordSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CWLRecordSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CWLRecordSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional> fields; - - if (__doc.containsKey("fields")) { - try { - fields = - LoaderInstances - .idmap_fields_optional_array_of_CWLRecordField - .loadField(__doc.get("fields"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - fields = null; // won't be used but prevents compiler from complaining. - final String __message = "the `fields` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - fields = null; - } - Record_name type; - try { - type = - LoaderInstances - .typedsl_Record_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.fields = (java.util.Optional>) fields; - this.type = (Record_name) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CWLType.java b/src/main/java/org/w3id/cwl/cwl1_1/CWLType.java deleted file mode 100644 index 3d1902c8..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CWLType.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum CWLType { - NULL("null"), - BOOLEAN("boolean"), - INT("int"), - LONG("long"), - FLOAT("float"), - DOUBLE("double"), - STRING("string"), - FILE("File"), - DIRECTORY("Directory"); - - private static String[] symbols = new String[] {"null", "boolean", "int", "long", "float", "double", "string", "File", "Directory"}; - private String docVal; - - private CWLType(final String docVal) { - this.docVal = docVal; - } - - public static CWLType fromDocumentVal(final String docVal) { - for(final CWLType val : CWLType.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", CWLType.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CWLVersion.java b/src/main/java/org/w3id/cwl/cwl1_1/CWLVersion.java deleted file mode 100644 index ec233550..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CWLVersion.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum CWLVersion { - DRAFT_2("draft-2"), - DRAFT_3_DEV1("draft-3.dev1"), - DRAFT_3_DEV2("draft-3.dev2"), - DRAFT_3_DEV3("draft-3.dev3"), - DRAFT_3_DEV4("draft-3.dev4"), - DRAFT_3_DEV5("draft-3.dev5"), - DRAFT_3("draft-3"), - DRAFT_4_DEV1("draft-4.dev1"), - DRAFT_4_DEV2("draft-4.dev2"), - DRAFT_4_DEV3("draft-4.dev3"), - V1_0_DEV4("v1.0.dev4"), - V1_0("v1.0"), - V1_1_0_DEV1("v1.1.0-dev1"), - V1_1("v1.1"); - - private static String[] symbols = new String[] {"draft-2", "draft-3.dev1", "draft-3.dev2", "draft-3.dev3", "draft-3.dev4", "draft-3.dev5", "draft-3", "draft-4.dev1", "draft-4.dev2", "draft-4.dev3", "v1.0.dev4", "v1.0", "v1.1.0-dev1", "v1.1"}; - private String docVal; - - private CWLVersion(final String docVal) { - this.docVal = docVal; - } - - public static CWLVersion fromDocumentVal(final String docVal) { - for(final CWLVersion val : CWLVersion.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", CWLVersion.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputArraySchema.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandInputArraySchema.java deleted file mode 100644 index 5a9a4a65..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputArraySchema.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputArraySchema
This interface is implemented by {@link CommandInputArraySchemaImpl}
- */ -public interface CommandInputArraySchema extends InputArraySchema, CommandInputSchema, CommandLineBindable, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - Object getItems(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - Array_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - java.util.Optional getInputBinding(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputArraySchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandInputArraySchemaImpl.java deleted file mode 100644 index e1517b00..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputArraySchemaImpl.java +++ /dev/null @@ -1,250 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputArraySchema
- */ -public class CommandInputArraySchemaImpl extends SaveableImpl implements CommandInputArraySchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private Object items; - - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - public Object getItems() { - return this.items; - } - - private Array_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - public Array_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private java.util.Optional inputBinding; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - public java.util.Optional getInputBinding() { - return this.inputBinding; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CommandInputArraySchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandInputArraySchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandInputArraySchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - Object items; - try { - items = - LoaderInstances - .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_None - .loadField(__doc.get("items"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - items = null; // won't be used but prevents compiler from complaining. - final String __message = "the `items` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Array_name type; - try { - type = - LoaderInstances - .typedsl_Array_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - java.util.Optional inputBinding; - - if (__doc.containsKey("inputBinding")) { - try { - inputBinding = - LoaderInstances - .optional_CommandLineBinding - .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputBinding = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputBinding` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - inputBinding = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.items = (Object) items; - this.type = (Array_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.name = (java.util.Optional) name; - this.inputBinding = (java.util.Optional) inputBinding; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputEnumSchema.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandInputEnumSchema.java deleted file mode 100644 index 730ec168..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputEnumSchema.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputEnumSchema
This interface is implemented by {@link CommandInputEnumSchemaImpl}
- */ -public interface CommandInputEnumSchema extends InputEnumSchema, CommandInputSchema, CommandLineBindable, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - java.util.List getSymbols(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - Enum_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - java.util.Optional getInputBinding(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputEnumSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandInputEnumSchemaImpl.java deleted file mode 100644 index acc1c7ec..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputEnumSchemaImpl.java +++ /dev/null @@ -1,250 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputEnumSchema
- */ -public class CommandInputEnumSchemaImpl extends SaveableImpl implements CommandInputEnumSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private java.util.List symbols; - - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - public java.util.List getSymbols() { - return this.symbols; - } - - private Enum_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - public Enum_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private java.util.Optional inputBinding; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - public java.util.Optional getInputBinding() { - return this.inputBinding; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CommandInputEnumSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandInputEnumSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandInputEnumSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - java.util.List symbols; - try { - symbols = - LoaderInstances - .uri_array_of_StringInstance_True_False_None_None - .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - symbols = null; // won't be used but prevents compiler from complaining. - final String __message = "the `symbols` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Enum_name type; - try { - type = - LoaderInstances - .typedsl_Enum_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - java.util.Optional inputBinding; - - if (__doc.containsKey("inputBinding")) { - try { - inputBinding = - LoaderInstances - .optional_CommandLineBinding - .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputBinding = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputBinding` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - inputBinding = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.name = (java.util.Optional) name; - this.symbols = (java.util.List) symbols; - this.type = (Enum_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.inputBinding = (java.util.Optional) inputBinding; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputParameter.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandInputParameter.java deleted file mode 100644 index e4529ebb..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputParameter.java +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputParameter
This interface is implemented by {@link CommandInputParameterImpl}
- An input parameter for a CommandLineTool.
- */ -public interface CommandInputParameter extends InputParameter, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferrably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - Object getFormat(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Read up to the first 64 KiB of text from the file and place it in the - * "contents" field of the file object for use by expressions. - * *
- */ - - java.util.Optional getLoadContents(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - java.util.Optional getLoadListing(); - /** - * Getter for property https://w3id.org/cwl/salad#default
- *
- * The default value to use for this parameter if the parameter is missing - * from the input object, or if the value of the parameter in the input - * object is `null`. Default values are applied before evaluating expressions - * (e.g. dependent `valueFrom` fields). - * *
- */ - - java.util.Optional getDefault(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * *
- */ - - Object getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandInputParameter/inputBinding
- *
- * Describes how to turns the input parameters of a process into - * command line arguments. - * *
- */ - - java.util.Optional getInputBinding(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputParameterImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandInputParameterImpl.java deleted file mode 100644 index d0ab6b8a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputParameterImpl.java +++ /dev/null @@ -1,481 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputParameter
- An input parameter for a CommandLineTool.
- */ -public class CommandInputParameterImpl extends SaveableImpl implements CommandInputParameter { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional streamable; - - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - public java.util.Optional getStreamable() { - return this.streamable; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferrably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - public Object getFormat() { - return this.format; - } - - private java.util.Optional loadContents; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Read up to the first 64 KiB of text from the file and place it in the - * "contents" field of the file object for use by expressions. - * *
- */ - - public java.util.Optional getLoadContents() { - return this.loadContents; - } - - private java.util.Optional loadListing; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - public java.util.Optional getLoadListing() { - return this.loadListing; - } - - private java.util.Optional default_; - - /** - * Getter for property https://w3id.org/cwl/salad#default
- *
- * The default value to use for this parameter if the parameter is missing - * from the input object, or if the value of the parameter in the input - * object is `null`. Default values are applied before evaluating expressions - * (e.g. dependent `valueFrom` fields). - * *
- */ - - public java.util.Optional getDefault() { - return this.default_; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * *
- */ - - public Object getType() { - return this.type; - } - - private java.util.Optional inputBinding; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandInputParameter/inputBinding
- *
- * Describes how to turns the input parameters of a process into - * command line arguments. - * *
- */ - - public java.util.Optional getInputBinding() { - return this.inputBinding; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CommandInputParameterImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandInputParameterImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandInputParameterImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional streamable; - - if (__doc.containsKey("streamable")) { - try { - streamable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - streamable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `streamable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - streamable = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - java.util.Optional loadContents; - - if (__doc.containsKey("loadContents")) { - try { - loadContents = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadContents = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadContents` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadContents = null; - } - java.util.Optional loadListing; - - if (__doc.containsKey("loadListing")) { - try { - loadListing = - LoaderInstances - .optional_LoadListingEnum - .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadListing = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadListing` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadListing = null; - } - java.util.Optional default_; - - if (__doc.containsKey("default")) { - try { - default_ = - LoaderInstances - .optional_CWLObjectType - .loadField(__doc.get("default"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - default_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `default` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - default_ = null; - } - Object type; - try { - type = - LoaderInstances - .typedsl_union_of_CWLType_or_stdin_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional inputBinding; - - if (__doc.containsKey("inputBinding")) { - try { - inputBinding = - LoaderInstances - .optional_CommandLineBinding - .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputBinding = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputBinding` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - inputBinding = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.label = (java.util.Optional) label; - this.secondaryFiles = (Object) secondaryFiles; - this.streamable = (java.util.Optional) streamable; - this.doc = (Object) doc; - this.id = (java.util.Optional) id; - this.format = (Object) format; - this.loadContents = (java.util.Optional) loadContents; - this.loadListing = (java.util.Optional) loadListing; - this.default_ = (java.util.Optional) default_; - this.type = (Object) type; - this.inputBinding = (java.util.Optional) inputBinding; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputRecordField.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandInputRecordField.java deleted file mode 100644 index 7ac737f2..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputRecordField.java +++ /dev/null @@ -1,162 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputRecordField
This interface is implemented by {@link CommandInputRecordFieldImpl}
- */ -public interface CommandInputRecordField extends InputRecordField, CommandLineBindable, Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - String getName(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - Object getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferrably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - Object getFormat(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Read up to the first 64 KiB of text from the file and place it in the - * "contents" field of the file object for use by expressions. - * *
- */ - - java.util.Optional getLoadContents(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - java.util.Optional getLoadListing(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - java.util.Optional getInputBinding(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputRecordFieldImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandInputRecordFieldImpl.java deleted file mode 100644 index a938bd05..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputRecordFieldImpl.java +++ /dev/null @@ -1,440 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputRecordField
- */ -public class CommandInputRecordFieldImpl extends SaveableImpl implements CommandInputRecordField { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private String name; - - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - public String getName() { - return this.name; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - public Object getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional streamable; - - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - public java.util.Optional getStreamable() { - return this.streamable; - } - - private Object format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferrably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - public Object getFormat() { - return this.format; - } - - private java.util.Optional loadContents; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Read up to the first 64 KiB of text from the file and place it in the - * "contents" field of the file object for use by expressions. - * *
- */ - - public java.util.Optional getLoadContents() { - return this.loadContents; - } - - private java.util.Optional loadListing; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - public java.util.Optional getLoadListing() { - return this.loadListing; - } - - private java.util.Optional inputBinding; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - public java.util.Optional getInputBinding() { - return this.inputBinding; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CommandInputRecordFieldImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandInputRecordFieldImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandInputRecordFieldImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - String name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - if (name == null) { - if (__docRoot != null) { - name = __docRoot; - } else { - throw new ValidationException("Missing name"); - } - } - __baseUri = (String) name; - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object type; - try { - type = - LoaderInstances - .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 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional streamable; - - if (__doc.containsKey("streamable")) { - try { - streamable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - streamable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `streamable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - streamable = null; - } - Object format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - java.util.Optional loadContents; - - if (__doc.containsKey("loadContents")) { - try { - loadContents = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadContents = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadContents` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadContents = null; - } - java.util.Optional loadListing; - - if (__doc.containsKey("loadListing")) { - try { - loadListing = - LoaderInstances - .optional_LoadListingEnum - .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadListing = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadListing` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadListing = null; - } - java.util.Optional inputBinding; - - if (__doc.containsKey("inputBinding")) { - try { - inputBinding = - LoaderInstances - .optional_CommandLineBinding - .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputBinding = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputBinding` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - inputBinding = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.doc = (Object) doc; - this.name = (String) name; - this.type = (Object) type; - this.label = (java.util.Optional) label; - this.secondaryFiles = (Object) secondaryFiles; - this.streamable = (java.util.Optional) streamable; - this.format = (Object) format; - this.loadContents = (java.util.Optional) loadContents; - this.loadListing = (java.util.Optional) loadListing; - this.inputBinding = (java.util.Optional) inputBinding; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputRecordSchema.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandInputRecordSchema.java deleted file mode 100644 index bae44062..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputRecordSchema.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputRecordSchema
This interface is implemented by {@link CommandInputRecordSchemaImpl}
- */ -public interface CommandInputRecordSchema extends InputRecordSchema, CommandInputSchema, CommandLineBindable, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - java.util.Optional> getFields(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - Record_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - java.util.Optional getInputBinding(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputRecordSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandInputRecordSchemaImpl.java deleted file mode 100644 index 5db6bcfe..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputRecordSchemaImpl.java +++ /dev/null @@ -1,256 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputRecordSchema
- */ -public class CommandInputRecordSchemaImpl extends SaveableImpl implements CommandInputRecordSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private java.util.Optional> fields; - - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - public java.util.Optional> getFields() { - return this.fields; - } - - private Record_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - public Record_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private java.util.Optional inputBinding; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - public java.util.Optional getInputBinding() { - return this.inputBinding; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CommandInputRecordSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandInputRecordSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandInputRecordSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - java.util.Optional> fields; - - if (__doc.containsKey("fields")) { - try { - fields = - LoaderInstances - .idmap_fields_optional_array_of_CommandInputRecordField - .loadField(__doc.get("fields"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - fields = null; // won't be used but prevents compiler from complaining. - final String __message = "the `fields` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - fields = null; - } - Record_name type; - try { - type = - LoaderInstances - .typedsl_Record_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - java.util.Optional inputBinding; - - if (__doc.containsKey("inputBinding")) { - try { - inputBinding = - LoaderInstances - .optional_CommandLineBinding - .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputBinding = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputBinding` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - inputBinding = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.fields = (java.util.Optional>) fields; - this.type = (Record_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.name = (java.util.Optional) name; - this.inputBinding = (java.util.Optional) inputBinding; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputSchema.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandInputSchema.java deleted file mode 100644 index 3cfd0a73..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandInputSchema.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputSchema
- */ -public interface CommandInputSchema extends Saveable { -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandLineBindable.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandLineBindable.java deleted file mode 100644 index b9189232..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandLineBindable.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandLineBindable
This interface is implemented by {@link CommandLineBindableImpl}
- */ -public interface CommandLineBindable extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - java.util.Optional getInputBinding(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandLineBindableImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandLineBindableImpl.java deleted file mode 100644 index abd40db4..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandLineBindableImpl.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandLineBindable
- */ -public class CommandLineBindableImpl extends SaveableImpl implements CommandLineBindable { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional inputBinding; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - public java.util.Optional getInputBinding() { - return this.inputBinding; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CommandLineBindableImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandLineBindableImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandLineBindableImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional inputBinding; - - if (__doc.containsKey("inputBinding")) { - try { - inputBinding = - LoaderInstances - .optional_CommandLineBinding - .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputBinding = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputBinding` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - inputBinding = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.inputBinding = (java.util.Optional) inputBinding; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandLineBinding.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandLineBinding.java deleted file mode 100644 index 111257b3..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandLineBinding.java +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandLineBinding
This interface is implemented by {@link CommandLineBindingImpl}
- - When listed under `inputBinding` in the input schema, the term - "value" refers to the the corresponding value in the input object. For - binding objects listed in `CommandLineTool.arguments`, the term "value" - refers to the effective value after evaluating `valueFrom`. - - The binding behavior when building the command line depends on the data - type of the value. If there is a mismatch between the type described by - the input schema and the effective value, such as resulting from an - expression evaluation, an implementation must use the data type of the - effective value. - - - **string**: Add `prefix` and the string to the command line. - - - **number**: Add `prefix` and decimal representation to command line. - - - **boolean**: If true, add `prefix` to the command line. If false, add - nothing. - - - **File**: Add `prefix` and the value of - [`File.path`](#File) to the command line. - - - **Directory**: Add `prefix` and the value of - [`Directory.path`](#Directory) to the command line. - - - **array**: If `itemSeparator` is specified, add `prefix` and the join - the array into a single string with `itemSeparator` separating the - items. Otherwise first add `prefix`, then recursively process - individual elements. - If the array is empty, it does not add anything to command line. - - - **object**: Add `prefix` only, and recursively add object fields for - which `inputBinding` is specified. - - - **null**: Add nothing. -
- */ -public interface CommandLineBinding extends InputBinding, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#InputBinding/loadContents
- *
- * Use of `loadContents` in `InputBinding` is deprecated. - * Preserved for v1.0 backwards compatability. Will be removed in - * CWL v2.0. Use `InputParameter.loadContents` instead. - * - * Only valid when `type: File` or is an array of `items: File`. - * - * Read up to the first 64 KiB of text from the file and place it in the - * "contents" field of the file object for use by expressions. - * *
- */ - - java.util.Optional getLoadContents(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/position
- *
- * The sorting key. Default position is 0. If the inputBinding is - * associated with an input parameter, then the value of `self` in the - * expression will be the value of the input parameter. Input parameter - * defaults (as specified by the `InputParameter.default` field) must be - * applied before evaluating the expression. Expressions must return a - * single value of type int or a null. - * *
- */ - - Object getPosition(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/prefix
- *
- * Command line prefix to add before the value. *
- */ - - java.util.Optional getPrefix(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/separate
- *
- * If true (default), then the prefix and value must be added as separate - * command line arguments; if false, prefix and value must be concatenated - * into a single command line argument. - * *
- */ - - java.util.Optional getSeparate(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/itemSeparator
- *
- * Join the array elements into a single string with the elements - * separated by by `itemSeparator`. - * *
- */ - - java.util.Optional getItemSeparator(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/valueFrom
- *
- * If `valueFrom` is a constant string value, use this as the value and - * apply the binding rules above. - * - * If `valueFrom` is an expression, evaluate the expression to yield the - * actual value to use to build the command line and apply the binding - * rules above. If the inputBinding is associated with an input - * parameter, the value of `self` in the expression will be the value of - * the input parameter. Input parameter defaults (as specified by the - * `InputParameter.default` field) must be applied before evaluating the - * expression. - * - * If the value of the associated input parameter is `null`, `valueFrom` is - * not evaluated and nothing is added to the command line. - * - * When a binding is part of the `CommandLineTool.arguments` field, - * the `valueFrom` field is required. - * *
- */ - - Object getValueFrom(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/shellQuote
- *
- * If `ShellCommandRequirement` is in the requirements for the current command, - * this controls whether the value is quoted on the command line (default is true). - * Use `shellQuote: false` to inject metacharacters for operations such as pipes. - * - * If `shellQuote` is true or not provided, the implementation must not - * permit interpretation of any shell metacharacters or directives. - * *
- */ - - java.util.Optional getShellQuote(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandLineBindingImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandLineBindingImpl.java deleted file mode 100644 index 2409509f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandLineBindingImpl.java +++ /dev/null @@ -1,355 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandLineBinding
- - When listed under `inputBinding` in the input schema, the term - "value" refers to the the corresponding value in the input object. For - binding objects listed in `CommandLineTool.arguments`, the term "value" - refers to the effective value after evaluating `valueFrom`. - - The binding behavior when building the command line depends on the data - type of the value. If there is a mismatch between the type described by - the input schema and the effective value, such as resulting from an - expression evaluation, an implementation must use the data type of the - effective value. - - - **string**: Add `prefix` and the string to the command line. - - - **number**: Add `prefix` and decimal representation to command line. - - - **boolean**: If true, add `prefix` to the command line. If false, add - nothing. - - - **File**: Add `prefix` and the value of - [`File.path`](#File) to the command line. - - - **Directory**: Add `prefix` and the value of - [`Directory.path`](#Directory) to the command line. - - - **array**: If `itemSeparator` is specified, add `prefix` and the join - the array into a single string with `itemSeparator` separating the - items. Otherwise first add `prefix`, then recursively process - individual elements. - If the array is empty, it does not add anything to command line. - - - **object**: Add `prefix` only, and recursively add object fields for - which `inputBinding` is specified. - - - **null**: Add nothing. -
- */ -public class CommandLineBindingImpl extends SaveableImpl implements CommandLineBinding { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional loadContents; - - /** - * Getter for property https://w3id.org/cwl/cwl#InputBinding/loadContents
- *
- * Use of `loadContents` in `InputBinding` is deprecated. - * Preserved for v1.0 backwards compatability. Will be removed in - * CWL v2.0. Use `InputParameter.loadContents` instead. - * - * Only valid when `type: File` or is an array of `items: File`. - * - * Read up to the first 64 KiB of text from the file and place it in the - * "contents" field of the file object for use by expressions. - * *
- */ - - public java.util.Optional getLoadContents() { - return this.loadContents; - } - - private Object position; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/position
- *
- * The sorting key. Default position is 0. If the inputBinding is - * associated with an input parameter, then the value of `self` in the - * expression will be the value of the input parameter. Input parameter - * defaults (as specified by the `InputParameter.default` field) must be - * applied before evaluating the expression. Expressions must return a - * single value of type int or a null. - * *
- */ - - public Object getPosition() { - return this.position; - } - - private java.util.Optional prefix; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/prefix
- *
- * Command line prefix to add before the value. *
- */ - - public java.util.Optional getPrefix() { - return this.prefix; - } - - private java.util.Optional separate; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/separate
- *
- * If true (default), then the prefix and value must be added as separate - * command line arguments; if false, prefix and value must be concatenated - * into a single command line argument. - * *
- */ - - public java.util.Optional getSeparate() { - return this.separate; - } - - private java.util.Optional itemSeparator; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/itemSeparator
- *
- * Join the array elements into a single string with the elements - * separated by by `itemSeparator`. - * *
- */ - - public java.util.Optional getItemSeparator() { - return this.itemSeparator; - } - - private Object valueFrom; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/valueFrom
- *
- * If `valueFrom` is a constant string value, use this as the value and - * apply the binding rules above. - * - * If `valueFrom` is an expression, evaluate the expression to yield the - * actual value to use to build the command line and apply the binding - * rules above. If the inputBinding is associated with an input - * parameter, the value of `self` in the expression will be the value of - * the input parameter. Input parameter defaults (as specified by the - * `InputParameter.default` field) must be applied before evaluating the - * expression. - * - * If the value of the associated input parameter is `null`, `valueFrom` is - * not evaluated and nothing is added to the command line. - * - * When a binding is part of the `CommandLineTool.arguments` field, - * the `valueFrom` field is required. - * *
- */ - - public Object getValueFrom() { - return this.valueFrom; - } - - private java.util.Optional shellQuote; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/shellQuote
- *
- * If `ShellCommandRequirement` is in the requirements for the current command, - * this controls whether the value is quoted on the command line (default is true). - * Use `shellQuote: false` to inject metacharacters for operations such as pipes. - * - * If `shellQuote` is true or not provided, the implementation must not - * permit interpretation of any shell metacharacters or directives. - * *
- */ - - public java.util.Optional getShellQuote() { - return this.shellQuote; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CommandLineBindingImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandLineBindingImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandLineBindingImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional loadContents; - - if (__doc.containsKey("loadContents")) { - try { - loadContents = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadContents = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadContents` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadContents = null; - } - Object position; - - if (__doc.containsKey("position")) { - try { - position = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_ExpressionLoader - .loadField(__doc.get("position"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - position = null; // won't be used but prevents compiler from complaining. - final String __message = "the `position` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - position = null; - } - java.util.Optional prefix; - - if (__doc.containsKey("prefix")) { - try { - prefix = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("prefix"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - prefix = null; // won't be used but prevents compiler from complaining. - final String __message = "the `prefix` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - prefix = null; - } - java.util.Optional separate; - - if (__doc.containsKey("separate")) { - try { - separate = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("separate"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - separate = null; // won't be used but prevents compiler from complaining. - final String __message = "the `separate` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - separate = null; - } - java.util.Optional itemSeparator; - - if (__doc.containsKey("itemSeparator")) { - try { - itemSeparator = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("itemSeparator"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - itemSeparator = null; // won't be used but prevents compiler from complaining. - final String __message = "the `itemSeparator` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - itemSeparator = null; - } - Object valueFrom; - - if (__doc.containsKey("valueFrom")) { - try { - valueFrom = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_ExpressionLoader - .loadField(__doc.get("valueFrom"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - valueFrom = null; // won't be used but prevents compiler from complaining. - final String __message = "the `valueFrom` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - valueFrom = null; - } - java.util.Optional shellQuote; - - if (__doc.containsKey("shellQuote")) { - try { - shellQuote = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("shellQuote"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - shellQuote = null; // won't be used but prevents compiler from complaining. - final String __message = "the `shellQuote` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - shellQuote = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.loadContents = (java.util.Optional) loadContents; - this.position = (Object) position; - this.prefix = (java.util.Optional) prefix; - this.separate = (java.util.Optional) separate; - this.itemSeparator = (java.util.Optional) itemSeparator; - this.valueFrom = (Object) valueFrom; - this.shellQuote = (java.util.Optional) shellQuote; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandLineTool.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandLineTool.java deleted file mode 100644 index eb87ca85..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandLineTool.java +++ /dev/null @@ -1,211 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandLineTool
This interface is implemented by {@link CommandLineToolImpl}
- This defines the schema of the CWL Command Line Tool Description document. -
- */ -public interface CommandLineTool extends Process, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/class
- - */ - - CommandLineTool_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#inputs
- *
- * Defines the input parameters of the process. The process is ready to - * run when all required input parameters are associated with concrete - * values. Input parameters include a schema for each parameter which is - * used to validate the input object. It may also be used to build a user - * interface for constructing the input object. - * - * When accepting an input object, all input parameters must have a value. - * If an input parameter is missing from the input object, it must be - * assigned a value of `null` (or the value of `default` for that - * parameter, if provided) for the purposes of validation and evaluation - * of expressions. - * *
- */ - - java.util.List getInputs(); - /** - * Getter for property https://w3id.org/cwl/cwl#outputs
- *
- * Defines the parameters representing the output of the process. May be - * used to generate and/or validate the output object. - * *
- */ - - java.util.List getOutputs(); - /** - * Getter for property https://w3id.org/cwl/cwl#requirements
- *
- * Declares requirements that apply to either the runtime environment or the - * workflow engine that must be met in order to execute this process. If - * an implementation cannot satisfy all requirements, or a requirement is - * listed which is not recognized by the implementation, it is a fatal - * error and the implementation must not attempt to run the process, - * unless overridden at user option. - * *
- */ - - java.util.Optional> getRequirements(); - /** - * Getter for property https://w3id.org/cwl/cwl#hints
- *
- * Declares hints applying to either the runtime environment or the - * workflow engine that may be helpful in executing this process. It is - * not an error if an implementation cannot satisfy all hints, however - * the implementation may report a warning. - * *
- */ - - java.util.Optional> getHints(); - /** - * Getter for property https://w3id.org/cwl/cwl#cwlVersion
- *
- * CWL document version. Always required at the document root. Not - * required for a Process embedded inside another Process. - * *
- */ - - java.util.Optional getCwlVersion(); - /** - * Getter for property https://w3id.org/cwl/cwl#baseCommand
- *
- * Specifies the program to execute. If an array, the first element of - * the array is the command to execute, and subsequent elements are - * mandatory command line arguments. The elements in `baseCommand` must - * appear before any command line bindings from `inputBinding` or - * `arguments`. - * - * If `baseCommand` is not provided or is an empty array, the first - * element of the command line produced after processing `inputBinding` or - * `arguments` must be used as the program to execute. - * - * If the program includes a path separator character it must - * be an absolute path, otherwise it is an error. If the program does not - * include a path separator, search the `$PATH` variable in the runtime - * environment of the workflow runner find the absolute path of the - * executable. - * *
- */ - - Object getBaseCommand(); - /** - * Getter for property https://w3id.org/cwl/cwl#arguments
- *
- * Command line bindings which are not directly associated with input - * parameters. If the value is a string, it is used as a string literal - * argument. If it is an Expression, the result of the evaluation is used - * as an argument. - * *
- */ - - java.util.Optional> getArguments(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stdin
- *
- * A path to a file whose contents must be piped into the command's - * standard input stream. - * *
- */ - - Object getStdin(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stderr
- *
- * Capture the command's standard error stream to a file written to - * the designated output directory. - * - * If `stderr` is a string, it specifies the file name to use. - * - * If `stderr` is an expression, the expression is evaluated and must - * return a string with the file name to use to capture stderr. If the - * return value is not a string, or the resulting path contains illegal - * characters (such as the path separator `/`) it is an error. - * *
- */ - - Object getStderr(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stdout
- *
- * Capture the command's standard output stream to a file written to - * the designated output directory. - * - * If `stdout` is a string, it specifies the file name to use. - * - * If `stdout` is an expression, the expression is evaluated and must - * return a string with the file name to use to capture stdout. If the - * return value is not a string, or the resulting path contains illegal - * characters (such as the path separator `/`) it is an error. - * *
- */ - - Object getStdout(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/successCodes
- *
- * Exit codes that indicate the process completed successfully. - * *
- */ - - java.util.Optional> getSuccessCodes(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/temporaryFailCodes
- *
- * Exit codes that indicate the process failed due to a possibly - * temporary condition, where executing the process with the same - * runtime environment and inputs may produce different results. - * *
- */ - - java.util.Optional> getTemporaryFailCodes(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/permanentFailCodes
- *
- * Exit codes that indicate the process failed due to a permanent logic error, where executing the process with the same runtime environment and same inputs is expected to always fail. *
- */ - - java.util.Optional> getPermanentFailCodes(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandLineToolImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandLineToolImpl.java deleted file mode 100644 index 12211748..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandLineToolImpl.java +++ /dev/null @@ -1,643 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandLineTool
- This defines the schema of the CWL Command Line Tool Description document. -
- */ -public class CommandLineToolImpl extends SaveableImpl implements CommandLineTool { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private CommandLineTool_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/class
- - */ - - public CommandLineTool_class getClass_() { - return this.class_; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private java.util.List inputs; - - /** - * Getter for property https://w3id.org/cwl/cwl#inputs
- *
- * Defines the input parameters of the process. The process is ready to - * run when all required input parameters are associated with concrete - * values. Input parameters include a schema for each parameter which is - * used to validate the input object. It may also be used to build a user - * interface for constructing the input object. - * - * When accepting an input object, all input parameters must have a value. - * If an input parameter is missing from the input object, it must be - * assigned a value of `null` (or the value of `default` for that - * parameter, if provided) for the purposes of validation and evaluation - * of expressions. - * *
- */ - - public java.util.List getInputs() { - return this.inputs; - } - - private java.util.List outputs; - - /** - * Getter for property https://w3id.org/cwl/cwl#outputs
- *
- * Defines the parameters representing the output of the process. May be - * used to generate and/or validate the output object. - * *
- */ - - public java.util.List getOutputs() { - return this.outputs; - } - - private java.util.Optional> requirements; - - /** - * Getter for property https://w3id.org/cwl/cwl#requirements
- *
- * Declares requirements that apply to either the runtime environment or the - * workflow engine that must be met in order to execute this process. If - * an implementation cannot satisfy all requirements, or a requirement is - * listed which is not recognized by the implementation, it is a fatal - * error and the implementation must not attempt to run the process, - * unless overridden at user option. - * *
- */ - - public java.util.Optional> getRequirements() { - return this.requirements; - } - - private java.util.Optional> hints; - - /** - * Getter for property https://w3id.org/cwl/cwl#hints
- *
- * Declares hints applying to either the runtime environment or the - * workflow engine that may be helpful in executing this process. It is - * not an error if an implementation cannot satisfy all hints, however - * the implementation may report a warning. - * *
- */ - - public java.util.Optional> getHints() { - return this.hints; - } - - private java.util.Optional cwlVersion; - - /** - * Getter for property https://w3id.org/cwl/cwl#cwlVersion
- *
- * CWL document version. Always required at the document root. Not - * required for a Process embedded inside another Process. - * *
- */ - - public java.util.Optional getCwlVersion() { - return this.cwlVersion; - } - - private Object baseCommand; - - /** - * Getter for property https://w3id.org/cwl/cwl#baseCommand
- *
- * Specifies the program to execute. If an array, the first element of - * the array is the command to execute, and subsequent elements are - * mandatory command line arguments. The elements in `baseCommand` must - * appear before any command line bindings from `inputBinding` or - * `arguments`. - * - * If `baseCommand` is not provided or is an empty array, the first - * element of the command line produced after processing `inputBinding` or - * `arguments` must be used as the program to execute. - * - * If the program includes a path separator character it must - * be an absolute path, otherwise it is an error. If the program does not - * include a path separator, search the `$PATH` variable in the runtime - * environment of the workflow runner find the absolute path of the - * executable. - * *
- */ - - public Object getBaseCommand() { - return this.baseCommand; - } - - private java.util.Optional> arguments; - - /** - * Getter for property https://w3id.org/cwl/cwl#arguments
- *
- * Command line bindings which are not directly associated with input - * parameters. If the value is a string, it is used as a string literal - * argument. If it is an Expression, the result of the evaluation is used - * as an argument. - * *
- */ - - public java.util.Optional> getArguments() { - return this.arguments; - } - - private Object stdin; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stdin
- *
- * A path to a file whose contents must be piped into the command's - * standard input stream. - * *
- */ - - public Object getStdin() { - return this.stdin; - } - - private Object stderr; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stderr
- *
- * Capture the command's standard error stream to a file written to - * the designated output directory. - * - * If `stderr` is a string, it specifies the file name to use. - * - * If `stderr` is an expression, the expression is evaluated and must - * return a string with the file name to use to capture stderr. If the - * return value is not a string, or the resulting path contains illegal - * characters (such as the path separator `/`) it is an error. - * *
- */ - - public Object getStderr() { - return this.stderr; - } - - private Object stdout; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stdout
- *
- * Capture the command's standard output stream to a file written to - * the designated output directory. - * - * If `stdout` is a string, it specifies the file name to use. - * - * If `stdout` is an expression, the expression is evaluated and must - * return a string with the file name to use to capture stdout. If the - * return value is not a string, or the resulting path contains illegal - * characters (such as the path separator `/`) it is an error. - * *
- */ - - public Object getStdout() { - return this.stdout; - } - - private java.util.Optional> successCodes; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/successCodes
- *
- * Exit codes that indicate the process completed successfully. - * *
- */ - - public java.util.Optional> getSuccessCodes() { - return this.successCodes; - } - - private java.util.Optional> temporaryFailCodes; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/temporaryFailCodes
- *
- * Exit codes that indicate the process failed due to a possibly - * temporary condition, where executing the process with the same - * runtime environment and inputs may produce different results. - * *
- */ - - public java.util.Optional> getTemporaryFailCodes() { - return this.temporaryFailCodes; - } - - private java.util.Optional> permanentFailCodes; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/permanentFailCodes
- *
- * Exit codes that indicate the process failed due to a permanent logic error, where executing the process with the same runtime environment and same inputs is expected to always fail. *
- */ - - public java.util.Optional> getPermanentFailCodes() { - return this.permanentFailCodes; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CommandLineToolImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandLineToolImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandLineToolImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - CommandLineTool_class class_; - try { - class_ = - LoaderInstances - .uri_CommandLineTool_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - java.util.List inputs; - try { - inputs = - LoaderInstances - .idmap_inputs_array_of_CommandInputParameter - .loadField(__doc.get("inputs"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputs = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputs` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.List outputs; - try { - outputs = - LoaderInstances - .idmap_outputs_array_of_CommandOutputParameter - .loadField(__doc.get("outputs"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - outputs = null; // won't be used but prevents compiler from complaining. - final String __message = "the `outputs` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional> requirements; - - if (__doc.containsKey("requirements")) { - try { - requirements = - LoaderInstances - .idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement - .loadField(__doc.get("requirements"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - requirements = null; // won't be used but prevents compiler from complaining. - final String __message = "the `requirements` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - requirements = null; - } - java.util.Optional> hints; - - if (__doc.containsKey("hints")) { - try { - hints = - LoaderInstances - .idmap_hints_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance - .loadField(__doc.get("hints"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - hints = null; // won't be used but prevents compiler from complaining. - final String __message = "the `hints` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - hints = null; - } - java.util.Optional cwlVersion; - - if (__doc.containsKey("cwlVersion")) { - try { - cwlVersion = - LoaderInstances - .uri_optional_CWLVersion_False_True_None_None - .loadField(__doc.get("cwlVersion"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - cwlVersion = null; // won't be used but prevents compiler from complaining. - final String __message = "the `cwlVersion` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - cwlVersion = null; - } - Object baseCommand; - - if (__doc.containsKey("baseCommand")) { - try { - baseCommand = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("baseCommand"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - baseCommand = null; // won't be used but prevents compiler from complaining. - final String __message = "the `baseCommand` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - baseCommand = null; - } - java.util.Optional> arguments; - - if (__doc.containsKey("arguments")) { - try { - arguments = - LoaderInstances - .optional_array_of_union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding - .loadField(__doc.get("arguments"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - arguments = null; // won't be used but prevents compiler from complaining. - final String __message = "the `arguments` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - arguments = null; - } - Object stdin; - - if (__doc.containsKey("stdin")) { - try { - stdin = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_ExpressionLoader - .loadField(__doc.get("stdin"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - stdin = null; // won't be used but prevents compiler from complaining. - final String __message = "the `stdin` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - stdin = null; - } - Object stderr; - - if (__doc.containsKey("stderr")) { - try { - stderr = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_ExpressionLoader - .loadField(__doc.get("stderr"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - stderr = null; // won't be used but prevents compiler from complaining. - final String __message = "the `stderr` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - stderr = null; - } - Object stdout; - - if (__doc.containsKey("stdout")) { - try { - stdout = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_ExpressionLoader - .loadField(__doc.get("stdout"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - stdout = null; // won't be used but prevents compiler from complaining. - final String __message = "the `stdout` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - stdout = null; - } - java.util.Optional> successCodes; - - if (__doc.containsKey("successCodes")) { - try { - successCodes = - LoaderInstances - .optional_array_of_IntegerInstance - .loadField(__doc.get("successCodes"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - successCodes = null; // won't be used but prevents compiler from complaining. - final String __message = "the `successCodes` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - successCodes = null; - } - java.util.Optional> temporaryFailCodes; - - if (__doc.containsKey("temporaryFailCodes")) { - try { - temporaryFailCodes = - LoaderInstances - .optional_array_of_IntegerInstance - .loadField(__doc.get("temporaryFailCodes"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - temporaryFailCodes = null; // won't be used but prevents compiler from complaining. - final String __message = "the `temporaryFailCodes` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - temporaryFailCodes = null; - } - java.util.Optional> permanentFailCodes; - - if (__doc.containsKey("permanentFailCodes")) { - try { - permanentFailCodes = - LoaderInstances - .optional_array_of_IntegerInstance - .loadField(__doc.get("permanentFailCodes"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - permanentFailCodes = null; // won't be used but prevents compiler from complaining. - final String __message = "the `permanentFailCodes` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - permanentFailCodes = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.id = (java.util.Optional) id; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.inputs = (java.util.List) inputs; - this.outputs = (java.util.List) outputs; - this.requirements = (java.util.Optional>) requirements; - this.hints = (java.util.Optional>) hints; - this.cwlVersion = (java.util.Optional) cwlVersion; - this.class_ = (CommandLineTool_class) class_; - this.baseCommand = (Object) baseCommand; - this.arguments = (java.util.Optional>) arguments; - this.stdin = (Object) stdin; - this.stderr = (Object) stderr; - this.stdout = (Object) stdout; - this.successCodes = (java.util.Optional>) successCodes; - this.temporaryFailCodes = (java.util.Optional>) temporaryFailCodes; - this.permanentFailCodes = (java.util.Optional>) permanentFailCodes; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandLineTool_class.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandLineTool_class.java deleted file mode 100644 index 3674e1b8..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandLineTool_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum CommandLineTool_class { - COMMANDLINETOOL("CommandLineTool"); - - private static String[] symbols = new String[] {"CommandLineTool"}; - private String docVal; - - private CommandLineTool_class(final String docVal) { - this.docVal = docVal; - } - - public static CommandLineTool_class fromDocumentVal(final String docVal) { - for(final CommandLineTool_class val : CommandLineTool_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", CommandLineTool_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputArraySchema.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputArraySchema.java deleted file mode 100644 index 1d077adf..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputArraySchema.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputArraySchema
This interface is implemented by {@link CommandOutputArraySchemaImpl}
- */ -public interface CommandOutputArraySchema extends OutputArraySchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - Object getItems(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - Array_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputArraySchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputArraySchemaImpl.java deleted file mode 100644 index caf8b958..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputArraySchemaImpl.java +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputArraySchema
- */ -public class CommandOutputArraySchemaImpl extends SaveableImpl implements CommandOutputArraySchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private Object items; - - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - public Object getItems() { - return this.items; - } - - private Array_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - public Array_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CommandOutputArraySchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandOutputArraySchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandOutputArraySchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - Object items; - try { - items = - LoaderInstances - .uri_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_False_True_2_None - .loadField(__doc.get("items"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - items = null; // won't be used but prevents compiler from complaining. - final String __message = "the `items` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Array_name type; - try { - type = - LoaderInstances - .typedsl_Array_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.items = (Object) items; - this.type = (Array_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.name = (java.util.Optional) name; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputBinding.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputBinding.java deleted file mode 100644 index b89b32c9..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputBinding.java +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputBinding
This interface is implemented by {@link CommandOutputBindingImpl}
- Describes how to generate an output parameter based on the files produced - by a CommandLineTool. - - The output parameter value is generated by applying these operations in the - following order: - - - glob - - loadContents - - outputEval - - secondaryFiles -
- */ -public interface CommandOutputBinding extends LoadContents, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Read up to the first 64 KiB of text from the file and place it in the - * "contents" field of the file object for use by expressions. - * *
- */ - - java.util.Optional getLoadContents(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - java.util.Optional getLoadListing(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandOutputBinding/glob
- *
- * Find files or directories relative to the output directory, using POSIX - * glob(3) pathname matching. If an array is provided, find files or - * directories that match any pattern in the array. If an expression is - * provided, the expression must return a string or an array of strings, - * which will then be evaluated as one or more glob patterns. Must only - * match and return files/directories which actually exist. - * - * If the value of glob is a relative path pattern (does not - * begin with a slash '/') then it is resolved relative to the - * output directory. If the value of the glob is an absolute - * path pattern (it does begin with a slash '/') then it must - * refer to a path within the output directory. It is an error - * if any glob resolves to a path outside the output directory. - * Specifically this means globs that resolve to paths outside the output - * directory are illegal. - * - * A glob may match a path within the output directory which is - * actually a symlink to another file. In this case, the - * expected behavior is for the resulting File/Directory object to take the - * `basename` (and corresponding `nameroot` and `nameext`) of the - * symlink. The `location` of the File/Directory is implementation - * dependent, but logically the File/Directory should have the same content - * as the symlink target. Platforms may stage output files/directories to - * cloud storage that lack the concept of a symlink. In - * this case file content and directories may be duplicated, or (to avoid - * duplication) the File/Directory `location` may refer to the symlink - * target. - * - * It is an error if a symlink in the output directory (or any - * symlink in a chain of links) refers to any file or directory - * that is not under an input or output directory. - * - * Implementations may shut down a container before globbing - * output, so globs and expressions must not assume access to the - * container filesystem except for declared input and output. - * *
- */ - - Object getGlob(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandOutputBinding/outputEval
- *
- * Evaluate an expression to generate the output value. If - * `glob` was specified, the value of `self` must be an array - * containing file objects that were matched. If no files were - * matched, `self` must be a zero length array; if a single file - * was matched, the value of `self` is an array of a single - * element. Additionally, if `loadContents` is `true`, the File - * objects must include up to the first 64 KiB of file contents - * in the `contents` field. The exit code of the process is - * available in the expression as `runtime.exitCode`. - * *
- */ - - java.util.Optional getOutputEval(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputBindingImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputBindingImpl.java deleted file mode 100644 index a5eedccc..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputBindingImpl.java +++ /dev/null @@ -1,257 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputBinding
- Describes how to generate an output parameter based on the files produced - by a CommandLineTool. - - The output parameter value is generated by applying these operations in the - following order: - - - glob - - loadContents - - outputEval - - secondaryFiles -
- */ -public class CommandOutputBindingImpl extends SaveableImpl implements CommandOutputBinding { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional loadContents; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Read up to the first 64 KiB of text from the file and place it in the - * "contents" field of the file object for use by expressions. - * *
- */ - - public java.util.Optional getLoadContents() { - return this.loadContents; - } - - private java.util.Optional loadListing; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - public java.util.Optional getLoadListing() { - return this.loadListing; - } - - private Object glob; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandOutputBinding/glob
- *
- * Find files or directories relative to the output directory, using POSIX - * glob(3) pathname matching. If an array is provided, find files or - * directories that match any pattern in the array. If an expression is - * provided, the expression must return a string or an array of strings, - * which will then be evaluated as one or more glob patterns. Must only - * match and return files/directories which actually exist. - * - * If the value of glob is a relative path pattern (does not - * begin with a slash '/') then it is resolved relative to the - * output directory. If the value of the glob is an absolute - * path pattern (it does begin with a slash '/') then it must - * refer to a path within the output directory. It is an error - * if any glob resolves to a path outside the output directory. - * Specifically this means globs that resolve to paths outside the output - * directory are illegal. - * - * A glob may match a path within the output directory which is - * actually a symlink to another file. In this case, the - * expected behavior is for the resulting File/Directory object to take the - * `basename` (and corresponding `nameroot` and `nameext`) of the - * symlink. The `location` of the File/Directory is implementation - * dependent, but logically the File/Directory should have the same content - * as the symlink target. Platforms may stage output files/directories to - * cloud storage that lack the concept of a symlink. In - * this case file content and directories may be duplicated, or (to avoid - * duplication) the File/Directory `location` may refer to the symlink - * target. - * - * It is an error if a symlink in the output directory (or any - * symlink in a chain of links) refers to any file or directory - * that is not under an input or output directory. - * - * Implementations may shut down a container before globbing - * output, so globs and expressions must not assume access to the - * container filesystem except for declared input and output. - * *
- */ - - public Object getGlob() { - return this.glob; - } - - private java.util.Optional outputEval; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandOutputBinding/outputEval
- *
- * Evaluate an expression to generate the output value. If - * `glob` was specified, the value of `self` must be an array - * containing file objects that were matched. If no files were - * matched, `self` must be a zero length array; if a single file - * was matched, the value of `self` is an array of a single - * element. Additionally, if `loadContents` is `true`, the File - * objects must include up to the first 64 KiB of file contents - * in the `contents` field. The exit code of the process is - * available in the expression as `runtime.exitCode`. - * *
- */ - - public java.util.Optional getOutputEval() { - return this.outputEval; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CommandOutputBindingImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandOutputBindingImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandOutputBindingImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional loadContents; - - if (__doc.containsKey("loadContents")) { - try { - loadContents = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadContents = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadContents` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadContents = null; - } - java.util.Optional loadListing; - - if (__doc.containsKey("loadListing")) { - try { - loadListing = - LoaderInstances - .optional_LoadListingEnum - .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadListing = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadListing` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadListing = null; - } - Object glob; - - if (__doc.containsKey("glob")) { - try { - glob = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_ExpressionLoader_or_array_of_StringInstance - .loadField(__doc.get("glob"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - glob = null; // won't be used but prevents compiler from complaining. - final String __message = "the `glob` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - glob = null; - } - java.util.Optional outputEval; - - if (__doc.containsKey("outputEval")) { - try { - outputEval = - LoaderInstances - .optional_ExpressionLoader - .loadField(__doc.get("outputEval"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - outputEval = null; // won't be used but prevents compiler from complaining. - final String __message = "the `outputEval` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - outputEval = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.loadContents = (java.util.Optional) loadContents; - this.loadListing = (java.util.Optional) loadListing; - this.glob = (Object) glob; - this.outputEval = (java.util.Optional) outputEval; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputEnumSchema.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputEnumSchema.java deleted file mode 100644 index 2a4782f2..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputEnumSchema.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputEnumSchema
This interface is implemented by {@link CommandOutputEnumSchemaImpl}
- */ -public interface CommandOutputEnumSchema extends OutputEnumSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - java.util.List getSymbols(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - Enum_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputEnumSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputEnumSchemaImpl.java deleted file mode 100644 index 08adf037..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputEnumSchemaImpl.java +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputEnumSchema
- */ -public class CommandOutputEnumSchemaImpl extends SaveableImpl implements CommandOutputEnumSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private java.util.List symbols; - - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - public java.util.List getSymbols() { - return this.symbols; - } - - private Enum_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - public Enum_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CommandOutputEnumSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandOutputEnumSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandOutputEnumSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - java.util.List symbols; - try { - symbols = - LoaderInstances - .uri_array_of_StringInstance_True_False_None_None - .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - symbols = null; // won't be used but prevents compiler from complaining. - final String __message = "the `symbols` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Enum_name type; - try { - type = - LoaderInstances - .typedsl_Enum_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.name = (java.util.Optional) name; - this.symbols = (java.util.List) symbols; - this.type = (Enum_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputParameter.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputParameter.java deleted file mode 100644 index 89687c0a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputParameter.java +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputParameter
This interface is implemented by {@link CommandOutputParameterImpl}
- An output parameter for a CommandLineTool.
- */ -public interface CommandOutputParameter extends OutputParameter, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - Object getFormat(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * *
- */ - - Object getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandOutputParameter/outputBinding
- *
- * Describes how to generate this output object based on the files produced by a CommandLineTool *
- */ - - java.util.Optional getOutputBinding(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputParameterImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputParameterImpl.java deleted file mode 100644 index 1ca70be7..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputParameterImpl.java +++ /dev/null @@ -1,369 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputParameter
- An output parameter for a CommandLineTool.
- */ -public class CommandOutputParameterImpl extends SaveableImpl implements CommandOutputParameter { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional streamable; - - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - public java.util.Optional getStreamable() { - return this.streamable; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - public Object getFormat() { - return this.format; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * *
- */ - - public Object getType() { - return this.type; - } - - private java.util.Optional outputBinding; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandOutputParameter/outputBinding
- *
- * Describes how to generate this output object based on the files produced by a CommandLineTool *
- */ - - public java.util.Optional getOutputBinding() { - return this.outputBinding; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CommandOutputParameterImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandOutputParameterImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandOutputParameterImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional streamable; - - if (__doc.containsKey("streamable")) { - try { - streamable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - streamable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `streamable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - streamable = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - Object type; - try { - type = - LoaderInstances - .typedsl_union_of_CWLType_or_stdout_or_stderr_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional outputBinding; - - if (__doc.containsKey("outputBinding")) { - try { - outputBinding = - LoaderInstances - .optional_CommandOutputBinding - .loadField(__doc.get("outputBinding"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - outputBinding = null; // won't be used but prevents compiler from complaining. - final String __message = "the `outputBinding` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - outputBinding = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.label = (java.util.Optional) label; - this.secondaryFiles = (Object) secondaryFiles; - this.streamable = (java.util.Optional) streamable; - this.doc = (Object) doc; - this.id = (java.util.Optional) id; - this.format = (Object) format; - this.type = (Object) type; - this.outputBinding = (java.util.Optional) outputBinding; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputRecordField.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputRecordField.java deleted file mode 100644 index 9ab4ee44..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputRecordField.java +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputRecordField
This interface is implemented by {@link CommandOutputRecordFieldImpl}
- */ -public interface CommandOutputRecordField extends OutputRecordField, Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - String getName(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - Object getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - Object getFormat(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandOutputRecordField/outputBinding
- *
- * Describes how to generate this output object based on the files - * produced by a CommandLineTool - * *
- */ - - java.util.Optional getOutputBinding(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputRecordFieldImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputRecordFieldImpl.java deleted file mode 100644 index 6d89e08f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputRecordFieldImpl.java +++ /dev/null @@ -1,366 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputRecordField
- */ -public class CommandOutputRecordFieldImpl extends SaveableImpl implements CommandOutputRecordField { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private String name; - - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - public String getName() { - return this.name; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - public Object getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional streamable; - - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - public java.util.Optional getStreamable() { - return this.streamable; - } - - private Object format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - public Object getFormat() { - return this.format; - } - - private java.util.Optional outputBinding; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandOutputRecordField/outputBinding
- *
- * Describes how to generate this output object based on the files - * produced by a CommandLineTool - * *
- */ - - public java.util.Optional getOutputBinding() { - return this.outputBinding; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CommandOutputRecordFieldImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandOutputRecordFieldImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandOutputRecordFieldImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - String name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - if (name == null) { - if (__docRoot != null) { - name = __docRoot; - } else { - throw new ValidationException("Missing name"); - } - } - __baseUri = (String) name; - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object type; - try { - type = - LoaderInstances - .typedsl_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional streamable; - - if (__doc.containsKey("streamable")) { - try { - streamable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - streamable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `streamable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - streamable = null; - } - Object format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - java.util.Optional outputBinding; - - if (__doc.containsKey("outputBinding")) { - try { - outputBinding = - LoaderInstances - .optional_CommandOutputBinding - .loadField(__doc.get("outputBinding"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - outputBinding = null; // won't be used but prevents compiler from complaining. - final String __message = "the `outputBinding` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - outputBinding = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.doc = (Object) doc; - this.name = (String) name; - this.type = (Object) type; - this.label = (java.util.Optional) label; - this.secondaryFiles = (Object) secondaryFiles; - this.streamable = (java.util.Optional) streamable; - this.format = (Object) format; - this.outputBinding = (java.util.Optional) outputBinding; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputRecordSchema.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputRecordSchema.java deleted file mode 100644 index 33e35c28..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputRecordSchema.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputRecordSchema
This interface is implemented by {@link CommandOutputRecordSchemaImpl}
- */ -public interface CommandOutputRecordSchema extends OutputRecordSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - java.util.Optional> getFields(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - Record_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputRecordSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputRecordSchemaImpl.java deleted file mode 100644 index 42513191..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/CommandOutputRecordSchemaImpl.java +++ /dev/null @@ -1,226 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputRecordSchema
- */ -public class CommandOutputRecordSchemaImpl extends SaveableImpl implements CommandOutputRecordSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private java.util.Optional> fields; - - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - public java.util.Optional> getFields() { - return this.fields; - } - - private Record_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - public Record_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of CommandOutputRecordSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandOutputRecordSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandOutputRecordSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - java.util.Optional> fields; - - if (__doc.containsKey("fields")) { - try { - fields = - LoaderInstances - .idmap_fields_optional_array_of_CommandOutputRecordField - .loadField(__doc.get("fields"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - fields = null; // won't be used but prevents compiler from complaining. - final String __message = "the `fields` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - fields = null; - } - Record_name type; - try { - type = - LoaderInstances - .typedsl_Record_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.fields = (java.util.Optional>) fields; - this.type = (Record_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.name = (java.util.Optional) name; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/Directory.java b/src/main/java/org/w3id/cwl/cwl1_1/Directory.java deleted file mode 100644 index 8821684b..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/Directory.java +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#Directory
This interface is implemented by {@link DirectoryImpl}
- Represents a directory to present to a command line tool. - - Directories are represented as objects with `class` of `Directory`. Directory objects have - a number of properties that provide metadata about the directory. - - The `location` property of a Directory is a URI that uniquely identifies - the directory. Implementations must support the file:// URI scheme and may - support other schemes such as http://. Alternately to `location`, - implementations must also accept the `path` property on Directory, which - must be a filesystem path available on the same host as the CWL runner (for - inputs) or the runtime environment of a command line tool execution (for - command line tool outputs). - - A Directory object may have a `listing` field. This is a list of File and - Directory objects that are contained in the Directory. For each entry in - `listing`, the `basename` property defines the name of the File or - Subdirectory when staged to disk. If `listing` is not provided, the - implementation must have some way of fetching the Directory listing at - runtime based on the `location` field. - - If a Directory does not have `location`, it is a Directory literal. A - Directory literal must provide `listing`. Directory literals must be - created on disk at runtime as needed. - - The resources in a Directory literal do not need to have any implied - relationship in their `location`. For example, a Directory listing may - contain two files located on different hosts. It is the responsibility of - the runtime to ensure that those files are staged to disk appropriately. - Secondary files associated with files in `listing` must also be staged to - the same Directory. - - When executing a CommandLineTool, Directories must be recursively staged - first and have local values of `path` assigend. - - Directory objects in CommandLineTool output must provide either a - `location` URI or a `path` property in the context of the tool execution - runtime (local to the compute node, or within the executing container). - - An ExpressionTool may forward file references from input to output by using - the same value for `location`. - - Name conflicts (the same `basename` appearing multiple times in `listing` - or in any entry in `secondaryFiles` in the listing) is a fatal error. -
- */ -public interface Directory extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Directory/class
- *
- * Must be `Directory` to indicate this object describes a Directory. *
- */ - - Directory_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#Directory/location
- *
- * An IRI that identifies the directory resource. This may be a relative - * reference, in which case it must be resolved using the base IRI of the - * document. The location may refer to a local or remote resource. If - * the `listing` field is not set, the implementation must use the - * location IRI to retrieve directory listing. If an implementation is - * unable to retrieve the directory listing stored at a remote resource (due to - * unsupported protocol, access denied, or other issue) it must signal an - * error. - * - * If the `location` field is not provided, the `listing` field must be - * provided. The implementation must assign a unique identifier for - * the `location` field. - * - * If the `path` field is provided but the `location` field is not, an - * implementation may assign the value of the `path` field to `location`, - * then follow the rules above. - * *
- */ - - java.util.Optional getLocation(); - /** - * Getter for property https://w3id.org/cwl/cwl#path
- *
- * The local path where the Directory is made available prior to executing a - * CommandLineTool. This must be set by the implementation. This field - * must not be used in any other context. The command line tool being - * executed must be able to to access the directory at `path` using the POSIX - * `opendir(2)` syscall. - * - * If the `path` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02) - * (`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`, - * ``, ``, and ``) or characters - * [not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml) - * for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452) - * then implementations may terminate the process with a - * `permanentFailure`. - * *
- */ - - java.util.Optional getPath(); - /** - * Getter for property https://w3id.org/cwl/cwl#Directory/basename
- *
- * The base name of the directory, that is, the name of the file without any - * leading directory path. The base name must not contain a slash `/`. - * - * If not provided, the implementation must set this field based on the - * `location` field by taking the final path component after parsing - * `location` as an IRI. If `basename` is provided, it is not required to - * match the value from `location`. - * - * When this file is made available to a CommandLineTool, it must be named - * with `basename`, i.e. the final component of the `path` field must match - * `basename`. - * *
- */ - - java.util.Optional getBasename(); - /** - * Getter for property https://w3id.org/cwl/cwl#listing
- *
- * List of files or subdirectories contained in this directory. The name - * of each file or subdirectory is determined by the `basename` field of - * each `File` or `Directory` object. It is an error if a `File` shares a - * `basename` with any other entry in `listing`. If two or more - * `Directory` object share the same `basename`, this must be treated as - * equivalent to a single subdirectory with the listings recursively - * merged. - * *
- */ - - java.util.Optional> getListing(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/DirectoryImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/DirectoryImpl.java deleted file mode 100644 index 656ec7dd..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/DirectoryImpl.java +++ /dev/null @@ -1,303 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#Directory
- Represents a directory to present to a command line tool. - - Directories are represented as objects with `class` of `Directory`. Directory objects have - a number of properties that provide metadata about the directory. - - The `location` property of a Directory is a URI that uniquely identifies - the directory. Implementations must support the file:// URI scheme and may - support other schemes such as http://. Alternately to `location`, - implementations must also accept the `path` property on Directory, which - must be a filesystem path available on the same host as the CWL runner (for - inputs) or the runtime environment of a command line tool execution (for - command line tool outputs). - - A Directory object may have a `listing` field. This is a list of File and - Directory objects that are contained in the Directory. For each entry in - `listing`, the `basename` property defines the name of the File or - Subdirectory when staged to disk. If `listing` is not provided, the - implementation must have some way of fetching the Directory listing at - runtime based on the `location` field. - - If a Directory does not have `location`, it is a Directory literal. A - Directory literal must provide `listing`. Directory literals must be - created on disk at runtime as needed. - - The resources in a Directory literal do not need to have any implied - relationship in their `location`. For example, a Directory listing may - contain two files located on different hosts. It is the responsibility of - the runtime to ensure that those files are staged to disk appropriately. - Secondary files associated with files in `listing` must also be staged to - the same Directory. - - When executing a CommandLineTool, Directories must be recursively staged - first and have local values of `path` assigend. - - Directory objects in CommandLineTool output must provide either a - `location` URI or a `path` property in the context of the tool execution - runtime (local to the compute node, or within the executing container). - - An ExpressionTool may forward file references from input to output by using - the same value for `location`. - - Name conflicts (the same `basename` appearing multiple times in `listing` - or in any entry in `secondaryFiles` in the listing) is a fatal error. -
- */ -public class DirectoryImpl extends SaveableImpl implements Directory { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private Directory_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#Directory/class
- *
- * Must be `Directory` to indicate this object describes a Directory. *
- */ - - public Directory_class getClass_() { - return this.class_; - } - - private java.util.Optional location; - - /** - * Getter for property https://w3id.org/cwl/cwl#Directory/location
- *
- * An IRI that identifies the directory resource. This may be a relative - * reference, in which case it must be resolved using the base IRI of the - * document. The location may refer to a local or remote resource. If - * the `listing` field is not set, the implementation must use the - * location IRI to retrieve directory listing. If an implementation is - * unable to retrieve the directory listing stored at a remote resource (due to - * unsupported protocol, access denied, or other issue) it must signal an - * error. - * - * If the `location` field is not provided, the `listing` field must be - * provided. The implementation must assign a unique identifier for - * the `location` field. - * - * If the `path` field is provided but the `location` field is not, an - * implementation may assign the value of the `path` field to `location`, - * then follow the rules above. - * *
- */ - - public java.util.Optional getLocation() { - return this.location; - } - - private java.util.Optional path; - - /** - * Getter for property https://w3id.org/cwl/cwl#path
- *
- * The local path where the Directory is made available prior to executing a - * CommandLineTool. This must be set by the implementation. This field - * must not be used in any other context. The command line tool being - * executed must be able to to access the directory at `path` using the POSIX - * `opendir(2)` syscall. - * - * If the `path` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02) - * (`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`, - * ``, ``, and ``) or characters - * [not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml) - * for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452) - * then implementations may terminate the process with a - * `permanentFailure`. - * *
- */ - - public java.util.Optional getPath() { - return this.path; - } - - private java.util.Optional basename; - - /** - * Getter for property https://w3id.org/cwl/cwl#Directory/basename
- *
- * The base name of the directory, that is, the name of the file without any - * leading directory path. The base name must not contain a slash `/`. - * - * If not provided, the implementation must set this field based on the - * `location` field by taking the final path component after parsing - * `location` as an IRI. If `basename` is provided, it is not required to - * match the value from `location`. - * - * When this file is made available to a CommandLineTool, it must be named - * with `basename`, i.e. the final component of the `path` field must match - * `basename`. - * *
- */ - - public java.util.Optional getBasename() { - return this.basename; - } - - private java.util.Optional> listing; - - /** - * Getter for property https://w3id.org/cwl/cwl#listing
- *
- * List of files or subdirectories contained in this directory. The name - * of each file or subdirectory is determined by the `basename` field of - * each `File` or `Directory` object. It is an error if a `File` shares a - * `basename` with any other entry in `listing`. If two or more - * `Directory` object share the same `basename`, this must be treated as - * equivalent to a single subdirectory with the listings recursively - * merged. - * *
- */ - - public java.util.Optional> getListing() { - return this.listing; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of DirectoryImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public DirectoryImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("DirectoryImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - Directory_class class_; - try { - class_ = - LoaderInstances - .uri_Directory_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional location; - - if (__doc.containsKey("location")) { - try { - location = - LoaderInstances - .uri_optional_StringInstance_False_False_None_None - .loadField(__doc.get("location"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - location = null; // won't be used but prevents compiler from complaining. - final String __message = "the `location` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - location = null; - } - java.util.Optional path; - - if (__doc.containsKey("path")) { - try { - path = - LoaderInstances - .uri_optional_StringInstance_False_False_None_None - .loadField(__doc.get("path"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - path = null; // won't be used but prevents compiler from complaining. - final String __message = "the `path` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - path = null; - } - java.util.Optional basename; - - if (__doc.containsKey("basename")) { - try { - basename = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("basename"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - basename = null; // won't be used but prevents compiler from complaining. - final String __message = "the `basename` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - basename = null; - } - java.util.Optional> listing; - - if (__doc.containsKey("listing")) { - try { - listing = - LoaderInstances - .optional_array_of_union_of_File_or_Directory - .loadField(__doc.get("listing"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - listing = null; // won't be used but prevents compiler from complaining. - final String __message = "the `listing` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - listing = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (Directory_class) class_; - this.location = (java.util.Optional) location; - this.path = (java.util.Optional) path; - this.basename = (java.util.Optional) basename; - this.listing = (java.util.Optional>) listing; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/Directory_class.java b/src/main/java/org/w3id/cwl/cwl1_1/Directory_class.java deleted file mode 100644 index 4f1e6a4c..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/Directory_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum Directory_class { - DIRECTORY("Directory"); - - private static String[] symbols = new String[] {"Directory"}; - private String docVal; - - private Directory_class(final String docVal) { - this.docVal = docVal; - } - - public static Directory_class fromDocumentVal(final String docVal) { - for(final Directory_class val : Directory_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", Directory_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/Dirent.java b/src/main/java/org/w3id/cwl/cwl1_1/Dirent.java deleted file mode 100644 index 640d8b4a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/Dirent.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#Dirent
This interface is implemented by {@link DirentImpl}
- Define a file or subdirectory that must be placed in the designated output - directory prior to executing the command line tool. May be the result of - executing an expression, such as building a configuration file from a - template. -
- */ -public interface Dirent extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#entryname
- *
- * The name of the file or subdirectory to create in the output directory. - * If `entry` is a File or Directory, the `entryname` field overrides the value - * of `basename` of the File or Directory object. Optional. - * *
- */ - - Object getEntryname(); - /** - * Getter for property https://w3id.org/cwl/cwl#entry
- *
- * If the value is a string literal or an expression which evaluates to a - * string, a new file must be created with the string as the file contents. - * - * If the value is an expression that evaluates to a `File` object, this - * indicates the referenced file should be added to the designated output - * directory prior to executing the tool. - * - * If the value is an expression that evaluates to a `Dirent` object, this - * indicates that the File or Directory in `entry` should be added to the - * designated output directory with the name in `entryname`. - * - * If `writable` is false, the file may be made available using a bind - * mount or file system link to avoid unnecessary copying of the input - * file. - * *
- */ - - Object getEntry(); - /** - * Getter for property https://w3id.org/cwl/cwl#Dirent/writable
- *
- * If true, the file or directory must be writable by the tool. Changes - * to the file or directory must be isolated and not visible by any other - * CommandLineTool process. This may be implemented by making a copy of - * the original file or directory. Default false (files and directories - * read-only by default). - * - * A directory marked as `writable: true` implies that all files and - * subdirectories are recursively writable as well. - * *
- */ - - java.util.Optional getWritable(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/DirentImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/DirentImpl.java deleted file mode 100644 index 3a0de3ac..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/DirentImpl.java +++ /dev/null @@ -1,182 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#Dirent
- Define a file or subdirectory that must be placed in the designated output - directory prior to executing the command line tool. May be the result of - executing an expression, such as building a configuration file from a - template. -
- */ -public class DirentImpl extends SaveableImpl implements Dirent { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private Object entryname; - - /** - * Getter for property https://w3id.org/cwl/cwl#entryname
- *
- * The name of the file or subdirectory to create in the output directory. - * If `entry` is a File or Directory, the `entryname` field overrides the value - * of `basename` of the File or Directory object. Optional. - * *
- */ - - public Object getEntryname() { - return this.entryname; - } - - private Object entry; - - /** - * Getter for property https://w3id.org/cwl/cwl#entry
- *
- * If the value is a string literal or an expression which evaluates to a - * string, a new file must be created with the string as the file contents. - * - * If the value is an expression that evaluates to a `File` object, this - * indicates the referenced file should be added to the designated output - * directory prior to executing the tool. - * - * If the value is an expression that evaluates to a `Dirent` object, this - * indicates that the File or Directory in `entry` should be added to the - * designated output directory with the name in `entryname`. - * - * If `writable` is false, the file may be made available using a bind - * mount or file system link to avoid unnecessary copying of the input - * file. - * *
- */ - - public Object getEntry() { - return this.entry; - } - - private java.util.Optional writable; - - /** - * Getter for property https://w3id.org/cwl/cwl#Dirent/writable
- *
- * If true, the file or directory must be writable by the tool. Changes - * to the file or directory must be isolated and not visible by any other - * CommandLineTool process. This may be implemented by making a copy of - * the original file or directory. Default false (files and directories - * read-only by default). - * - * A directory marked as `writable: true` implies that all files and - * subdirectories are recursively writable as well. - * *
- */ - - public java.util.Optional getWritable() { - return this.writable; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of DirentImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public DirentImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("DirentImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - Object entryname; - - if (__doc.containsKey("entryname")) { - try { - entryname = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_ExpressionLoader - .loadField(__doc.get("entryname"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - entryname = null; // won't be used but prevents compiler from complaining. - final String __message = "the `entryname` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - entryname = null; - } - Object entry; - try { - entry = - LoaderInstances - .union_of_StringInstance_or_ExpressionLoader - .loadField(__doc.get("entry"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - entry = null; // won't be used but prevents compiler from complaining. - final String __message = "the `entry` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional writable; - - if (__doc.containsKey("writable")) { - try { - writable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("writable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - writable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `writable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - writable = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.entryname = (Object) entryname; - this.entry = (Object) entry; - this.writable = (java.util.Optional) writable; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/DockerRequirement.java b/src/main/java/org/w3id/cwl/cwl1_1/DockerRequirement.java deleted file mode 100644 index e6f728a7..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/DockerRequirement.java +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#DockerRequirement
This interface is implemented by {@link DockerRequirementImpl}
- Indicates that a workflow component should be run in a - [Docker](http://docker.com) or Docker-compatible (such as - [Singularity](https://www.sylabs.io/) and [udocker](https://github.com/indigo-dc/udocker)) container environment and - specifies how to fetch or build the image. - - If a CommandLineTool lists `DockerRequirement` under - `hints` (or `requirements`), it may (or must) be run in the specified Docker - container. - - The platform must first acquire or install the correct Docker image as - specified by `dockerPull`, `dockerImport`, `dockerLoad` or `dockerFile`. - - The platform must execute the tool in the container using `docker run` with - the appropriate Docker image and tool command line. - - The workflow platform may provide input files and the designated output - directory through the use of volume bind mounts. The platform should rewrite - file paths in the input object to correspond to the Docker bind mounted - locations. That is, the platform should rewrite values in the parameter context - such as `runtime.outdir`, `runtime.tmpdir` and others to be valid paths - within the container. The platform must ensure that `runtime.outdir` and - `runtime.tmpdir` are distinct directories. - - When running a tool contained in Docker, the workflow platform must not - assume anything about the contents of the Docker container, such as the - presence or absence of specific software, except to assume that the - generated command line represents a valid command within the runtime - environment of the container. - - A container image may specify an - [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) - and/or - [CMD](https://docs.docker.com/engine/reference/builder/#cmd). - Command line arguments will be appended after all elements of - ENTRYPOINT, and will override all elements specified using CMD (in - other words, CMD is only used when the CommandLineTool definition - produces an empty command line). - - Use of implicit ENTRYPOINT or CMD are discouraged due to reproducibility - concerns of the implicit hidden execution point (For further discussion, see - [https://doi.org/10.12688/f1000research.15140.1](https://doi.org/10.12688/f1000research.15140.1)). Portable - CommandLineTool wrappers in which use of a container is optional must not rely on ENTRYPOINT or CMD. - CommandLineTools which do rely on ENTRYPOINT or CMD must list `DockerRequirement` in the - `requirements` section. - - ## Interaction with other requirements - - If [EnvVarRequirement](#EnvVarRequirement) is specified alongside a - DockerRequirement, the environment variables must be provided to Docker - using `--env` or `--env-file` and interact with the container's preexisting - environment as defined by Docker. -
- */ -public interface DockerRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/class
- *
- * Always 'DockerRequirement' *
- */ - - DockerRequirement_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerPull
- *
- * Specify a Docker image to retrieve using `docker pull`. Can contain the - * immutable digest to ensure an exact container is used: - * `dockerPull: ubuntu@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2` - * *
- */ - - java.util.Optional getDockerPull(); - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerLoad
- *
- * Specify a HTTP URL from which to download a Docker image using `docker load`. *
- */ - - java.util.Optional getDockerLoad(); - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerFile
- *
- * Supply the contents of a Dockerfile which will be built using `docker build`. *
- */ - - java.util.Optional getDockerFile(); - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerImport
- *
- * Provide HTTP URL to download and gunzip a Docker images using `docker import. *
- */ - - java.util.Optional getDockerImport(); - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerImageId
- *
- * The image id that will be used for `docker run`. May be a - * human-readable image name or the image identifier hash. May be skipped - * if `dockerPull` is specified, in which case the `dockerPull` image id - * must be used. - * *
- */ - - java.util.Optional getDockerImageId(); - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerOutputDirectory
- *
- * Set the designated output directory to a specific location inside the - * Docker container. - * *
- */ - - java.util.Optional getDockerOutputDirectory(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/DockerRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/DockerRequirementImpl.java deleted file mode 100644 index ab580145..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/DockerRequirementImpl.java +++ /dev/null @@ -1,333 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#DockerRequirement
- Indicates that a workflow component should be run in a - [Docker](http://docker.com) or Docker-compatible (such as - [Singularity](https://www.sylabs.io/) and [udocker](https://github.com/indigo-dc/udocker)) container environment and - specifies how to fetch or build the image. - - If a CommandLineTool lists `DockerRequirement` under - `hints` (or `requirements`), it may (or must) be run in the specified Docker - container. - - The platform must first acquire or install the correct Docker image as - specified by `dockerPull`, `dockerImport`, `dockerLoad` or `dockerFile`. - - The platform must execute the tool in the container using `docker run` with - the appropriate Docker image and tool command line. - - The workflow platform may provide input files and the designated output - directory through the use of volume bind mounts. The platform should rewrite - file paths in the input object to correspond to the Docker bind mounted - locations. That is, the platform should rewrite values in the parameter context - such as `runtime.outdir`, `runtime.tmpdir` and others to be valid paths - within the container. The platform must ensure that `runtime.outdir` and - `runtime.tmpdir` are distinct directories. - - When running a tool contained in Docker, the workflow platform must not - assume anything about the contents of the Docker container, such as the - presence or absence of specific software, except to assume that the - generated command line represents a valid command within the runtime - environment of the container. - - A container image may specify an - [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) - and/or - [CMD](https://docs.docker.com/engine/reference/builder/#cmd). - Command line arguments will be appended after all elements of - ENTRYPOINT, and will override all elements specified using CMD (in - other words, CMD is only used when the CommandLineTool definition - produces an empty command line). - - Use of implicit ENTRYPOINT or CMD are discouraged due to reproducibility - concerns of the implicit hidden execution point (For further discussion, see - [https://doi.org/10.12688/f1000research.15140.1](https://doi.org/10.12688/f1000research.15140.1)). Portable - CommandLineTool wrappers in which use of a container is optional must not rely on ENTRYPOINT or CMD. - CommandLineTools which do rely on ENTRYPOINT or CMD must list `DockerRequirement` in the - `requirements` section. - - ## Interaction with other requirements - - If [EnvVarRequirement](#EnvVarRequirement) is specified alongside a - DockerRequirement, the environment variables must be provided to Docker - using `--env` or `--env-file` and interact with the container's preexisting - environment as defined by Docker. -
- */ -public class DockerRequirementImpl extends SaveableImpl implements DockerRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private DockerRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/class
- *
- * Always 'DockerRequirement' *
- */ - - public DockerRequirement_class getClass_() { - return this.class_; - } - - private java.util.Optional dockerPull; - - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerPull
- *
- * Specify a Docker image to retrieve using `docker pull`. Can contain the - * immutable digest to ensure an exact container is used: - * `dockerPull: ubuntu@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2` - * *
- */ - - public java.util.Optional getDockerPull() { - return this.dockerPull; - } - - private java.util.Optional dockerLoad; - - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerLoad
- *
- * Specify a HTTP URL from which to download a Docker image using `docker load`. *
- */ - - public java.util.Optional getDockerLoad() { - return this.dockerLoad; - } - - private java.util.Optional dockerFile; - - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerFile
- *
- * Supply the contents of a Dockerfile which will be built using `docker build`. *
- */ - - public java.util.Optional getDockerFile() { - return this.dockerFile; - } - - private java.util.Optional dockerImport; - - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerImport
- *
- * Provide HTTP URL to download and gunzip a Docker images using `docker import. *
- */ - - public java.util.Optional getDockerImport() { - return this.dockerImport; - } - - private java.util.Optional dockerImageId; - - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerImageId
- *
- * The image id that will be used for `docker run`. May be a - * human-readable image name or the image identifier hash. May be skipped - * if `dockerPull` is specified, in which case the `dockerPull` image id - * must be used. - * *
- */ - - public java.util.Optional getDockerImageId() { - return this.dockerImageId; - } - - private java.util.Optional dockerOutputDirectory; - - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerOutputDirectory
- *
- * Set the designated output directory to a specific location inside the - * Docker container. - * *
- */ - - public java.util.Optional getDockerOutputDirectory() { - return this.dockerOutputDirectory; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of DockerRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public DockerRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("DockerRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - DockerRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_DockerRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional dockerPull; - - if (__doc.containsKey("dockerPull")) { - try { - dockerPull = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("dockerPull"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - dockerPull = null; // won't be used but prevents compiler from complaining. - final String __message = "the `dockerPull` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - dockerPull = null; - } - java.util.Optional dockerLoad; - - if (__doc.containsKey("dockerLoad")) { - try { - dockerLoad = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("dockerLoad"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - dockerLoad = null; // won't be used but prevents compiler from complaining. - final String __message = "the `dockerLoad` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - dockerLoad = null; - } - java.util.Optional dockerFile; - - if (__doc.containsKey("dockerFile")) { - try { - dockerFile = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("dockerFile"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - dockerFile = null; // won't be used but prevents compiler from complaining. - final String __message = "the `dockerFile` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - dockerFile = null; - } - java.util.Optional dockerImport; - - if (__doc.containsKey("dockerImport")) { - try { - dockerImport = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("dockerImport"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - dockerImport = null; // won't be used but prevents compiler from complaining. - final String __message = "the `dockerImport` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - dockerImport = null; - } - java.util.Optional dockerImageId; - - if (__doc.containsKey("dockerImageId")) { - try { - dockerImageId = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("dockerImageId"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - dockerImageId = null; // won't be used but prevents compiler from complaining. - final String __message = "the `dockerImageId` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - dockerImageId = null; - } - java.util.Optional dockerOutputDirectory; - - if (__doc.containsKey("dockerOutputDirectory")) { - try { - dockerOutputDirectory = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("dockerOutputDirectory"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - dockerOutputDirectory = null; // won't be used but prevents compiler from complaining. - final String __message = "the `dockerOutputDirectory` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - dockerOutputDirectory = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (DockerRequirement_class) class_; - this.dockerPull = (java.util.Optional) dockerPull; - this.dockerLoad = (java.util.Optional) dockerLoad; - this.dockerFile = (java.util.Optional) dockerFile; - this.dockerImport = (java.util.Optional) dockerImport; - this.dockerImageId = (java.util.Optional) dockerImageId; - this.dockerOutputDirectory = (java.util.Optional) dockerOutputDirectory; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/DockerRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_1/DockerRequirement_class.java deleted file mode 100644 index 2e9aa9ab..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/DockerRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum DockerRequirement_class { - DOCKERREQUIREMENT("DockerRequirement"); - - private static String[] symbols = new String[] {"DockerRequirement"}; - private String docVal; - - private DockerRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static DockerRequirement_class fromDocumentVal(final String docVal) { - for(final DockerRequirement_class val : DockerRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", DockerRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/Documented.java b/src/main/java/org/w3id/cwl/cwl1_1/Documented.java deleted file mode 100644 index bb9ed45a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/Documented.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/salad#Documented
- */ -public interface Documented extends Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/EnumSchema.java b/src/main/java/org/w3id/cwl/cwl1_1/EnumSchema.java deleted file mode 100644 index d75bda5c..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/EnumSchema.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/salad#EnumSchema
This interface is implemented by {@link EnumSchemaImpl}
- Define an enumerated type. -
- */ -public interface EnumSchema extends Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#EnumSchema/name
- - */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - java.util.List getSymbols(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - Enum_name getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/EnumSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/EnumSchemaImpl.java deleted file mode 100644 index 33725ea3..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/EnumSchemaImpl.java +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/salad#EnumSchema
- Define an enumerated type. -
- */ -public class EnumSchemaImpl extends SaveableImpl implements EnumSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/salad#EnumSchema/name
- - */ - - public java.util.Optional getName() { - return this.name; - } - - private java.util.List symbols; - - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - public java.util.List getSymbols() { - return this.symbols; - } - - private Enum_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - public Enum_name getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of EnumSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public EnumSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("EnumSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - java.util.List symbols; - try { - symbols = - LoaderInstances - .uri_array_of_StringInstance_True_False_None_None - .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - symbols = null; // won't be used but prevents compiler from complaining. - final String __message = "the `symbols` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Enum_name type; - try { - type = - LoaderInstances - .typedsl_Enum_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.name = (java.util.Optional) name; - this.symbols = (java.util.List) symbols; - this.type = (Enum_name) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/Enum_name.java b/src/main/java/org/w3id/cwl/cwl1_1/Enum_name.java deleted file mode 100644 index 8d9877cb..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/Enum_name.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum Enum_name { - ENUM("enum"); - - private static String[] symbols = new String[] {"enum"}; - private String docVal; - - private Enum_name(final String docVal) { - this.docVal = docVal; - } - - public static Enum_name fromDocumentVal(final String docVal) { - for(final Enum_name val : Enum_name.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", Enum_name.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/EnvVarRequirement.java b/src/main/java/org/w3id/cwl/cwl1_1/EnvVarRequirement.java deleted file mode 100644 index 6363339e..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/EnvVarRequirement.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#EnvVarRequirement
This interface is implemented by {@link EnvVarRequirementImpl}
- Define a list of environment variables which will be set in the - execution environment of the tool. See `EnvironmentDef` for details. -
- */ -public interface EnvVarRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#EnvVarRequirement/class
- *
- * Always 'EnvVarRequirement' *
- */ - - EnvVarRequirement_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#EnvVarRequirement/envDef
- *
- * The list of environment variables. *
- */ - - java.util.List getEnvDef(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/EnvVarRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/EnvVarRequirementImpl.java deleted file mode 100644 index 3fd486e9..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/EnvVarRequirementImpl.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#EnvVarRequirement
- Define a list of environment variables which will be set in the - execution environment of the tool. See `EnvironmentDef` for details. -
- */ -public class EnvVarRequirementImpl extends SaveableImpl implements EnvVarRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private EnvVarRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#EnvVarRequirement/class
- *
- * Always 'EnvVarRequirement' *
- */ - - public EnvVarRequirement_class getClass_() { - return this.class_; - } - - private java.util.List envDef; - - /** - * Getter for property https://w3id.org/cwl/cwl#EnvVarRequirement/envDef
- *
- * The list of environment variables. *
- */ - - public java.util.List getEnvDef() { - return this.envDef; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of EnvVarRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public EnvVarRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("EnvVarRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - EnvVarRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_EnvVarRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.List envDef; - try { - envDef = - LoaderInstances - .idmap_envDef_array_of_EnvironmentDef - .loadField(__doc.get("envDef"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - envDef = null; // won't be used but prevents compiler from complaining. - final String __message = "the `envDef` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (EnvVarRequirement_class) class_; - this.envDef = (java.util.List) envDef; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/EnvVarRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_1/EnvVarRequirement_class.java deleted file mode 100644 index 03dabd31..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/EnvVarRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum EnvVarRequirement_class { - ENVVARREQUIREMENT("EnvVarRequirement"); - - private static String[] symbols = new String[] {"EnvVarRequirement"}; - private String docVal; - - private EnvVarRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static EnvVarRequirement_class fromDocumentVal(final String docVal) { - for(final EnvVarRequirement_class val : EnvVarRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", EnvVarRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/EnvironmentDef.java b/src/main/java/org/w3id/cwl/cwl1_1/EnvironmentDef.java deleted file mode 100644 index 9c3e8c5a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/EnvironmentDef.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#EnvironmentDef
This interface is implemented by {@link EnvironmentDefImpl}
- Define an environment variable that will be set in the runtime environment - by the workflow platform when executing the command line tool. May be the - result of executing an expression, such as getting a parameter from input. -
- */ -public interface EnvironmentDef extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#EnvironmentDef/envName
- *
- * The environment variable name *
- */ - - String getEnvName(); - /** - * Getter for property https://w3id.org/cwl/cwl#EnvironmentDef/envValue
- *
- * The environment variable value *
- */ - - Object getEnvValue(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/EnvironmentDefImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/EnvironmentDefImpl.java deleted file mode 100644 index f02aa908..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/EnvironmentDefImpl.java +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#EnvironmentDef
- Define an environment variable that will be set in the runtime environment - by the workflow platform when executing the command line tool. May be the - result of executing an expression, such as getting a parameter from input. -
- */ -public class EnvironmentDefImpl extends SaveableImpl implements EnvironmentDef { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private String envName; - - /** - * Getter for property https://w3id.org/cwl/cwl#EnvironmentDef/envName
- *
- * The environment variable name *
- */ - - public String getEnvName() { - return this.envName; - } - - private Object envValue; - - /** - * Getter for property https://w3id.org/cwl/cwl#EnvironmentDef/envValue
- *
- * The environment variable value *
- */ - - public Object getEnvValue() { - return this.envValue; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of EnvironmentDefImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public EnvironmentDefImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("EnvironmentDefImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - String envName; - try { - envName = - LoaderInstances - .StringInstance - .loadField(__doc.get("envName"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - envName = null; // won't be used but prevents compiler from complaining. - final String __message = "the `envName` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Object envValue; - try { - envValue = - LoaderInstances - .union_of_StringInstance_or_ExpressionLoader - .loadField(__doc.get("envValue"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - envValue = null; // won't be used but prevents compiler from complaining. - final String __message = "the `envValue` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.envName = (String) envName; - this.envValue = (Object) envValue; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/Expression.java b/src/main/java/org/w3id/cwl/cwl1_1/Expression.java deleted file mode 100644 index 41d11132..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/Expression.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum Expression { - EXPRESSIONPLACEHOLDER("ExpressionPlaceholder"); - - private static String[] symbols = new String[] {"ExpressionPlaceholder"}; - private String docVal; - - private Expression(final String docVal) { - this.docVal = docVal; - } - - public static Expression fromDocumentVal(final String docVal) { - for(final Expression val : Expression.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", Expression.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ExpressionTool.java b/src/main/java/org/w3id/cwl/cwl1_1/ExpressionTool.java deleted file mode 100644 index 4ecb7557..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ExpressionTool.java +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#ExpressionTool
This interface is implemented by {@link ExpressionToolImpl}
- An ExpressionTool is a type of Process object that can be run by itself - or as a Workflow step. It executes a pure Javascript expression that has - access to the same input parameters as a workflow. It is meant to be used - sparingly as a way to isolate complex Javascript expressions that need to - operate on input data and produce some result; perhaps just a - rearrangement of the inputs. No Docker software container is required - or allowed. -
- */ -public interface ExpressionTool extends Process, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#ExpressionTool/class
- - */ - - ExpressionTool_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#inputs
- *
- * Defines the input parameters of the process. The process is ready to - * run when all required input parameters are associated with concrete - * values. Input parameters include a schema for each parameter which is - * used to validate the input object. It may also be used to build a user - * interface for constructing the input object. - * - * When accepting an input object, all input parameters must have a value. - * If an input parameter is missing from the input object, it must be - * assigned a value of `null` (or the value of `default` for that - * parameter, if provided) for the purposes of validation and evaluation - * of expressions. - * *
- */ - - java.util.List getInputs(); - /** - * Getter for property https://w3id.org/cwl/cwl#outputs
- *
- * Defines the parameters representing the output of the process. May be - * used to generate and/or validate the output object. - * *
- */ - - java.util.List getOutputs(); - /** - * Getter for property https://w3id.org/cwl/cwl#requirements
- *
- * Declares requirements that apply to either the runtime environment or the - * workflow engine that must be met in order to execute this process. If - * an implementation cannot satisfy all requirements, or a requirement is - * listed which is not recognized by the implementation, it is a fatal - * error and the implementation must not attempt to run the process, - * unless overridden at user option. - * *
- */ - - java.util.Optional> getRequirements(); - /** - * Getter for property https://w3id.org/cwl/cwl#hints
- *
- * Declares hints applying to either the runtime environment or the - * workflow engine that may be helpful in executing this process. It is - * not an error if an implementation cannot satisfy all hints, however - * the implementation may report a warning. - * *
- */ - - java.util.Optional> getHints(); - /** - * Getter for property https://w3id.org/cwl/cwl#cwlVersion
- *
- * CWL document version. Always required at the document root. Not - * required for a Process embedded inside another Process. - * *
- */ - - java.util.Optional getCwlVersion(); - /** - * Getter for property https://w3id.org/cwl/cwl#ExpressionTool/expression
- *
- * The expression to execute. The expression must return a JSON object which - * matches the output parameters of the ExpressionTool. - * *
- */ - - String getExpression(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ExpressionToolImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/ExpressionToolImpl.java deleted file mode 100644 index 20c6d35b..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ExpressionToolImpl.java +++ /dev/null @@ -1,392 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#ExpressionTool
- An ExpressionTool is a type of Process object that can be run by itself - or as a Workflow step. It executes a pure Javascript expression that has - access to the same input parameters as a workflow. It is meant to be used - sparingly as a way to isolate complex Javascript expressions that need to - operate on input data and produce some result; perhaps just a - rearrangement of the inputs. No Docker software container is required - or allowed. -
- */ -public class ExpressionToolImpl extends SaveableImpl implements ExpressionTool { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private ExpressionTool_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#ExpressionTool/class
- - */ - - public ExpressionTool_class getClass_() { - return this.class_; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private java.util.List inputs; - - /** - * Getter for property https://w3id.org/cwl/cwl#inputs
- *
- * Defines the input parameters of the process. The process is ready to - * run when all required input parameters are associated with concrete - * values. Input parameters include a schema for each parameter which is - * used to validate the input object. It may also be used to build a user - * interface for constructing the input object. - * - * When accepting an input object, all input parameters must have a value. - * If an input parameter is missing from the input object, it must be - * assigned a value of `null` (or the value of `default` for that - * parameter, if provided) for the purposes of validation and evaluation - * of expressions. - * *
- */ - - public java.util.List getInputs() { - return this.inputs; - } - - private java.util.List outputs; - - /** - * Getter for property https://w3id.org/cwl/cwl#outputs
- *
- * Defines the parameters representing the output of the process. May be - * used to generate and/or validate the output object. - * *
- */ - - public java.util.List getOutputs() { - return this.outputs; - } - - private java.util.Optional> requirements; - - /** - * Getter for property https://w3id.org/cwl/cwl#requirements
- *
- * Declares requirements that apply to either the runtime environment or the - * workflow engine that must be met in order to execute this process. If - * an implementation cannot satisfy all requirements, or a requirement is - * listed which is not recognized by the implementation, it is a fatal - * error and the implementation must not attempt to run the process, - * unless overridden at user option. - * *
- */ - - public java.util.Optional> getRequirements() { - return this.requirements; - } - - private java.util.Optional> hints; - - /** - * Getter for property https://w3id.org/cwl/cwl#hints
- *
- * Declares hints applying to either the runtime environment or the - * workflow engine that may be helpful in executing this process. It is - * not an error if an implementation cannot satisfy all hints, however - * the implementation may report a warning. - * *
- */ - - public java.util.Optional> getHints() { - return this.hints; - } - - private java.util.Optional cwlVersion; - - /** - * Getter for property https://w3id.org/cwl/cwl#cwlVersion
- *
- * CWL document version. Always required at the document root. Not - * required for a Process embedded inside another Process. - * *
- */ - - public java.util.Optional getCwlVersion() { - return this.cwlVersion; - } - - private String expression; - - /** - * Getter for property https://w3id.org/cwl/cwl#ExpressionTool/expression
- *
- * The expression to execute. The expression must return a JSON object which - * matches the output parameters of the ExpressionTool. - * *
- */ - - public String getExpression() { - return this.expression; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of ExpressionToolImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public ExpressionToolImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("ExpressionToolImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - ExpressionTool_class class_; - try { - class_ = - LoaderInstances - .uri_ExpressionTool_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - java.util.List inputs; - try { - inputs = - LoaderInstances - .idmap_inputs_array_of_WorkflowInputParameter - .loadField(__doc.get("inputs"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputs = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputs` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.List outputs; - try { - outputs = - LoaderInstances - .idmap_outputs_array_of_ExpressionToolOutputParameter - .loadField(__doc.get("outputs"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - outputs = null; // won't be used but prevents compiler from complaining. - final String __message = "the `outputs` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional> requirements; - - if (__doc.containsKey("requirements")) { - try { - requirements = - LoaderInstances - .idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement - .loadField(__doc.get("requirements"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - requirements = null; // won't be used but prevents compiler from complaining. - final String __message = "the `requirements` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - requirements = null; - } - java.util.Optional> hints; - - if (__doc.containsKey("hints")) { - try { - hints = - LoaderInstances - .idmap_hints_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance - .loadField(__doc.get("hints"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - hints = null; // won't be used but prevents compiler from complaining. - final String __message = "the `hints` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - hints = null; - } - java.util.Optional cwlVersion; - - if (__doc.containsKey("cwlVersion")) { - try { - cwlVersion = - LoaderInstances - .uri_optional_CWLVersion_False_True_None_None - .loadField(__doc.get("cwlVersion"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - cwlVersion = null; // won't be used but prevents compiler from complaining. - final String __message = "the `cwlVersion` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - cwlVersion = null; - } - String expression; - try { - expression = - LoaderInstances - .ExpressionLoader - .loadField(__doc.get("expression"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - expression = null; // won't be used but prevents compiler from complaining. - final String __message = "the `expression` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.id = (java.util.Optional) id; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.inputs = (java.util.List) inputs; - this.outputs = (java.util.List) outputs; - this.requirements = (java.util.Optional>) requirements; - this.hints = (java.util.Optional>) hints; - this.cwlVersion = (java.util.Optional) cwlVersion; - this.class_ = (ExpressionTool_class) class_; - this.expression = (String) expression; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ExpressionToolOutputParameter.java b/src/main/java/org/w3id/cwl/cwl1_1/ExpressionToolOutputParameter.java deleted file mode 100644 index ebb26e58..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ExpressionToolOutputParameter.java +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#ExpressionToolOutputParameter
This interface is implemented by {@link ExpressionToolOutputParameterImpl}
- */ -public interface ExpressionToolOutputParameter extends OutputParameter, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - Object getFormat(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * *
- */ - - Object getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ExpressionToolOutputParameterImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/ExpressionToolOutputParameterImpl.java deleted file mode 100644 index 6b2229fa..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ExpressionToolOutputParameterImpl.java +++ /dev/null @@ -1,338 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#ExpressionToolOutputParameter
- */ -public class ExpressionToolOutputParameterImpl extends SaveableImpl implements ExpressionToolOutputParameter { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional streamable; - - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - public java.util.Optional getStreamable() { - return this.streamable; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - public Object getFormat() { - return this.format; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * *
- */ - - public Object getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of ExpressionToolOutputParameterImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public ExpressionToolOutputParameterImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("ExpressionToolOutputParameterImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional streamable; - - if (__doc.containsKey("streamable")) { - try { - streamable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - streamable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `streamable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - streamable = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - Object type; - try { - type = - LoaderInstances - .typedsl_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.label = (java.util.Optional) label; - this.secondaryFiles = (Object) secondaryFiles; - this.streamable = (java.util.Optional) streamable; - this.doc = (Object) doc; - this.id = (java.util.Optional) id; - this.format = (Object) format; - this.type = (Object) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ExpressionTool_class.java b/src/main/java/org/w3id/cwl/cwl1_1/ExpressionTool_class.java deleted file mode 100644 index c51dcbea..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ExpressionTool_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum ExpressionTool_class { - EXPRESSIONTOOL("ExpressionTool"); - - private static String[] symbols = new String[] {"ExpressionTool"}; - private String docVal; - - private ExpressionTool_class(final String docVal) { - this.docVal = docVal; - } - - public static ExpressionTool_class fromDocumentVal(final String docVal) { - for(final ExpressionTool_class val : ExpressionTool_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", ExpressionTool_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/FieldBase.java b/src/main/java/org/w3id/cwl/cwl1_1/FieldBase.java deleted file mode 100644 index 743479e2..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/FieldBase.java +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#FieldBase
- */ -public interface FieldBase extends Labeled, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/File.java b/src/main/java/org/w3id/cwl/cwl1_1/File.java deleted file mode 100644 index 843c95c4..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/File.java +++ /dev/null @@ -1,273 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#File
This interface is implemented by {@link FileImpl}
- Represents a file (or group of files when `secondaryFiles` is provided) that - will be accessible by tools using standard POSIX file system call API such as - open(2) and read(2). - - Files are represented as objects with `class` of `File`. File objects have - a number of properties that provide metadata about the file. - - The `location` property of a File is a URI that uniquely identifies the - file. Implementations must support the file:// URI scheme and may support - other schemes such as http://. The value of `location` may also be a - relative reference, in which case it must be resolved relative to the URI - of the document it appears in. Alternately to `location`, implementations - must also accept the `path` property on File, which must be a filesystem - path available on the same host as the CWL runner (for inputs) or the - runtime environment of a command line tool execution (for command line tool - outputs). - - If no `location` or `path` is specified, a file object must specify - `contents` with the UTF-8 text content of the file. This is a "file - literal". File literals do not correspond to external resources, but are - created on disk with `contents` with when needed for a executing a tool. - Where appropriate, expressions can return file literals to define new files - on a runtime. The maximum size of `contents` is 64 kilobytes. - - The `basename` property defines the filename on disk where the file is - staged. This may differ from the resource name. If not provided, - `basename` must be computed from the last path part of `location` and made - available to expressions. - - The `secondaryFiles` property is a list of File or Directory objects that - must be staged in the same directory as the primary file. It is an error - for file names to be duplicated in `secondaryFiles`. - - The `size` property is the size in bytes of the File. It must be computed - from the resource and made available to expressions. The `checksum` field - contains a cryptographic hash of the file content for use it verifying file - contents. Implementations may, at user option, enable or disable - computation of the `checksum` field for performance or other reasons. - However, the ability to compute output checksums is required to pass the - CWL conformance test suite. - - When executing a CommandLineTool, the files and secondary files may be - staged to an arbitrary directory, but must use the value of `basename` for - the filename. The `path` property must be file path in the context of the - tool execution runtime (local to the compute node, or within the executing - container). All computed properties should be available to expressions. - File literals also must be staged and `path` must be set. - - When collecting CommandLineTool outputs, `glob` matching returns file paths - (with the `path` property) and the derived properties. This can all be - modified by `outputEval`. Alternately, if the file `cwl.output.json` is - present in the output, `outputBinding` is ignored. - - File objects in the output must provide either a `location` URI or a `path` - property in the context of the tool execution runtime (local to the compute - node, or within the executing container). - - When evaluating an ExpressionTool, file objects must be referenced via - `location` (the expression tool does not have access to files on disk so - `path` is meaningless) or as file literals. It is legal to return a file - object with an existing `location` but a different `basename`. The - `loadContents` field of ExpressionTool inputs behaves the same as on - CommandLineTool inputs, however it is not meaningful on the outputs. - - An ExpressionTool may forward file references from input to output by using - the same value for `location`. -
- */ -public interface File extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#File/class
- *
- * Must be `File` to indicate this object describes a file. *
- */ - - File_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#File/location
- *
- * An IRI that identifies the file resource. This may be a relative - * reference, in which case it must be resolved using the base IRI of the - * document. The location may refer to a local or remote resource; the - * implementation must use the IRI to retrieve file content. If an - * implementation is unable to retrieve the file content stored at a - * remote resource (due to unsupported protocol, access denied, or other - * issue) it must signal an error. - * - * If the `location` field is not provided, the `contents` field must be - * provided. The implementation must assign a unique identifier for - * the `location` field. - * - * If the `path` field is provided but the `location` field is not, an - * implementation may assign the value of the `path` field to `location`, - * then follow the rules above. - * *
- */ - - java.util.Optional getLocation(); - /** - * Getter for property https://w3id.org/cwl/cwl#path
- *
- * The local host path where the File is available when a CommandLineTool is - * executed. This field must be set by the implementation. The final - * path component must match the value of `basename`. This field - * must not be used in any other context. The command line tool being - * executed must be able to to access the file at `path` using the POSIX - * `open(2)` syscall. - * - * As a special case, if the `path` field is provided but the `location` - * field is not, an implementation may assign the value of the `path` - * field to `location`, and remove the `path` field. - * - * If the `path` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02) - * (`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`, - * ``, ``, and ``) or characters - * [not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml) - * for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452) - * then implementations may terminate the process with a - * `permanentFailure`. - * *
- */ - - java.util.Optional getPath(); - /** - * Getter for property https://w3id.org/cwl/cwl#File/basename
- *
- * The base name of the file, that is, the name of the file without any - * leading directory path. The base name must not contain a slash `/`. - * - * If not provided, the implementation must set this field based on the - * `location` field by taking the final path component after parsing - * `location` as an IRI. If `basename` is provided, it is not required to - * match the value from `location`. - * - * When this file is made available to a CommandLineTool, it must be named - * with `basename`, i.e. the final component of the `path` field must match - * `basename`. - * *
- */ - - java.util.Optional getBasename(); - /** - * Getter for property https://w3id.org/cwl/cwl#File/dirname
- *
- * The name of the directory containing file, that is, the path leading up - * to the final slash in the path such that `dirname + '/' + basename == - * path`. - * - * The implementation must set this field based on the value of `path` - * prior to evaluating parameter references or expressions in a - * CommandLineTool document. This field must not be used in any other - * context. - * *
- */ - - java.util.Optional getDirname(); - /** - * Getter for property https://w3id.org/cwl/cwl#File/nameroot
- *
- * The basename root such that `nameroot + nameext == basename`, and - * `nameext` is empty or begins with a period and contains at most one - * period. For the purposess of path splitting leading periods on the - * basename are ignored; a basename of `.cshrc` will have a nameroot of - * `.cshrc`. - * - * The implementation must set this field automatically based on the value - * of `basename` prior to evaluating parameter references or expressions. - * *
- */ - - java.util.Optional getNameroot(); - /** - * Getter for property https://w3id.org/cwl/cwl#File/nameext
- *
- * The basename extension such that `nameroot + nameext == basename`, and - * `nameext` is empty or begins with a period and contains at most one - * period. Leading periods on the basename are ignored; a basename of - * `.cshrc` will have an empty `nameext`. - * - * The implementation must set this field automatically based on the value - * of `basename` prior to evaluating parameter references or expressions. - * *
- */ - - java.util.Optional getNameext(); - /** - * Getter for property https://w3id.org/cwl/cwl#File/checksum
- *
- * Optional hash code for validating file integrity. Currently must be in the form - * "sha1$ + hexadecimal string" using the SHA-1 algorithm. - * *
- */ - - java.util.Optional getChecksum(); - /** - * Getter for property https://w3id.org/cwl/cwl#File/size
- *
- * Optional file size *
- */ - - Object getSize(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * A list of additional files or directories that are associated with the - * primary file and must be transferred alongside the primary file. - * Examples include indexes of the primary file, or external references - * which must be included when loading primary document. A file object - * listed in `secondaryFiles` may itself include `secondaryFiles` for - * which the same rules apply. - * *
- */ - - java.util.Optional> getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * The format of the file: this must be an IRI of a concept node that - * represents the file format, preferrably defined within an ontology. - * If no ontology is available, file formats may be tested by exact match. - * - * Reasoning about format compatability must be done by checking that an - * input file format is the same, `owl:equivalentClass` or - * `rdfs:subClassOf` the format required by the input parameter. - * `owl:equivalentClass` is transitive with `rdfs:subClassOf`, e.g. if - * ` owl:equivalentClass ` and ` owl:subclassOf ` then infer - * ` owl:subclassOf `. - * - * File format ontologies may be provided in the "$schemas" metadata at the - * root of the document. If no ontologies are specified in `$schemas`, the - * runtime may perform exact file format matches. - * *
- */ - - java.util.Optional getFormat(); - /** - * Getter for property https://w3id.org/cwl/cwl#File/contents
- *
- * File contents literal. Maximum of 64 KiB. - * - * If neither `location` nor `path` is provided, `contents` must be - * non-null. The implementation must assign a unique identifier for the - * `location` field. When the file is staged as input to CommandLineTool, - * the value of `contents` must be written to a file. - * - * If `loadContents` of `inputBinding` or `outputBinding` is true and - * `location` is valid, the implementation must read up to the first 64 - * KiB of text from the file and place it in the "contents" field. - * *
- */ - - java.util.Optional getContents(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/FileImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/FileImpl.java deleted file mode 100644 index 3fab9407..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/FileImpl.java +++ /dev/null @@ -1,588 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#File
- Represents a file (or group of files when `secondaryFiles` is provided) that - will be accessible by tools using standard POSIX file system call API such as - open(2) and read(2). - - Files are represented as objects with `class` of `File`. File objects have - a number of properties that provide metadata about the file. - - The `location` property of a File is a URI that uniquely identifies the - file. Implementations must support the file:// URI scheme and may support - other schemes such as http://. The value of `location` may also be a - relative reference, in which case it must be resolved relative to the URI - of the document it appears in. Alternately to `location`, implementations - must also accept the `path` property on File, which must be a filesystem - path available on the same host as the CWL runner (for inputs) or the - runtime environment of a command line tool execution (for command line tool - outputs). - - If no `location` or `path` is specified, a file object must specify - `contents` with the UTF-8 text content of the file. This is a "file - literal". File literals do not correspond to external resources, but are - created on disk with `contents` with when needed for a executing a tool. - Where appropriate, expressions can return file literals to define new files - on a runtime. The maximum size of `contents` is 64 kilobytes. - - The `basename` property defines the filename on disk where the file is - staged. This may differ from the resource name. If not provided, - `basename` must be computed from the last path part of `location` and made - available to expressions. - - The `secondaryFiles` property is a list of File or Directory objects that - must be staged in the same directory as the primary file. It is an error - for file names to be duplicated in `secondaryFiles`. - - The `size` property is the size in bytes of the File. It must be computed - from the resource and made available to expressions. The `checksum` field - contains a cryptographic hash of the file content for use it verifying file - contents. Implementations may, at user option, enable or disable - computation of the `checksum` field for performance or other reasons. - However, the ability to compute output checksums is required to pass the - CWL conformance test suite. - - When executing a CommandLineTool, the files and secondary files may be - staged to an arbitrary directory, but must use the value of `basename` for - the filename. The `path` property must be file path in the context of the - tool execution runtime (local to the compute node, or within the executing - container). All computed properties should be available to expressions. - File literals also must be staged and `path` must be set. - - When collecting CommandLineTool outputs, `glob` matching returns file paths - (with the `path` property) and the derived properties. This can all be - modified by `outputEval`. Alternately, if the file `cwl.output.json` is - present in the output, `outputBinding` is ignored. - - File objects in the output must provide either a `location` URI or a `path` - property in the context of the tool execution runtime (local to the compute - node, or within the executing container). - - When evaluating an ExpressionTool, file objects must be referenced via - `location` (the expression tool does not have access to files on disk so - `path` is meaningless) or as file literals. It is legal to return a file - object with an existing `location` but a different `basename`. The - `loadContents` field of ExpressionTool inputs behaves the same as on - CommandLineTool inputs, however it is not meaningful on the outputs. - - An ExpressionTool may forward file references from input to output by using - the same value for `location`. -
- */ -public class FileImpl extends SaveableImpl implements File { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private File_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#File/class
- *
- * Must be `File` to indicate this object describes a file. *
- */ - - public File_class getClass_() { - return this.class_; - } - - private java.util.Optional location; - - /** - * Getter for property https://w3id.org/cwl/cwl#File/location
- *
- * An IRI that identifies the file resource. This may be a relative - * reference, in which case it must be resolved using the base IRI of the - * document. The location may refer to a local or remote resource; the - * implementation must use the IRI to retrieve file content. If an - * implementation is unable to retrieve the file content stored at a - * remote resource (due to unsupported protocol, access denied, or other - * issue) it must signal an error. - * - * If the `location` field is not provided, the `contents` field must be - * provided. The implementation must assign a unique identifier for - * the `location` field. - * - * If the `path` field is provided but the `location` field is not, an - * implementation may assign the value of the `path` field to `location`, - * then follow the rules above. - * *
- */ - - public java.util.Optional getLocation() { - return this.location; - } - - private java.util.Optional path; - - /** - * Getter for property https://w3id.org/cwl/cwl#path
- *
- * The local host path where the File is available when a CommandLineTool is - * executed. This field must be set by the implementation. The final - * path component must match the value of `basename`. This field - * must not be used in any other context. The command line tool being - * executed must be able to to access the file at `path` using the POSIX - * `open(2)` syscall. - * - * As a special case, if the `path` field is provided but the `location` - * field is not, an implementation may assign the value of the `path` - * field to `location`, and remove the `path` field. - * - * If the `path` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02) - * (`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`, - * ``, ``, and ``) or characters - * [not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml) - * for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452) - * then implementations may terminate the process with a - * `permanentFailure`. - * *
- */ - - public java.util.Optional getPath() { - return this.path; - } - - private java.util.Optional basename; - - /** - * Getter for property https://w3id.org/cwl/cwl#File/basename
- *
- * The base name of the file, that is, the name of the file without any - * leading directory path. The base name must not contain a slash `/`. - * - * If not provided, the implementation must set this field based on the - * `location` field by taking the final path component after parsing - * `location` as an IRI. If `basename` is provided, it is not required to - * match the value from `location`. - * - * When this file is made available to a CommandLineTool, it must be named - * with `basename`, i.e. the final component of the `path` field must match - * `basename`. - * *
- */ - - public java.util.Optional getBasename() { - return this.basename; - } - - private java.util.Optional dirname; - - /** - * Getter for property https://w3id.org/cwl/cwl#File/dirname
- *
- * The name of the directory containing file, that is, the path leading up - * to the final slash in the path such that `dirname + '/' + basename == - * path`. - * - * The implementation must set this field based on the value of `path` - * prior to evaluating parameter references or expressions in a - * CommandLineTool document. This field must not be used in any other - * context. - * *
- */ - - public java.util.Optional getDirname() { - return this.dirname; - } - - private java.util.Optional nameroot; - - /** - * Getter for property https://w3id.org/cwl/cwl#File/nameroot
- *
- * The basename root such that `nameroot + nameext == basename`, and - * `nameext` is empty or begins with a period and contains at most one - * period. For the purposess of path splitting leading periods on the - * basename are ignored; a basename of `.cshrc` will have a nameroot of - * `.cshrc`. - * - * The implementation must set this field automatically based on the value - * of `basename` prior to evaluating parameter references or expressions. - * *
- */ - - public java.util.Optional getNameroot() { - return this.nameroot; - } - - private java.util.Optional nameext; - - /** - * Getter for property https://w3id.org/cwl/cwl#File/nameext
- *
- * The basename extension such that `nameroot + nameext == basename`, and - * `nameext` is empty or begins with a period and contains at most one - * period. Leading periods on the basename are ignored; a basename of - * `.cshrc` will have an empty `nameext`. - * - * The implementation must set this field automatically based on the value - * of `basename` prior to evaluating parameter references or expressions. - * *
- */ - - public java.util.Optional getNameext() { - return this.nameext; - } - - private java.util.Optional checksum; - - /** - * Getter for property https://w3id.org/cwl/cwl#File/checksum
- *
- * Optional hash code for validating file integrity. Currently must be in the form - * "sha1$ + hexadecimal string" using the SHA-1 algorithm. - * *
- */ - - public java.util.Optional getChecksum() { - return this.checksum; - } - - private Object size; - - /** - * Getter for property https://w3id.org/cwl/cwl#File/size
- *
- * Optional file size *
- */ - - public Object getSize() { - return this.size; - } - - private java.util.Optional> secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * A list of additional files or directories that are associated with the - * primary file and must be transferred alongside the primary file. - * Examples include indexes of the primary file, or external references - * which must be included when loading primary document. A file object - * listed in `secondaryFiles` may itself include `secondaryFiles` for - * which the same rules apply. - * *
- */ - - public java.util.Optional> getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * The format of the file: this must be an IRI of a concept node that - * represents the file format, preferrably defined within an ontology. - * If no ontology is available, file formats may be tested by exact match. - * - * Reasoning about format compatability must be done by checking that an - * input file format is the same, `owl:equivalentClass` or - * `rdfs:subClassOf` the format required by the input parameter. - * `owl:equivalentClass` is transitive with `rdfs:subClassOf`, e.g. if - * ` owl:equivalentClass ` and ` owl:subclassOf ` then infer - * ` owl:subclassOf `. - * - * File format ontologies may be provided in the "$schemas" metadata at the - * root of the document. If no ontologies are specified in `$schemas`, the - * runtime may perform exact file format matches. - * *
- */ - - public java.util.Optional getFormat() { - return this.format; - } - - private java.util.Optional contents; - - /** - * Getter for property https://w3id.org/cwl/cwl#File/contents
- *
- * File contents literal. Maximum of 64 KiB. - * - * If neither `location` nor `path` is provided, `contents` must be - * non-null. The implementation must assign a unique identifier for the - * `location` field. When the file is staged as input to CommandLineTool, - * the value of `contents` must be written to a file. - * - * If `loadContents` of `inputBinding` or `outputBinding` is true and - * `location` is valid, the implementation must read up to the first 64 - * KiB of text from the file and place it in the "contents" field. - * *
- */ - - public java.util.Optional getContents() { - return this.contents; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of FileImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public FileImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("FileImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - File_class class_; - try { - class_ = - LoaderInstances - .uri_File_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional location; - - if (__doc.containsKey("location")) { - try { - location = - LoaderInstances - .uri_optional_StringInstance_False_False_None_None - .loadField(__doc.get("location"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - location = null; // won't be used but prevents compiler from complaining. - final String __message = "the `location` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - location = null; - } - java.util.Optional path; - - if (__doc.containsKey("path")) { - try { - path = - LoaderInstances - .uri_optional_StringInstance_False_False_None_None - .loadField(__doc.get("path"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - path = null; // won't be used but prevents compiler from complaining. - final String __message = "the `path` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - path = null; - } - java.util.Optional basename; - - if (__doc.containsKey("basename")) { - try { - basename = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("basename"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - basename = null; // won't be used but prevents compiler from complaining. - final String __message = "the `basename` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - basename = null; - } - java.util.Optional dirname; - - if (__doc.containsKey("dirname")) { - try { - dirname = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("dirname"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - dirname = null; // won't be used but prevents compiler from complaining. - final String __message = "the `dirname` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - dirname = null; - } - java.util.Optional nameroot; - - if (__doc.containsKey("nameroot")) { - try { - nameroot = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("nameroot"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - nameroot = null; // won't be used but prevents compiler from complaining. - final String __message = "the `nameroot` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - nameroot = null; - } - java.util.Optional nameext; - - if (__doc.containsKey("nameext")) { - try { - nameext = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("nameext"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - nameext = null; // won't be used but prevents compiler from complaining. - final String __message = "the `nameext` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - nameext = null; - } - java.util.Optional checksum; - - if (__doc.containsKey("checksum")) { - try { - checksum = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("checksum"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - checksum = null; // won't be used but prevents compiler from complaining. - final String __message = "the `checksum` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - checksum = null; - } - Object size; - - if (__doc.containsKey("size")) { - try { - size = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_LongInstance - .loadField(__doc.get("size"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - size = null; // won't be used but prevents compiler from complaining. - final String __message = "the `size` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - size = null; - } - java.util.Optional> secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_optional_array_of_union_of_File_or_Directory - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_optional_StringInstance_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - java.util.Optional contents; - - if (__doc.containsKey("contents")) { - try { - contents = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("contents"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - contents = null; // won't be used but prevents compiler from complaining. - final String __message = "the `contents` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - contents = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (File_class) class_; - this.location = (java.util.Optional) location; - this.path = (java.util.Optional) path; - this.basename = (java.util.Optional) basename; - this.dirname = (java.util.Optional) dirname; - this.nameroot = (java.util.Optional) nameroot; - this.nameext = (java.util.Optional) nameext; - this.checksum = (java.util.Optional) checksum; - this.size = (Object) size; - this.secondaryFiles = (java.util.Optional>) secondaryFiles; - this.format = (java.util.Optional) format; - this.contents = (java.util.Optional) contents; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/File_class.java b/src/main/java/org/w3id/cwl/cwl1_1/File_class.java deleted file mode 100644 index 216069a5..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/File_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum File_class { - FILE("File"); - - private static String[] symbols = new String[] {"File"}; - private String docVal; - - private File_class(final String docVal) { - this.docVal = docVal; - } - - public static File_class fromDocumentVal(final String docVal) { - for(final File_class val : File_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", File_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/IOSchema.java b/src/main/java/org/w3id/cwl/cwl1_1/IOSchema.java deleted file mode 100644 index 4ee33764..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/IOSchema.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#IOSchema
- */ -public interface IOSchema extends Labeled, Documented, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/Identified.java b/src/main/java/org/w3id/cwl/cwl1_1/Identified.java deleted file mode 100644 index 5ad30973..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/Identified.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#Identified
- */ -public interface Identified extends Saveable { -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InitialWorkDirRequirement.java b/src/main/java/org/w3id/cwl/cwl1_1/InitialWorkDirRequirement.java deleted file mode 100644 index 51ca7fbb..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InitialWorkDirRequirement.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InitialWorkDirRequirement
This interface is implemented by {@link InitialWorkDirRequirementImpl}
- Define a list of files and subdirectories that must be created by the workflow platform in the designated output directory prior to executing the command line tool.
- */ -public interface InitialWorkDirRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#InitialWorkDirRequirement/class
- *
- * InitialWorkDirRequirement *
- */ - - InitialWorkDirRequirement_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#listing
- *
- * The list of files or subdirectories that must be placed in the - * designated output directory prior to executing the command line tool. - * - * May be an expression. If so, the expression return value must validate as - * `{type: array, items: ["null", File, File[], Directory, Directory[], Dirent]}`. - * - * Files or Directories which are listed in the input parameters and - * appear in the `InitialWorkDirRequirement` listing must have their - * `path` set to their staged location in the designated output directory. - * If the same File or Directory appears more than once in the - * `InitialWorkDirRequirement` listing, the implementation must choose - * exactly one value for `path`; how this value is chosen is undefined. - * *
- */ - - Object getListing(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InitialWorkDirRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/InitialWorkDirRequirementImpl.java deleted file mode 100644 index fae57f5a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InitialWorkDirRequirementImpl.java +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#InitialWorkDirRequirement
- Define a list of files and subdirectories that must be created by the workflow platform in the designated output directory prior to executing the command line tool.
- */ -public class InitialWorkDirRequirementImpl extends SaveableImpl implements InitialWorkDirRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private InitialWorkDirRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#InitialWorkDirRequirement/class
- *
- * InitialWorkDirRequirement *
- */ - - public InitialWorkDirRequirement_class getClass_() { - return this.class_; - } - - private Object listing; - - /** - * Getter for property https://w3id.org/cwl/cwl#listing
- *
- * The list of files or subdirectories that must be placed in the - * designated output directory prior to executing the command line tool. - * - * May be an expression. If so, the expression return value must validate as - * `{type: array, items: ["null", File, File[], Directory, Directory[], Dirent]}`. - * - * Files or Directories which are listed in the input parameters and - * appear in the `InitialWorkDirRequirement` listing must have their - * `path` set to their staged location in the designated output directory. - * If the same File or Directory appears more than once in the - * `InitialWorkDirRequirement` listing, the implementation must choose - * exactly one value for `path`; how this value is chosen is undefined. - * *
- */ - - public Object getListing() { - return this.listing; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of InitialWorkDirRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public InitialWorkDirRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("InitialWorkDirRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - InitialWorkDirRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_InitialWorkDirRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Object listing; - try { - listing = - LoaderInstances - .union_of_array_of_union_of_NullInstance_or_File_or_array_of_union_of_File_or_Directory_or_Directory_or_Dirent_or_ExpressionLoader_or_ExpressionLoader - .loadField(__doc.get("listing"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - listing = null; // won't be used but prevents compiler from complaining. - final String __message = "the `listing` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (InitialWorkDirRequirement_class) class_; - this.listing = (Object) listing; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InitialWorkDirRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_1/InitialWorkDirRequirement_class.java deleted file mode 100644 index e1e30e1d..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InitialWorkDirRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum InitialWorkDirRequirement_class { - INITIALWORKDIRREQUIREMENT("InitialWorkDirRequirement"); - - private static String[] symbols = new String[] {"InitialWorkDirRequirement"}; - private String docVal; - - private InitialWorkDirRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static InitialWorkDirRequirement_class fromDocumentVal(final String docVal) { - for(final InitialWorkDirRequirement_class val : InitialWorkDirRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", InitialWorkDirRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InlineJavascriptRequirement.java b/src/main/java/org/w3id/cwl/cwl1_1/InlineJavascriptRequirement.java deleted file mode 100644 index e71a003d..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InlineJavascriptRequirement.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InlineJavascriptRequirement
This interface is implemented by {@link InlineJavascriptRequirementImpl}
- Indicates that the workflow platform must support inline Javascript expressions. - If this requirement is not present, the workflow platform must not perform expression - interpolatation. -
- */ -public interface InlineJavascriptRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#InlineJavascriptRequirement/class
- *
- * Always 'InlineJavascriptRequirement' *
- */ - - InlineJavascriptRequirement_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#InlineJavascriptRequirement/expressionLib
- *
- * Additional code fragments that will also be inserted - * before executing the expression code. Allows for function definitions that may - * be called from CWL expressions. - * *
- */ - - java.util.Optional> getExpressionLib(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InlineJavascriptRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/InlineJavascriptRequirementImpl.java deleted file mode 100644 index d4885eff..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InlineJavascriptRequirementImpl.java +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#InlineJavascriptRequirement
- Indicates that the workflow platform must support inline Javascript expressions. - If this requirement is not present, the workflow platform must not perform expression - interpolatation. -
- */ -public class InlineJavascriptRequirementImpl extends SaveableImpl implements InlineJavascriptRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private InlineJavascriptRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#InlineJavascriptRequirement/class
- *
- * Always 'InlineJavascriptRequirement' *
- */ - - public InlineJavascriptRequirement_class getClass_() { - return this.class_; - } - - private java.util.Optional> expressionLib; - - /** - * Getter for property https://w3id.org/cwl/cwl#InlineJavascriptRequirement/expressionLib
- *
- * Additional code fragments that will also be inserted - * before executing the expression code. Allows for function definitions that may - * be called from CWL expressions. - * *
- */ - - public java.util.Optional> getExpressionLib() { - return this.expressionLib; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of InlineJavascriptRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public InlineJavascriptRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("InlineJavascriptRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - InlineJavascriptRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_InlineJavascriptRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional> expressionLib; - - if (__doc.containsKey("expressionLib")) { - try { - expressionLib = - LoaderInstances - .optional_array_of_StringInstance - .loadField(__doc.get("expressionLib"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - expressionLib = null; // won't be used but prevents compiler from complaining. - final String __message = "the `expressionLib` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - expressionLib = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (InlineJavascriptRequirement_class) class_; - this.expressionLib = (java.util.Optional>) expressionLib; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InlineJavascriptRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_1/InlineJavascriptRequirement_class.java deleted file mode 100644 index c80e0b39..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InlineJavascriptRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum InlineJavascriptRequirement_class { - INLINEJAVASCRIPTREQUIREMENT("InlineJavascriptRequirement"); - - private static String[] symbols = new String[] {"InlineJavascriptRequirement"}; - private String docVal; - - private InlineJavascriptRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static InlineJavascriptRequirement_class fromDocumentVal(final String docVal) { - for(final InlineJavascriptRequirement_class val : InlineJavascriptRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", InlineJavascriptRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InplaceUpdateRequirement.java b/src/main/java/org/w3id/cwl/cwl1_1/InplaceUpdateRequirement.java deleted file mode 100644 index 87ca44f7..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InplaceUpdateRequirement.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InplaceUpdateRequirement
This interface is implemented by {@link InplaceUpdateRequirementImpl}
- - If `inplaceUpdate` is true, then an implementation supporting this - feature may permit tools to directly update files with `writable: - true` in InitialWorkDirRequirement. That is, as an optimization, - files may be destructively modified in place as opposed to copied - and updated. - - An implementation must ensure that only one workflow step may - access a writable file at a time. It is an error if a file which - is writable by one workflow step file is accessed (for reading or - writing) by any other workflow step running independently. - However, a file which has been updated in a previous completed - step may be used as input to multiple steps, provided it is - read-only in every step. - - Workflow steps which modify a file must produce the modified file - as output. Downstream steps which futher process the file must - use the output of previous steps, and not refer to a common input - (this is necessary for both ordering and correctness). - - Workflow authors should provide this in the `hints` section. The - intent of this feature is that workflows produce the same results - whether or not InplaceUpdateRequirement is supported by the - implementation, and this feature is primarily available as an - optimization for particular environments. - - Users and implementers should be aware that workflows that - destructively modify inputs may not be repeatable or reproducible. - In particular, enabling this feature implies that WorkReuse should - not be enabled. -
- */ -public interface InplaceUpdateRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#InplaceUpdateRequirement/class
- *
- * Always 'InplaceUpdateRequirement' *
- */ - - InplaceUpdateRequirement_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#InplaceUpdateRequirement/inplaceUpdate
- - */ - - Boolean getInplaceUpdate(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InplaceUpdateRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/InplaceUpdateRequirementImpl.java deleted file mode 100644 index ecc98e03..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InplaceUpdateRequirementImpl.java +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#InplaceUpdateRequirement
- - If `inplaceUpdate` is true, then an implementation supporting this - feature may permit tools to directly update files with `writable: - true` in InitialWorkDirRequirement. That is, as an optimization, - files may be destructively modified in place as opposed to copied - and updated. - - An implementation must ensure that only one workflow step may - access a writable file at a time. It is an error if a file which - is writable by one workflow step file is accessed (for reading or - writing) by any other workflow step running independently. - However, a file which has been updated in a previous completed - step may be used as input to multiple steps, provided it is - read-only in every step. - - Workflow steps which modify a file must produce the modified file - as output. Downstream steps which futher process the file must - use the output of previous steps, and not refer to a common input - (this is necessary for both ordering and correctness). - - Workflow authors should provide this in the `hints` section. The - intent of this feature is that workflows produce the same results - whether or not InplaceUpdateRequirement is supported by the - implementation, and this feature is primarily available as an - optimization for particular environments. - - Users and implementers should be aware that workflows that - destructively modify inputs may not be repeatable or reproducible. - In particular, enabling this feature implies that WorkReuse should - not be enabled. -
- */ -public class InplaceUpdateRequirementImpl extends SaveableImpl implements InplaceUpdateRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private InplaceUpdateRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#InplaceUpdateRequirement/class
- *
- * Always 'InplaceUpdateRequirement' *
- */ - - public InplaceUpdateRequirement_class getClass_() { - return this.class_; - } - - private Boolean inplaceUpdate; - - /** - * Getter for property https://w3id.org/cwl/cwl#InplaceUpdateRequirement/inplaceUpdate
- - */ - - public Boolean getInplaceUpdate() { - return this.inplaceUpdate; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of InplaceUpdateRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public InplaceUpdateRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("InplaceUpdateRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - InplaceUpdateRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_InplaceUpdateRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Boolean inplaceUpdate; - try { - inplaceUpdate = - LoaderInstances - .BooleanInstance - .loadField(__doc.get("inplaceUpdate"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inplaceUpdate = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inplaceUpdate` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (InplaceUpdateRequirement_class) class_; - this.inplaceUpdate = (Boolean) inplaceUpdate; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InplaceUpdateRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_1/InplaceUpdateRequirement_class.java deleted file mode 100644 index c8181878..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InplaceUpdateRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum InplaceUpdateRequirement_class { - INPLACEUPDATEREQUIREMENT("InplaceUpdateRequirement"); - - private static String[] symbols = new String[] {"InplaceUpdateRequirement"}; - private String docVal; - - private InplaceUpdateRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static InplaceUpdateRequirement_class fromDocumentVal(final String docVal) { - for(final InplaceUpdateRequirement_class val : InplaceUpdateRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", InplaceUpdateRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InputArraySchema.java b/src/main/java/org/w3id/cwl/cwl1_1/InputArraySchema.java deleted file mode 100644 index 30b4154c..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InputArraySchema.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InputArraySchema
This interface is implemented by {@link InputArraySchemaImpl}
- */ -public interface InputArraySchema extends CWLArraySchema, InputSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - Object getItems(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - Array_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InputArraySchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/InputArraySchemaImpl.java deleted file mode 100644 index 15084862..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InputArraySchemaImpl.java +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputArraySchema
- */ -public class InputArraySchemaImpl extends SaveableImpl implements InputArraySchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private Object items; - - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - public Object getItems() { - return this.items; - } - - private Array_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - public Array_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of InputArraySchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public InputArraySchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("InputArraySchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - Object items; - try { - items = - LoaderInstances - .uri_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_False_True_2_None - .loadField(__doc.get("items"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - items = null; // won't be used but prevents compiler from complaining. - final String __message = "the `items` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Array_name type; - try { - type = - LoaderInstances - .typedsl_Array_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.items = (Object) items; - this.type = (Array_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.name = (java.util.Optional) name; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InputBinding.java b/src/main/java/org/w3id/cwl/cwl1_1/InputBinding.java deleted file mode 100644 index ae0adc9f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InputBinding.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InputBinding
This interface is implemented by {@link InputBindingImpl}
- */ -public interface InputBinding extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#InputBinding/loadContents
- *
- * Use of `loadContents` in `InputBinding` is deprecated. - * Preserved for v1.0 backwards compatability. Will be removed in - * CWL v2.0. Use `InputParameter.loadContents` instead. - * - * Only valid when `type: File` or is an array of `items: File`. - * - * Read up to the first 64 KiB of text from the file and place it in the - * "contents" field of the file object for use by expressions. - * *
- */ - - java.util.Optional getLoadContents(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InputBindingImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/InputBindingImpl.java deleted file mode 100644 index 7bd64b7e..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InputBindingImpl.java +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputBinding
- */ -public class InputBindingImpl extends SaveableImpl implements InputBinding { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional loadContents; - - /** - * Getter for property https://w3id.org/cwl/cwl#InputBinding/loadContents
- *
- * Use of `loadContents` in `InputBinding` is deprecated. - * Preserved for v1.0 backwards compatability. Will be removed in - * CWL v2.0. Use `InputParameter.loadContents` instead. - * - * Only valid when `type: File` or is an array of `items: File`. - * - * Read up to the first 64 KiB of text from the file and place it in the - * "contents" field of the file object for use by expressions. - * *
- */ - - public java.util.Optional getLoadContents() { - return this.loadContents; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of InputBindingImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public InputBindingImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("InputBindingImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional loadContents; - - if (__doc.containsKey("loadContents")) { - try { - loadContents = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadContents = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadContents` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadContents = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.loadContents = (java.util.Optional) loadContents; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InputEnumSchema.java b/src/main/java/org/w3id/cwl/cwl1_1/InputEnumSchema.java deleted file mode 100644 index 8ec71472..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InputEnumSchema.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InputEnumSchema
This interface is implemented by {@link InputEnumSchemaImpl}
- */ -public interface InputEnumSchema extends EnumSchema, InputSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - java.util.List getSymbols(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - Enum_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InputEnumSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/InputEnumSchemaImpl.java deleted file mode 100644 index e71ee837..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InputEnumSchemaImpl.java +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputEnumSchema
- */ -public class InputEnumSchemaImpl extends SaveableImpl implements InputEnumSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private java.util.List symbols; - - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - public java.util.List getSymbols() { - return this.symbols; - } - - private Enum_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - public Enum_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of InputEnumSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public InputEnumSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("InputEnumSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - java.util.List symbols; - try { - symbols = - LoaderInstances - .uri_array_of_StringInstance_True_False_None_None - .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - symbols = null; // won't be used but prevents compiler from complaining. - final String __message = "the `symbols` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Enum_name type; - try { - type = - LoaderInstances - .typedsl_Enum_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.name = (java.util.Optional) name; - this.symbols = (java.util.List) symbols; - this.type = (Enum_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InputFormat.java b/src/main/java/org/w3id/cwl/cwl1_1/InputFormat.java deleted file mode 100644 index 40ec52d6..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InputFormat.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InputFormat
- */ -public interface InputFormat extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferrably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - Object getFormat(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InputParameter.java b/src/main/java/org/w3id/cwl/cwl1_1/InputParameter.java deleted file mode 100644 index eb3b55ba..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InputParameter.java +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InputParameter
- */ -public interface InputParameter extends Parameter, InputFormat, LoadContents, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferrably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - Object getFormat(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Read up to the first 64 KiB of text from the file and place it in the - * "contents" field of the file object for use by expressions. - * *
- */ - - java.util.Optional getLoadContents(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - java.util.Optional getLoadListing(); - /** - * Getter for property https://w3id.org/cwl/salad#default
- *
- * The default value to use for this parameter if the parameter is missing - * from the input object, or if the value of the parameter in the input - * object is `null`. Default values are applied before evaluating expressions - * (e.g. dependent `valueFrom` fields). - * *
- */ - - java.util.Optional getDefault(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InputRecordField.java b/src/main/java/org/w3id/cwl/cwl1_1/InputRecordField.java deleted file mode 100644 index 53c02618..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InputRecordField.java +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InputRecordField
This interface is implemented by {@link InputRecordFieldImpl}
- */ -public interface InputRecordField extends CWLRecordField, FieldBase, InputFormat, LoadContents, Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - String getName(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - Object getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferrably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - Object getFormat(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Read up to the first 64 KiB of text from the file and place it in the - * "contents" field of the file object for use by expressions. - * *
- */ - - java.util.Optional getLoadContents(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - java.util.Optional getLoadListing(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InputRecordFieldImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/InputRecordFieldImpl.java deleted file mode 100644 index 66b369b2..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InputRecordFieldImpl.java +++ /dev/null @@ -1,410 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputRecordField
- */ -public class InputRecordFieldImpl extends SaveableImpl implements InputRecordField { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private String name; - - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - public String getName() { - return this.name; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - public Object getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional streamable; - - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - public java.util.Optional getStreamable() { - return this.streamable; - } - - private Object format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferrably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - public Object getFormat() { - return this.format; - } - - private java.util.Optional loadContents; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Read up to the first 64 KiB of text from the file and place it in the - * "contents" field of the file object for use by expressions. - * *
- */ - - public java.util.Optional getLoadContents() { - return this.loadContents; - } - - private java.util.Optional loadListing; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - public java.util.Optional getLoadListing() { - return this.loadListing; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of InputRecordFieldImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public InputRecordFieldImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("InputRecordFieldImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - String name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - if (name == null) { - if (__docRoot != null) { - name = __docRoot; - } else { - throw new ValidationException("Missing name"); - } - } - __baseUri = (String) name; - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object type; - try { - type = - LoaderInstances - .typedsl_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional streamable; - - if (__doc.containsKey("streamable")) { - try { - streamable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - streamable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `streamable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - streamable = null; - } - Object format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - java.util.Optional loadContents; - - if (__doc.containsKey("loadContents")) { - try { - loadContents = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadContents = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadContents` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadContents = null; - } - java.util.Optional loadListing; - - if (__doc.containsKey("loadListing")) { - try { - loadListing = - LoaderInstances - .optional_LoadListingEnum - .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadListing = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadListing` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadListing = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.doc = (Object) doc; - this.name = (String) name; - this.type = (Object) type; - this.label = (java.util.Optional) label; - this.secondaryFiles = (Object) secondaryFiles; - this.streamable = (java.util.Optional) streamable; - this.format = (Object) format; - this.loadContents = (java.util.Optional) loadContents; - this.loadListing = (java.util.Optional) loadListing; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InputRecordSchema.java b/src/main/java/org/w3id/cwl/cwl1_1/InputRecordSchema.java deleted file mode 100644 index b888029d..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InputRecordSchema.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InputRecordSchema
This interface is implemented by {@link InputRecordSchemaImpl}
- */ -public interface InputRecordSchema extends CWLRecordSchema, InputSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - java.util.Optional> getFields(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - Record_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InputRecordSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/InputRecordSchemaImpl.java deleted file mode 100644 index 8f622934..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InputRecordSchemaImpl.java +++ /dev/null @@ -1,226 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputRecordSchema
- */ -public class InputRecordSchemaImpl extends SaveableImpl implements InputRecordSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private java.util.Optional> fields; - - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - public java.util.Optional> getFields() { - return this.fields; - } - - private Record_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - public Record_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of InputRecordSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public InputRecordSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("InputRecordSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - java.util.Optional> fields; - - if (__doc.containsKey("fields")) { - try { - fields = - LoaderInstances - .idmap_fields_optional_array_of_InputRecordField - .loadField(__doc.get("fields"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - fields = null; // won't be used but prevents compiler from complaining. - final String __message = "the `fields` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - fields = null; - } - Record_name type; - try { - type = - LoaderInstances - .typedsl_Record_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.fields = (java.util.Optional>) fields; - this.type = (Record_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.name = (java.util.Optional) name; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/InputSchema.java b/src/main/java/org/w3id/cwl/cwl1_1/InputSchema.java deleted file mode 100644 index ac5df073..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/InputSchema.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InputSchema
- */ -public interface InputSchema extends IOSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/Labeled.java b/src/main/java/org/w3id/cwl/cwl1_1/Labeled.java deleted file mode 100644 index c370ec55..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/Labeled.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#Labeled
- */ -public interface Labeled extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/LinkMergeMethod.java b/src/main/java/org/w3id/cwl/cwl1_1/LinkMergeMethod.java deleted file mode 100644 index 1a5a6b84..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/LinkMergeMethod.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum LinkMergeMethod { - MERGE_NESTED("merge_nested"), - MERGE_FLATTENED("merge_flattened"); - - private static String[] symbols = new String[] {"merge_nested", "merge_flattened"}; - private String docVal; - - private LinkMergeMethod(final String docVal) { - this.docVal = docVal; - } - - public static LinkMergeMethod fromDocumentVal(final String docVal) { - for(final LinkMergeMethod val : LinkMergeMethod.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", LinkMergeMethod.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/LoadContents.java b/src/main/java/org/w3id/cwl/cwl1_1/LoadContents.java deleted file mode 100644 index 6997308b..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/LoadContents.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#LoadContents
- */ -public interface LoadContents extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Read up to the first 64 KiB of text from the file and place it in the - * "contents" field of the file object for use by expressions. - * *
- */ - - java.util.Optional getLoadContents(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - java.util.Optional getLoadListing(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/LoadListingEnum.java b/src/main/java/org/w3id/cwl/cwl1_1/LoadListingEnum.java deleted file mode 100644 index 0fd6aa32..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/LoadListingEnum.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum LoadListingEnum { - NO_LISTING("no_listing"), - SHALLOW_LISTING("shallow_listing"), - DEEP_LISTING("deep_listing"); - - private static String[] symbols = new String[] {"no_listing", "shallow_listing", "deep_listing"}; - private String docVal; - - private LoadListingEnum(final String docVal) { - this.docVal = docVal; - } - - public static LoadListingEnum fromDocumentVal(final String docVal) { - for(final LoadListingEnum val : LoadListingEnum.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", LoadListingEnum.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/LoadListingRequirement.java b/src/main/java/org/w3id/cwl/cwl1_1/LoadListingRequirement.java deleted file mode 100644 index d5a13d95..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/LoadListingRequirement.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#LoadListingRequirement
This interface is implemented by {@link LoadListingRequirementImpl}
- Specify the desired behavior for loading the `listing` field of - a Directory object for use by expressions. -
- */ -public interface LoadListingRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#LoadListingRequirement/class
- *
- * Always 'LoadListingRequirement' *
- */ - - LoadListingRequirement_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadListingRequirement/loadListing
- - */ - - java.util.Optional getLoadListing(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/LoadListingRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/LoadListingRequirementImpl.java deleted file mode 100644 index fe427ea8..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/LoadListingRequirementImpl.java +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#LoadListingRequirement
- Specify the desired behavior for loading the `listing` field of - a Directory object for use by expressions. -
- */ -public class LoadListingRequirementImpl extends SaveableImpl implements LoadListingRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private LoadListingRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadListingRequirement/class
- *
- * Always 'LoadListingRequirement' *
- */ - - public LoadListingRequirement_class getClass_() { - return this.class_; - } - - private java.util.Optional loadListing; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadListingRequirement/loadListing
- - */ - - public java.util.Optional getLoadListing() { - return this.loadListing; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of LoadListingRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public LoadListingRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("LoadListingRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - LoadListingRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_LoadListingRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional loadListing; - - if (__doc.containsKey("loadListing")) { - try { - loadListing = - LoaderInstances - .optional_LoadListingEnum - .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadListing = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadListing` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadListing = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (LoadListingRequirement_class) class_; - this.loadListing = (java.util.Optional) loadListing; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/LoadListingRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_1/LoadListingRequirement_class.java deleted file mode 100644 index 19d9e799..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/LoadListingRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum LoadListingRequirement_class { - LOADLISTINGREQUIREMENT("LoadListingRequirement"); - - private static String[] symbols = new String[] {"LoadListingRequirement"}; - private String docVal; - - private LoadListingRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static LoadListingRequirement_class fromDocumentVal(final String docVal) { - for(final LoadListingRequirement_class val : LoadListingRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", LoadListingRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/MapSchema.java b/src/main/java/org/w3id/cwl/cwl1_1/MapSchema.java deleted file mode 100644 index 309d366f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/MapSchema.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/salad#MapSchema
This interface is implemented by {@link MapSchemaImpl}
- */ -public interface MapSchema extends Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `map` *
- */ - - Map_name getType(); - /** - * Getter for property https://w3id.org/cwl/salad#values
- *
- * Defines the type of the map elements. *
- */ - - Object getValues(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/MapSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/MapSchemaImpl.java deleted file mode 100644 index 35c9d656..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/MapSchemaImpl.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/salad#MapSchema
- */ -public class MapSchemaImpl extends SaveableImpl implements MapSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private Map_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `map` *
- */ - - public Map_name getType() { - return this.type; - } - - private Object values; - - /** - * Getter for property https://w3id.org/cwl/salad#values
- *
- * Defines the type of the map elements. *
- */ - - public Object getValues() { - return this.values; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of MapSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public MapSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("MapSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - Map_name type; - try { - type = - LoaderInstances - .typedsl_Map_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Object values; - try { - values = - LoaderInstances - .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 - .loadField(__doc.get("values"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - values = null; // won't be used but prevents compiler from complaining. - final String __message = "the `values` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.type = (Map_name) type; - this.values = (Object) values; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/Map_name.java b/src/main/java/org/w3id/cwl/cwl1_1/Map_name.java deleted file mode 100644 index 3065d8e4..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/Map_name.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum Map_name { - MAP("map"); - - private static String[] symbols = new String[] {"map"}; - private String docVal; - - private Map_name(final String docVal) { - this.docVal = docVal; - } - - public static Map_name fromDocumentVal(final String docVal) { - for(final Map_name val : Map_name.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", Map_name.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/MultipleInputFeatureRequirement.java b/src/main/java/org/w3id/cwl/cwl1_1/MultipleInputFeatureRequirement.java deleted file mode 100644 index de1712c6..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/MultipleInputFeatureRequirement.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#MultipleInputFeatureRequirement
This interface is implemented by {@link MultipleInputFeatureRequirementImpl}
- Indicates that the workflow platform must support multiple inbound data links - listed in the `source` field of [WorkflowStepInput](#WorkflowStepInput). -
- */ -public interface MultipleInputFeatureRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#MultipleInputFeatureRequirement/class
- *
- * Always 'MultipleInputFeatureRequirement' *
- */ - - MultipleInputFeatureRequirement_class getClass_(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/MultipleInputFeatureRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/MultipleInputFeatureRequirementImpl.java deleted file mode 100644 index a57fdc8a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/MultipleInputFeatureRequirementImpl.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#MultipleInputFeatureRequirement
- Indicates that the workflow platform must support multiple inbound data links - listed in the `source` field of [WorkflowStepInput](#WorkflowStepInput). -
- */ -public class MultipleInputFeatureRequirementImpl extends SaveableImpl implements MultipleInputFeatureRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private MultipleInputFeatureRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#MultipleInputFeatureRequirement/class
- *
- * Always 'MultipleInputFeatureRequirement' *
- */ - - public MultipleInputFeatureRequirement_class getClass_() { - return this.class_; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of MultipleInputFeatureRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public MultipleInputFeatureRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("MultipleInputFeatureRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - MultipleInputFeatureRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_MultipleInputFeatureRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (MultipleInputFeatureRequirement_class) class_; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/MultipleInputFeatureRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_1/MultipleInputFeatureRequirement_class.java deleted file mode 100644 index bdbc35c9..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/MultipleInputFeatureRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum MultipleInputFeatureRequirement_class { - MULTIPLEINPUTFEATUREREQUIREMENT("MultipleInputFeatureRequirement"); - - private static String[] symbols = new String[] {"MultipleInputFeatureRequirement"}; - private String docVal; - - private MultipleInputFeatureRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static MultipleInputFeatureRequirement_class fromDocumentVal(final String docVal) { - for(final MultipleInputFeatureRequirement_class val : MultipleInputFeatureRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", MultipleInputFeatureRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/NetworkAccess.java b/src/main/java/org/w3id/cwl/cwl1_1/NetworkAccess.java deleted file mode 100644 index d09696a4..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/NetworkAccess.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#NetworkAccess
This interface is implemented by {@link NetworkAccessImpl}
- Indicate whether a process requires outgoing IPv4/IPv6 network - access. Choice of IPv4 or IPv6 is implementation and site - specific, correct tools must support both. - - If `networkAccess` is false or not specified, tools must not - assume network access, except for localhost (the loopback device). - - If `networkAccess` is true, the tool must be able to make outgoing - connections to network resources. Resources may be on a private - subnet or the public Internet. However, implementations and sites - may apply their own security policies to restrict what is - accessible by the tool. - - Enabling network access does not imply a publically routable IP - address or the ability to accept inbound connections. -
- */ -public interface NetworkAccess extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#NetworkAccess/class
- *
- * Always 'NetworkAccess' *
- */ - - NetworkAccess_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#NetworkAccess/networkAccess
- - */ - - Object getNetworkAccess(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/NetworkAccessImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/NetworkAccessImpl.java deleted file mode 100644 index cc287fd3..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/NetworkAccessImpl.java +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#NetworkAccess
- Indicate whether a process requires outgoing IPv4/IPv6 network - access. Choice of IPv4 or IPv6 is implementation and site - specific, correct tools must support both. - - If `networkAccess` is false or not specified, tools must not - assume network access, except for localhost (the loopback device). - - If `networkAccess` is true, the tool must be able to make outgoing - connections to network resources. Resources may be on a private - subnet or the public Internet. However, implementations and sites - may apply their own security policies to restrict what is - accessible by the tool. - - Enabling network access does not imply a publically routable IP - address or the ability to accept inbound connections. -
- */ -public class NetworkAccessImpl extends SaveableImpl implements NetworkAccess { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private NetworkAccess_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#NetworkAccess/class
- *
- * Always 'NetworkAccess' *
- */ - - public NetworkAccess_class getClass_() { - return this.class_; - } - - private Object networkAccess; - - /** - * Getter for property https://w3id.org/cwl/cwl#NetworkAccess/networkAccess
- - */ - - public Object getNetworkAccess() { - return this.networkAccess; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of NetworkAccessImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public NetworkAccessImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("NetworkAccessImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - NetworkAccess_class class_; - try { - class_ = - LoaderInstances - .uri_NetworkAccess_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Object networkAccess; - try { - networkAccess = - LoaderInstances - .union_of_BooleanInstance_or_ExpressionLoader - .loadField(__doc.get("networkAccess"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - networkAccess = null; // won't be used but prevents compiler from complaining. - final String __message = "the `networkAccess` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (NetworkAccess_class) class_; - this.networkAccess = (Object) networkAccess; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/NetworkAccess_class.java b/src/main/java/org/w3id/cwl/cwl1_1/NetworkAccess_class.java deleted file mode 100644 index 56916e10..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/NetworkAccess_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum NetworkAccess_class { - NETWORKACCESS("NetworkAccess"); - - private static String[] symbols = new String[] {"NetworkAccess"}; - private String docVal; - - private NetworkAccess_class(final String docVal) { - this.docVal = docVal; - } - - public static NetworkAccess_class fromDocumentVal(final String docVal) { - for(final NetworkAccess_class val : NetworkAccess_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", NetworkAccess_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/OutputArraySchema.java b/src/main/java/org/w3id/cwl/cwl1_1/OutputArraySchema.java deleted file mode 100644 index 41b01f84..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/OutputArraySchema.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#OutputArraySchema
This interface is implemented by {@link OutputArraySchemaImpl}
- */ -public interface OutputArraySchema extends CWLArraySchema, OutputSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - Object getItems(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - Array_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/OutputArraySchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/OutputArraySchemaImpl.java deleted file mode 100644 index 75eb2829..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/OutputArraySchemaImpl.java +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#OutputArraySchema
- */ -public class OutputArraySchemaImpl extends SaveableImpl implements OutputArraySchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private Object items; - - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - public Object getItems() { - return this.items; - } - - private Array_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - public Array_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of OutputArraySchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public OutputArraySchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("OutputArraySchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - Object items; - try { - items = - LoaderInstances - .uri_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_False_True_2_None - .loadField(__doc.get("items"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - items = null; // won't be used but prevents compiler from complaining. - final String __message = "the `items` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Array_name type; - try { - type = - LoaderInstances - .typedsl_Array_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.items = (Object) items; - this.type = (Array_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.name = (java.util.Optional) name; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/OutputEnumSchema.java b/src/main/java/org/w3id/cwl/cwl1_1/OutputEnumSchema.java deleted file mode 100644 index f1a61c4d..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/OutputEnumSchema.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#OutputEnumSchema
This interface is implemented by {@link OutputEnumSchemaImpl}
- */ -public interface OutputEnumSchema extends EnumSchema, OutputSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - java.util.List getSymbols(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - Enum_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/OutputEnumSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/OutputEnumSchemaImpl.java deleted file mode 100644 index 92a9127d..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/OutputEnumSchemaImpl.java +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#OutputEnumSchema
- */ -public class OutputEnumSchemaImpl extends SaveableImpl implements OutputEnumSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private java.util.List symbols; - - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - public java.util.List getSymbols() { - return this.symbols; - } - - private Enum_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - public Enum_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of OutputEnumSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public OutputEnumSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("OutputEnumSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - java.util.List symbols; - try { - symbols = - LoaderInstances - .uri_array_of_StringInstance_True_False_None_None - .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - symbols = null; // won't be used but prevents compiler from complaining. - final String __message = "the `symbols` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Enum_name type; - try { - type = - LoaderInstances - .typedsl_Enum_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.name = (java.util.Optional) name; - this.symbols = (java.util.List) symbols; - this.type = (Enum_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/OutputFormat.java b/src/main/java/org/w3id/cwl/cwl1_1/OutputFormat.java deleted file mode 100644 index 95ab85eb..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/OutputFormat.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#OutputFormat
- */ -public interface OutputFormat extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - Object getFormat(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/OutputParameter.java b/src/main/java/org/w3id/cwl/cwl1_1/OutputParameter.java deleted file mode 100644 index 8667563a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/OutputParameter.java +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#OutputParameter
- */ -public interface OutputParameter extends Parameter, OutputFormat, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - Object getFormat(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/OutputRecordField.java b/src/main/java/org/w3id/cwl/cwl1_1/OutputRecordField.java deleted file mode 100644 index 5743d8c4..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/OutputRecordField.java +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#OutputRecordField
This interface is implemented by {@link OutputRecordFieldImpl}
- */ -public interface OutputRecordField extends CWLRecordField, FieldBase, OutputFormat, Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - String getName(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - Object getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - Object getFormat(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/OutputRecordFieldImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/OutputRecordFieldImpl.java deleted file mode 100644 index 4083ecb9..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/OutputRecordFieldImpl.java +++ /dev/null @@ -1,334 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#OutputRecordField
- */ -public class OutputRecordFieldImpl extends SaveableImpl implements OutputRecordField { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private String name; - - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - public String getName() { - return this.name; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - public Object getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional streamable; - - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - public java.util.Optional getStreamable() { - return this.streamable; - } - - private Object format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - public Object getFormat() { - return this.format; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of OutputRecordFieldImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public OutputRecordFieldImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("OutputRecordFieldImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - String name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - if (name == null) { - if (__docRoot != null) { - name = __docRoot; - } else { - throw new ValidationException("Missing name"); - } - } - __baseUri = (String) name; - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object type; - try { - type = - LoaderInstances - .typedsl_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional streamable; - - if (__doc.containsKey("streamable")) { - try { - streamable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - streamable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `streamable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - streamable = null; - } - Object format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.doc = (Object) doc; - this.name = (String) name; - this.type = (Object) type; - this.label = (java.util.Optional) label; - this.secondaryFiles = (Object) secondaryFiles; - this.streamable = (java.util.Optional) streamable; - this.format = (Object) format; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/OutputRecordSchema.java b/src/main/java/org/w3id/cwl/cwl1_1/OutputRecordSchema.java deleted file mode 100644 index d632e511..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/OutputRecordSchema.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#OutputRecordSchema
This interface is implemented by {@link OutputRecordSchemaImpl}
- */ -public interface OutputRecordSchema extends CWLRecordSchema, OutputSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - java.util.Optional> getFields(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - Record_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/OutputRecordSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/OutputRecordSchemaImpl.java deleted file mode 100644 index 5454d6e7..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/OutputRecordSchemaImpl.java +++ /dev/null @@ -1,226 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#OutputRecordSchema
- */ -public class OutputRecordSchemaImpl extends SaveableImpl implements OutputRecordSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private java.util.Optional> fields; - - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - public java.util.Optional> getFields() { - return this.fields; - } - - private Record_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - public Record_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of OutputRecordSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public OutputRecordSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("OutputRecordSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - java.util.Optional> fields; - - if (__doc.containsKey("fields")) { - try { - fields = - LoaderInstances - .idmap_fields_optional_array_of_OutputRecordField - .loadField(__doc.get("fields"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - fields = null; // won't be used but prevents compiler from complaining. - final String __message = "the `fields` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - fields = null; - } - Record_name type; - try { - type = - LoaderInstances - .typedsl_Record_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.fields = (java.util.Optional>) fields; - this.type = (Record_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.name = (java.util.Optional) name; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/OutputSchema.java b/src/main/java/org/w3id/cwl/cwl1_1/OutputSchema.java deleted file mode 100644 index eacdc77a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/OutputSchema.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#OutputSchema
- */ -public interface OutputSchema extends IOSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/Parameter.java b/src/main/java/org/w3id/cwl/cwl1_1/Parameter.java deleted file mode 100644 index d199ea89..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/Parameter.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#Parameter
- Define an input or output parameter to a process. -
- */ -public interface Parameter extends FieldBase, Documented, Identified, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/PrimitiveType.java b/src/main/java/org/w3id/cwl/cwl1_1/PrimitiveType.java deleted file mode 100644 index 53b05376..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/PrimitiveType.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum PrimitiveType { - NULL("null"), - BOOLEAN("boolean"), - INT("int"), - LONG("long"), - FLOAT("float"), - DOUBLE("double"), - STRING("string"); - - private static String[] symbols = new String[] {"null", "boolean", "int", "long", "float", "double", "string"}; - private String docVal; - - private PrimitiveType(final String docVal) { - this.docVal = docVal; - } - - public static PrimitiveType fromDocumentVal(final String docVal) { - for(final PrimitiveType val : PrimitiveType.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", PrimitiveType.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/Process.java b/src/main/java/org/w3id/cwl/cwl1_1/Process.java deleted file mode 100644 index e138ec0e..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/Process.java +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#Process
- - The base executable type in CWL is the `Process` object defined by the - document. Note that the `Process` object is abstract and cannot be - directly executed. -
- */ -public interface Process extends Identified, Labeled, Documented, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#inputs
- *
- * Defines the input parameters of the process. The process is ready to - * run when all required input parameters are associated with concrete - * values. Input parameters include a schema for each parameter which is - * used to validate the input object. It may also be used to build a user - * interface for constructing the input object. - * - * When accepting an input object, all input parameters must have a value. - * If an input parameter is missing from the input object, it must be - * assigned a value of `null` (or the value of `default` for that - * parameter, if provided) for the purposes of validation and evaluation - * of expressions. - * *
- */ - - java.util.List getInputs(); - /** - * Getter for property https://w3id.org/cwl/cwl#outputs
- *
- * Defines the parameters representing the output of the process. May be - * used to generate and/or validate the output object. - * *
- */ - - java.util.List getOutputs(); - /** - * Getter for property https://w3id.org/cwl/cwl#requirements
- *
- * Declares requirements that apply to either the runtime environment or the - * workflow engine that must be met in order to execute this process. If - * an implementation cannot satisfy all requirements, or a requirement is - * listed which is not recognized by the implementation, it is a fatal - * error and the implementation must not attempt to run the process, - * unless overridden at user option. - * *
- */ - - java.util.Optional> getRequirements(); - /** - * Getter for property https://w3id.org/cwl/cwl#hints
- *
- * Declares hints applying to either the runtime environment or the - * workflow engine that may be helpful in executing this process. It is - * not an error if an implementation cannot satisfy all hints, however - * the implementation may report a warning. - * *
- */ - - java.util.Optional> getHints(); - /** - * Getter for property https://w3id.org/cwl/cwl#cwlVersion
- *
- * CWL document version. Always required at the document root. Not - * required for a Process embedded inside another Process. - * *
- */ - - java.util.Optional getCwlVersion(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ProcessRequirement.java b/src/main/java/org/w3id/cwl/cwl1_1/ProcessRequirement.java deleted file mode 100644 index 6e2dc02f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ProcessRequirement.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#ProcessRequirement
- A process requirement declares a prerequisite that may or must be fulfilled - before executing a process. See [`Process.hints`](#process) and - [`Process.requirements`](#process). - - Process requirements are the primary mechanism for specifying extensions to - the CWL core specification. -
- */ -public interface ProcessRequirement extends Saveable { -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/RecordField.java b/src/main/java/org/w3id/cwl/cwl1_1/RecordField.java deleted file mode 100644 index d0095f62..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/RecordField.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/salad#RecordField
This interface is implemented by {@link RecordFieldImpl}
- A field of a record.
- */ -public interface RecordField extends Documented, Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - String getName(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type. If it is an array, it indicates - * that the field type is a union type of its elements. - * Its elements may be duplicated. - * *
- */ - - Object getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/RecordFieldImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/RecordFieldImpl.java deleted file mode 100644 index ad459010..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/RecordFieldImpl.java +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/salad#RecordField
- A field of a record.
- */ -public class RecordFieldImpl extends SaveableImpl implements RecordField { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private String name; - - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - public String getName() { - return this.name; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type. If it is an array, it indicates - * that the field type is a union type of its elements. - * Its elements may be duplicated. - * *
- */ - - public Object getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of RecordFieldImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public RecordFieldImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("RecordFieldImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - String name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - if (name == null) { - if (__docRoot != null) { - name = __docRoot; - } else { - throw new ValidationException("Missing name"); - } - } - __baseUri = (String) name; - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object type; - try { - type = - LoaderInstances - .typedsl_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_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.doc = (Object) doc; - this.name = (String) name; - this.type = (Object) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/RecordSchema.java b/src/main/java/org/w3id/cwl/cwl1_1/RecordSchema.java deleted file mode 100644 index a45b81f3..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/RecordSchema.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/salad#RecordSchema
This interface is implemented by {@link RecordSchemaImpl}
- */ -public interface RecordSchema extends Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - java.util.Optional> getFields(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - Record_name getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/RecordSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/RecordSchemaImpl.java deleted file mode 100644 index 14f9002b..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/RecordSchemaImpl.java +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/salad#RecordSchema
- */ -public class RecordSchemaImpl extends SaveableImpl implements RecordSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional> fields; - - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - public java.util.Optional> getFields() { - return this.fields; - } - - private Record_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - public Record_name getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of RecordSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public RecordSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("RecordSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional> fields; - - if (__doc.containsKey("fields")) { - try { - fields = - LoaderInstances - .idmap_fields_optional_array_of_RecordField - .loadField(__doc.get("fields"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - fields = null; // won't be used but prevents compiler from complaining. - final String __message = "the `fields` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - fields = null; - } - Record_name type; - try { - type = - LoaderInstances - .typedsl_Record_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.fields = (java.util.Optional>) fields; - this.type = (Record_name) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/Record_name.java b/src/main/java/org/w3id/cwl/cwl1_1/Record_name.java deleted file mode 100644 index ff3c664f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/Record_name.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum Record_name { - RECORD("record"); - - private static String[] symbols = new String[] {"record"}; - private String docVal; - - private Record_name(final String docVal) { - this.docVal = docVal; - } - - public static Record_name fromDocumentVal(final String docVal) { - for(final Record_name val : Record_name.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", Record_name.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ResourceRequirement.java b/src/main/java/org/w3id/cwl/cwl1_1/ResourceRequirement.java deleted file mode 100644 index d239cdfa..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ResourceRequirement.java +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#ResourceRequirement
This interface is implemented by {@link ResourceRequirementImpl}
- Specify basic hardware resource requirements. - - "min" is the minimum amount of a resource that must be reserved to schedule - a job. If "min" cannot be satisfied, the job should not be run. - - "max" is the maximum amount of a resource that the job shall be permitted - to use. If a node has sufficient resources, multiple jobs may be scheduled - on a single node provided each job's "max" resource requirements are - met. If a job attempts to exceed its "max" resource allocation, an - implementation may deny additional resources, which may result in job - failure. - - If "min" is specified but "max" is not, then "max" == "min" - If "max" is specified by "min" is not, then "min" == "max". - - It is an error if max < min. - - It is an error if the value of any of these fields is negative. - - If neither "min" nor "max" is specified for a resource, use the default values below. -
- */ -public interface ResourceRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/class
- *
- * Always 'ResourceRequirement' *
- */ - - ResourceRequirement_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/coresMin
- *
- * Minimum reserved number of CPU cores (default is 1) *
- */ - - Object getCoresMin(); - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/coresMax
- *
- * Maximum reserved number of CPU cores *
- */ - - Object getCoresMax(); - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/ramMin
- *
- * Minimum reserved RAM in mebibytes (2**20) (default is 256) *
- */ - - Object getRamMin(); - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/ramMax
- *
- * Maximum reserved RAM in mebibytes (2**20) *
- */ - - Object getRamMax(); - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/tmpdirMin
- *
- * Minimum reserved filesystem based storage for the designated temporary directory, in mebibytes (2**20) (default is 1024) *
- */ - - Object getTmpdirMin(); - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/tmpdirMax
- *
- * Maximum reserved filesystem based storage for the designated temporary directory, in mebibytes (2**20) *
- */ - - Object getTmpdirMax(); - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/outdirMin
- *
- * Minimum reserved filesystem based storage for the designated output directory, in mebibytes (2**20) (default is 1024) *
- */ - - Object getOutdirMin(); - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/outdirMax
- *
- * Maximum reserved filesystem based storage for the designated output directory, in mebibytes (2**20) *
- */ - - Object getOutdirMax(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ResourceRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/ResourceRequirementImpl.java deleted file mode 100644 index d0898a7b..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ResourceRequirementImpl.java +++ /dev/null @@ -1,353 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#ResourceRequirement
- Specify basic hardware resource requirements. - - "min" is the minimum amount of a resource that must be reserved to schedule - a job. If "min" cannot be satisfied, the job should not be run. - - "max" is the maximum amount of a resource that the job shall be permitted - to use. If a node has sufficient resources, multiple jobs may be scheduled - on a single node provided each job's "max" resource requirements are - met. If a job attempts to exceed its "max" resource allocation, an - implementation may deny additional resources, which may result in job - failure. - - If "min" is specified but "max" is not, then "max" == "min" - If "max" is specified by "min" is not, then "min" == "max". - - It is an error if max < min. - - It is an error if the value of any of these fields is negative. - - If neither "min" nor "max" is specified for a resource, use the default values below. -
- */ -public class ResourceRequirementImpl extends SaveableImpl implements ResourceRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private ResourceRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/class
- *
- * Always 'ResourceRequirement' *
- */ - - public ResourceRequirement_class getClass_() { - return this.class_; - } - - private Object coresMin; - - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/coresMin
- *
- * Minimum reserved number of CPU cores (default is 1) *
- */ - - public Object getCoresMin() { - return this.coresMin; - } - - private Object coresMax; - - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/coresMax
- *
- * Maximum reserved number of CPU cores *
- */ - - public Object getCoresMax() { - return this.coresMax; - } - - private Object ramMin; - - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/ramMin
- *
- * Minimum reserved RAM in mebibytes (2**20) (default is 256) *
- */ - - public Object getRamMin() { - return this.ramMin; - } - - private Object ramMax; - - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/ramMax
- *
- * Maximum reserved RAM in mebibytes (2**20) *
- */ - - public Object getRamMax() { - return this.ramMax; - } - - private Object tmpdirMin; - - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/tmpdirMin
- *
- * Minimum reserved filesystem based storage for the designated temporary directory, in mebibytes (2**20) (default is 1024) *
- */ - - public Object getTmpdirMin() { - return this.tmpdirMin; - } - - private Object tmpdirMax; - - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/tmpdirMax
- *
- * Maximum reserved filesystem based storage for the designated temporary directory, in mebibytes (2**20) *
- */ - - public Object getTmpdirMax() { - return this.tmpdirMax; - } - - private Object outdirMin; - - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/outdirMin
- *
- * Minimum reserved filesystem based storage for the designated output directory, in mebibytes (2**20) (default is 1024) *
- */ - - public Object getOutdirMin() { - return this.outdirMin; - } - - private Object outdirMax; - - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/outdirMax
- *
- * Maximum reserved filesystem based storage for the designated output directory, in mebibytes (2**20) *
- */ - - public Object getOutdirMax() { - return this.outdirMax; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of ResourceRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public ResourceRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("ResourceRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - ResourceRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_ResourceRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Object coresMin; - - if (__doc.containsKey("coresMin")) { - try { - coresMin = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_ExpressionLoader - .loadField(__doc.get("coresMin"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - coresMin = null; // won't be used but prevents compiler from complaining. - final String __message = "the `coresMin` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - coresMin = null; - } - Object coresMax; - - if (__doc.containsKey("coresMax")) { - try { - coresMax = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_ExpressionLoader - .loadField(__doc.get("coresMax"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - coresMax = null; // won't be used but prevents compiler from complaining. - final String __message = "the `coresMax` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - coresMax = null; - } - Object ramMin; - - if (__doc.containsKey("ramMin")) { - try { - ramMin = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_ExpressionLoader - .loadField(__doc.get("ramMin"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - ramMin = null; // won't be used but prevents compiler from complaining. - final String __message = "the `ramMin` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - ramMin = null; - } - Object ramMax; - - if (__doc.containsKey("ramMax")) { - try { - ramMax = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_ExpressionLoader - .loadField(__doc.get("ramMax"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - ramMax = null; // won't be used but prevents compiler from complaining. - final String __message = "the `ramMax` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - ramMax = null; - } - Object tmpdirMin; - - if (__doc.containsKey("tmpdirMin")) { - try { - tmpdirMin = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_ExpressionLoader - .loadField(__doc.get("tmpdirMin"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - tmpdirMin = null; // won't be used but prevents compiler from complaining. - final String __message = "the `tmpdirMin` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - tmpdirMin = null; - } - Object tmpdirMax; - - if (__doc.containsKey("tmpdirMax")) { - try { - tmpdirMax = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_ExpressionLoader - .loadField(__doc.get("tmpdirMax"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - tmpdirMax = null; // won't be used but prevents compiler from complaining. - final String __message = "the `tmpdirMax` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - tmpdirMax = null; - } - Object outdirMin; - - if (__doc.containsKey("outdirMin")) { - try { - outdirMin = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_ExpressionLoader - .loadField(__doc.get("outdirMin"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - outdirMin = null; // won't be used but prevents compiler from complaining. - final String __message = "the `outdirMin` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - outdirMin = null; - } - Object outdirMax; - - if (__doc.containsKey("outdirMax")) { - try { - outdirMax = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_ExpressionLoader - .loadField(__doc.get("outdirMax"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - outdirMax = null; // won't be used but prevents compiler from complaining. - final String __message = "the `outdirMax` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - outdirMax = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (ResourceRequirement_class) class_; - this.coresMin = (Object) coresMin; - this.coresMax = (Object) coresMax; - this.ramMin = (Object) ramMin; - this.ramMax = (Object) ramMax; - this.tmpdirMin = (Object) tmpdirMin; - this.tmpdirMax = (Object) tmpdirMax; - this.outdirMin = (Object) outdirMin; - this.outdirMax = (Object) outdirMax; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ResourceRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_1/ResourceRequirement_class.java deleted file mode 100644 index 320377de..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ResourceRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum ResourceRequirement_class { - RESOURCEREQUIREMENT("ResourceRequirement"); - - private static String[] symbols = new String[] {"ResourceRequirement"}; - private String docVal; - - private ResourceRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static ResourceRequirement_class fromDocumentVal(final String docVal) { - for(final ResourceRequirement_class val : ResourceRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", ResourceRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ScatterFeatureRequirement.java b/src/main/java/org/w3id/cwl/cwl1_1/ScatterFeatureRequirement.java deleted file mode 100644 index fa897b27..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ScatterFeatureRequirement.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#ScatterFeatureRequirement
This interface is implemented by {@link ScatterFeatureRequirementImpl}
- Indicates that the workflow platform must support the `scatter` and - `scatterMethod` fields of [WorkflowStep](#WorkflowStep). -
- */ -public interface ScatterFeatureRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#ScatterFeatureRequirement/class
- *
- * Always 'ScatterFeatureRequirement' *
- */ - - ScatterFeatureRequirement_class getClass_(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ScatterFeatureRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/ScatterFeatureRequirementImpl.java deleted file mode 100644 index e2732395..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ScatterFeatureRequirementImpl.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#ScatterFeatureRequirement
- Indicates that the workflow platform must support the `scatter` and - `scatterMethod` fields of [WorkflowStep](#WorkflowStep). -
- */ -public class ScatterFeatureRequirementImpl extends SaveableImpl implements ScatterFeatureRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private ScatterFeatureRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#ScatterFeatureRequirement/class
- *
- * Always 'ScatterFeatureRequirement' *
- */ - - public ScatterFeatureRequirement_class getClass_() { - return this.class_; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of ScatterFeatureRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public ScatterFeatureRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("ScatterFeatureRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - ScatterFeatureRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_ScatterFeatureRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (ScatterFeatureRequirement_class) class_; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ScatterFeatureRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_1/ScatterFeatureRequirement_class.java deleted file mode 100644 index 4526da54..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ScatterFeatureRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum ScatterFeatureRequirement_class { - SCATTERFEATUREREQUIREMENT("ScatterFeatureRequirement"); - - private static String[] symbols = new String[] {"ScatterFeatureRequirement"}; - private String docVal; - - private ScatterFeatureRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static ScatterFeatureRequirement_class fromDocumentVal(final String docVal) { - for(final ScatterFeatureRequirement_class val : ScatterFeatureRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", ScatterFeatureRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ScatterMethod.java b/src/main/java/org/w3id/cwl/cwl1_1/ScatterMethod.java deleted file mode 100644 index 8f6ea379..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ScatterMethod.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum ScatterMethod { - DOTPRODUCT("dotproduct"), - NESTED_CROSSPRODUCT("nested_crossproduct"), - FLAT_CROSSPRODUCT("flat_crossproduct"); - - private static String[] symbols = new String[] {"dotproduct", "nested_crossproduct", "flat_crossproduct"}; - private String docVal; - - private ScatterMethod(final String docVal) { - this.docVal = docVal; - } - - public static ScatterMethod fromDocumentVal(final String docVal) { - for(final ScatterMethod val : ScatterMethod.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", ScatterMethod.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/SchemaDefRequirement.java b/src/main/java/org/w3id/cwl/cwl1_1/SchemaDefRequirement.java deleted file mode 100644 index 70c73893..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/SchemaDefRequirement.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#SchemaDefRequirement
This interface is implemented by {@link SchemaDefRequirementImpl}
- This field consists of an array of type definitions which must be used when - interpreting the `inputs` and `outputs` fields. When a `type` field - contain a IRI, the implementation must check if the type is defined in - `schemaDefs` and use that definition. If the type is not found in - `schemaDefs`, it is an error. The entries in `schemaDefs` must be - processed in the order listed such that later schema definitions may refer - to earlier schema definitions. -
- */ -public interface SchemaDefRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#SchemaDefRequirement/class
- *
- * Always 'SchemaDefRequirement' *
- */ - - SchemaDefRequirement_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#SchemaDefRequirement/types
- *
- * The list of type definitions. *
- */ - - java.util.List getTypes(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/SchemaDefRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/SchemaDefRequirementImpl.java deleted file mode 100644 index e1745f81..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/SchemaDefRequirementImpl.java +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#SchemaDefRequirement
- This field consists of an array of type definitions which must be used when - interpreting the `inputs` and `outputs` fields. When a `type` field - contain a IRI, the implementation must check if the type is defined in - `schemaDefs` and use that definition. If the type is not found in - `schemaDefs`, it is an error. The entries in `schemaDefs` must be - processed in the order listed such that later schema definitions may refer - to earlier schema definitions. -
- */ -public class SchemaDefRequirementImpl extends SaveableImpl implements SchemaDefRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private SchemaDefRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#SchemaDefRequirement/class
- *
- * Always 'SchemaDefRequirement' *
- */ - - public SchemaDefRequirement_class getClass_() { - return this.class_; - } - - private java.util.List types; - - /** - * Getter for property https://w3id.org/cwl/cwl#SchemaDefRequirement/types
- *
- * The list of type definitions. *
- */ - - public java.util.List getTypes() { - return this.types; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of SchemaDefRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public SchemaDefRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("SchemaDefRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - SchemaDefRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_SchemaDefRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.List types; - try { - types = - LoaderInstances - .array_of_union_of_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema - .loadField(__doc.get("types"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - types = null; // won't be used but prevents compiler from complaining. - final String __message = "the `types` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (SchemaDefRequirement_class) class_; - this.types = (java.util.List) types; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/SchemaDefRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_1/SchemaDefRequirement_class.java deleted file mode 100644 index 4ba8175f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/SchemaDefRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum SchemaDefRequirement_class { - SCHEMADEFREQUIREMENT("SchemaDefRequirement"); - - private static String[] symbols = new String[] {"SchemaDefRequirement"}; - private String docVal; - - private SchemaDefRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static SchemaDefRequirement_class fromDocumentVal(final String docVal) { - for(final SchemaDefRequirement_class val : SchemaDefRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", SchemaDefRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/SecondaryFileSchema.java b/src/main/java/org/w3id/cwl/cwl1_1/SecondaryFileSchema.java deleted file mode 100644 index b520bb7d..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/SecondaryFileSchema.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#SecondaryFileSchema
This interface is implemented by {@link SecondaryFileSchemaImpl}
- */ -public interface SecondaryFileSchema extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#SecondaryFileSchema/pattern
- *
- * Provides a pattern or expression specifying files or directories that - * should be included alongside the primary file. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getPattern(); - /** - * Getter for property https://w3id.org/cwl/cwl#SecondaryFileSchema/required
- *
- * An implementation must not fail workflow execution if `required` is - * set to `false` and the expected secondary file does not exist. - * Default value for `required` field is `true` for secondary files on - * input and `false` for secondary files on output. - * *
- */ - - Object getRequired(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/SecondaryFileSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/SecondaryFileSchemaImpl.java deleted file mode 100644 index f8d78526..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/SecondaryFileSchemaImpl.java +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#SecondaryFileSchema
- */ -public class SecondaryFileSchemaImpl extends SaveableImpl implements SecondaryFileSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private Object pattern; - - /** - * Getter for property https://w3id.org/cwl/cwl#SecondaryFileSchema/pattern
- *
- * Provides a pattern or expression specifying files or directories that - * should be included alongside the primary file. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getPattern() { - return this.pattern; - } - - private Object required; - - /** - * Getter for property https://w3id.org/cwl/cwl#SecondaryFileSchema/required
- *
- * An implementation must not fail workflow execution if `required` is - * set to `false` and the expected secondary file does not exist. - * Default value for `required` field is `true` for secondary files on - * input and `false` for secondary files on output. - * *
- */ - - public Object getRequired() { - return this.required; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of SecondaryFileSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public SecondaryFileSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("SecondaryFileSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - Object pattern; - try { - pattern = - LoaderInstances - .union_of_StringInstance_or_ExpressionLoader - .loadField(__doc.get("pattern"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - pattern = null; // won't be used but prevents compiler from complaining. - final String __message = "the `pattern` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Object required; - - if (__doc.containsKey("required")) { - try { - required = - LoaderInstances - .union_of_NullInstance_or_BooleanInstance_or_ExpressionLoader - .loadField(__doc.get("required"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - required = null; // won't be used but prevents compiler from complaining. - final String __message = "the `required` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - required = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.pattern = (Object) pattern; - this.required = (Object) required; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ShellCommandRequirement.java b/src/main/java/org/w3id/cwl/cwl1_1/ShellCommandRequirement.java deleted file mode 100644 index 48f71ff9..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ShellCommandRequirement.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#ShellCommandRequirement
This interface is implemented by {@link ShellCommandRequirementImpl}
- Modify the behavior of CommandLineTool to generate a single string - containing a shell command line. Each item in the argument list must be - joined into a string separated by single spaces and quoted to prevent - intepretation by the shell, unless `CommandLineBinding` for that argument - contains `shellQuote: false`. If `shellQuote: false` is specified, the - argument is joined into the command string without quoting, which allows - the use of shell metacharacters such as `|` for pipes. -
- */ -public interface ShellCommandRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#ShellCommandRequirement/class
- *
- * Always 'ShellCommandRequirement' *
- */ - - ShellCommandRequirement_class getClass_(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ShellCommandRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/ShellCommandRequirementImpl.java deleted file mode 100644 index b8d7d9d0..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ShellCommandRequirementImpl.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#ShellCommandRequirement
- Modify the behavior of CommandLineTool to generate a single string - containing a shell command line. Each item in the argument list must be - joined into a string separated by single spaces and quoted to prevent - intepretation by the shell, unless `CommandLineBinding` for that argument - contains `shellQuote: false`. If `shellQuote: false` is specified, the - argument is joined into the command string without quoting, which allows - the use of shell metacharacters such as `|` for pipes. -
- */ -public class ShellCommandRequirementImpl extends SaveableImpl implements ShellCommandRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private ShellCommandRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#ShellCommandRequirement/class
- *
- * Always 'ShellCommandRequirement' *
- */ - - public ShellCommandRequirement_class getClass_() { - return this.class_; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of ShellCommandRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public ShellCommandRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("ShellCommandRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - ShellCommandRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_ShellCommandRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (ShellCommandRequirement_class) class_; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ShellCommandRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_1/ShellCommandRequirement_class.java deleted file mode 100644 index c7b56717..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ShellCommandRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum ShellCommandRequirement_class { - SHELLCOMMANDREQUIREMENT("ShellCommandRequirement"); - - private static String[] symbols = new String[] {"ShellCommandRequirement"}; - private String docVal; - - private ShellCommandRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static ShellCommandRequirement_class fromDocumentVal(final String docVal) { - for(final ShellCommandRequirement_class val : ShellCommandRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", ShellCommandRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/Sink.java b/src/main/java/org/w3id/cwl/cwl1_1/Sink.java deleted file mode 100644 index 1cd868bc..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/Sink.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#Sink
- */ -public interface Sink extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#source
- *
- * Specifies one or more workflow parameters that will provide input to - * the underlying step parameter. - * *
- */ - - Object getSource(); - /** - * Getter for property https://w3id.org/cwl/cwl#Sink/linkMerge
- *
- * The method to use to merge multiple inbound links into a single array. - * If not specified, the default method is "merge_nested". - * *
- */ - - java.util.Optional getLinkMerge(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/SoftwarePackage.java b/src/main/java/org/w3id/cwl/cwl1_1/SoftwarePackage.java deleted file mode 100644 index e8552884..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/SoftwarePackage.java +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#SoftwarePackage
This interface is implemented by {@link SoftwarePackageImpl}
- */ -public interface SoftwarePackage extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/package
- *
- * The name of the software to be made available. If the name is - * common, inconsistent, or otherwise ambiguous it should be combined with - * one or more identifiers in the `specs` field. - * *
- */ - - String getPackage(); - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/version
- *
- * The (optional) versions of the software that are known to be - * compatible. - * *
- */ - - java.util.Optional> getVersion(); - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/specs
- *
- * One or more [IRI](https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier)s - * identifying resources for installing or enabling the software named in - * the `package` field. Implementations may provide resolvers which map - * these software identifer IRIs to some configuration action; or they can - * use only the name from the `package` field on a best effort basis. - * - * For example, the IRI https://packages.debian.org/bowtie could - * be resolved with `apt-get install bowtie`. The IRI - * https://anaconda.org/bioconda/bowtie could be resolved with `conda - * install -c bioconda bowtie`. - * - * IRIs can also be system independent and used to map to a specific - * software installation or selection mechanism. - * Using [RRID](https://www.identifiers.org/rrid/) as an example: - * https://identifiers.org/rrid/RRID:SCR_005476 - * could be fulfilled using the above mentioned Debian or bioconda - * package, a local installation managed by [Environement Modules](http://modules.sourceforge.net/), - * or any other mechanism the platform chooses. IRIs can also be from - * identifer sources that are discipline specific yet still system - * independent. As an example, the equivalent [ELIXIR Tools and Data - * Service Registry](https://bio.tools) IRI to the previous RRID example is - * https://bio.tools/tool/bowtie2/version/2.2.8. - * If supported by a given registry, implementations are encouraged to - * query these system independent sofware identifier IRIs directly for - * links to packaging systems. - * - * A site specific IRI can be listed as well. For example, an academic - * computing cluster using Environement Modules could list the IRI - * `https://hpc.example.edu/modules/bowtie-tbb/1.22` to indicate that - * `module load bowtie-tbb/1.1.2` should be executed to make available - * `bowtie` version 1.1.2 compiled with the TBB library prior to running - * the accompanying Workflow or CommandLineTool. Note that the example IRI - * is specific to a particular institution and computing environment as - * the Environment Modules system does not have a common namespace or - * standardized naming convention. - * - * This last example is the least portable and should only be used if - * mechanisms based off of the `package` field or more generic IRIs are - * unavailable or unsuitable. While harmless to other sites, site specific - * software IRIs should be left out of shared CWL descriptions to avoid - * clutter. - * *
- */ - - java.util.Optional> getSpecs(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/SoftwarePackageImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/SoftwarePackageImpl.java deleted file mode 100644 index c2680c1f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/SoftwarePackageImpl.java +++ /dev/null @@ -1,198 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#SoftwarePackage
- */ -public class SoftwarePackageImpl extends SaveableImpl implements SoftwarePackage { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private String package_; - - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/package
- *
- * The name of the software to be made available. If the name is - * common, inconsistent, or otherwise ambiguous it should be combined with - * one or more identifiers in the `specs` field. - * *
- */ - - public String getPackage() { - return this.package_; - } - - private java.util.Optional> version; - - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/version
- *
- * The (optional) versions of the software that are known to be - * compatible. - * *
- */ - - public java.util.Optional> getVersion() { - return this.version; - } - - private java.util.Optional> specs; - - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/specs
- *
- * One or more [IRI](https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier)s - * identifying resources for installing or enabling the software named in - * the `package` field. Implementations may provide resolvers which map - * these software identifer IRIs to some configuration action; or they can - * use only the name from the `package` field on a best effort basis. - * - * For example, the IRI https://packages.debian.org/bowtie could - * be resolved with `apt-get install bowtie`. The IRI - * https://anaconda.org/bioconda/bowtie could be resolved with `conda - * install -c bioconda bowtie`. - * - * IRIs can also be system independent and used to map to a specific - * software installation or selection mechanism. - * Using [RRID](https://www.identifiers.org/rrid/) as an example: - * https://identifiers.org/rrid/RRID:SCR_005476 - * could be fulfilled using the above mentioned Debian or bioconda - * package, a local installation managed by [Environement Modules](http://modules.sourceforge.net/), - * or any other mechanism the platform chooses. IRIs can also be from - * identifer sources that are discipline specific yet still system - * independent. As an example, the equivalent [ELIXIR Tools and Data - * Service Registry](https://bio.tools) IRI to the previous RRID example is - * https://bio.tools/tool/bowtie2/version/2.2.8. - * If supported by a given registry, implementations are encouraged to - * query these system independent sofware identifier IRIs directly for - * links to packaging systems. - * - * A site specific IRI can be listed as well. For example, an academic - * computing cluster using Environement Modules could list the IRI - * `https://hpc.example.edu/modules/bowtie-tbb/1.22` to indicate that - * `module load bowtie-tbb/1.1.2` should be executed to make available - * `bowtie` version 1.1.2 compiled with the TBB library prior to running - * the accompanying Workflow or CommandLineTool. Note that the example IRI - * is specific to a particular institution and computing environment as - * the Environment Modules system does not have a common namespace or - * standardized naming convention. - * - * This last example is the least portable and should only be used if - * mechanisms based off of the `package` field or more generic IRIs are - * unavailable or unsuitable. While harmless to other sites, site specific - * software IRIs should be left out of shared CWL descriptions to avoid - * clutter. - * *
- */ - - public java.util.Optional> getSpecs() { - return this.specs; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of SoftwarePackageImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public SoftwarePackageImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("SoftwarePackageImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - String package_; - try { - package_ = - LoaderInstances - .StringInstance - .loadField(__doc.get("package"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - package_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `package` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional> version; - - if (__doc.containsKey("version")) { - try { - version = - LoaderInstances - .optional_array_of_StringInstance - .loadField(__doc.get("version"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - version = null; // won't be used but prevents compiler from complaining. - final String __message = "the `version` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - version = null; - } - java.util.Optional> specs; - - if (__doc.containsKey("specs")) { - try { - specs = - LoaderInstances - .uri_optional_array_of_StringInstance_False_False_None_True - .loadField(__doc.get("specs"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - specs = null; // won't be used but prevents compiler from complaining. - final String __message = "the `specs` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - specs = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.package_ = (String) package_; - this.version = (java.util.Optional>) version; - this.specs = (java.util.Optional>) specs; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/SoftwareRequirement.java b/src/main/java/org/w3id/cwl/cwl1_1/SoftwareRequirement.java deleted file mode 100644 index e93600d5..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/SoftwareRequirement.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#SoftwareRequirement
This interface is implemented by {@link SoftwareRequirementImpl}
- A list of software packages that should be configured in the environment of - the defined process. -
- */ -public interface SoftwareRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwareRequirement/class
- *
- * Always 'SoftwareRequirement' *
- */ - - SoftwareRequirement_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwareRequirement/packages
- *
- * The list of software to be configured. *
- */ - - java.util.List getPackages(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/SoftwareRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/SoftwareRequirementImpl.java deleted file mode 100644 index 3f44c356..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/SoftwareRequirementImpl.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#SoftwareRequirement
- A list of software packages that should be configured in the environment of - the defined process. -
- */ -public class SoftwareRequirementImpl extends SaveableImpl implements SoftwareRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private SoftwareRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwareRequirement/class
- *
- * Always 'SoftwareRequirement' *
- */ - - public SoftwareRequirement_class getClass_() { - return this.class_; - } - - private java.util.List packages; - - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwareRequirement/packages
- *
- * The list of software to be configured. *
- */ - - public java.util.List getPackages() { - return this.packages; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of SoftwareRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public SoftwareRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("SoftwareRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - SoftwareRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_SoftwareRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.List packages; - try { - packages = - LoaderInstances - .idmap_packages_array_of_SoftwarePackage - .loadField(__doc.get("packages"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - packages = null; // won't be used but prevents compiler from complaining. - final String __message = "the `packages` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (SoftwareRequirement_class) class_; - this.packages = (java.util.List) packages; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/SoftwareRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_1/SoftwareRequirement_class.java deleted file mode 100644 index 9f56cc01..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/SoftwareRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum SoftwareRequirement_class { - SOFTWAREREQUIREMENT("SoftwareRequirement"); - - private static String[] symbols = new String[] {"SoftwareRequirement"}; - private String docVal; - - private SoftwareRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static SoftwareRequirement_class fromDocumentVal(final String docVal) { - for(final SoftwareRequirement_class val : SoftwareRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", SoftwareRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/StepInputExpressionRequirement.java b/src/main/java/org/w3id/cwl/cwl1_1/StepInputExpressionRequirement.java deleted file mode 100644 index 14da1eb6..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/StepInputExpressionRequirement.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#StepInputExpressionRequirement
This interface is implemented by {@link StepInputExpressionRequirementImpl}
- Indicate that the workflow platform must support the `valueFrom` field - of [WorkflowStepInput](#WorkflowStepInput). -
- */ -public interface StepInputExpressionRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#StepInputExpressionRequirement/class
- *
- * Always 'StepInputExpressionRequirement' *
- */ - - StepInputExpressionRequirement_class getClass_(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/StepInputExpressionRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/StepInputExpressionRequirementImpl.java deleted file mode 100644 index 4efff15c..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/StepInputExpressionRequirementImpl.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#StepInputExpressionRequirement
- Indicate that the workflow platform must support the `valueFrom` field - of [WorkflowStepInput](#WorkflowStepInput). -
- */ -public class StepInputExpressionRequirementImpl extends SaveableImpl implements StepInputExpressionRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private StepInputExpressionRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#StepInputExpressionRequirement/class
- *
- * Always 'StepInputExpressionRequirement' *
- */ - - public StepInputExpressionRequirement_class getClass_() { - return this.class_; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of StepInputExpressionRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public StepInputExpressionRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("StepInputExpressionRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - StepInputExpressionRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_StepInputExpressionRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (StepInputExpressionRequirement_class) class_; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/StepInputExpressionRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_1/StepInputExpressionRequirement_class.java deleted file mode 100644 index f6a7139d..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/StepInputExpressionRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum StepInputExpressionRequirement_class { - STEPINPUTEXPRESSIONREQUIREMENT("StepInputExpressionRequirement"); - - private static String[] symbols = new String[] {"StepInputExpressionRequirement"}; - private String docVal; - - private StepInputExpressionRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static StepInputExpressionRequirement_class fromDocumentVal(final String docVal) { - for(final StepInputExpressionRequirement_class val : StepInputExpressionRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", StepInputExpressionRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/SubworkflowFeatureRequirement.java b/src/main/java/org/w3id/cwl/cwl1_1/SubworkflowFeatureRequirement.java deleted file mode 100644 index fb034edf..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/SubworkflowFeatureRequirement.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#SubworkflowFeatureRequirement
This interface is implemented by {@link SubworkflowFeatureRequirementImpl}
- Indicates that the workflow platform must support nested workflows in - the `run` field of [WorkflowStep](#WorkflowStep). -
- */ -public interface SubworkflowFeatureRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#SubworkflowFeatureRequirement/class
- *
- * Always 'SubworkflowFeatureRequirement' *
- */ - - SubworkflowFeatureRequirement_class getClass_(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/SubworkflowFeatureRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/SubworkflowFeatureRequirementImpl.java deleted file mode 100644 index 4373aab3..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/SubworkflowFeatureRequirementImpl.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#SubworkflowFeatureRequirement
- Indicates that the workflow platform must support nested workflows in - the `run` field of [WorkflowStep](#WorkflowStep). -
- */ -public class SubworkflowFeatureRequirementImpl extends SaveableImpl implements SubworkflowFeatureRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private SubworkflowFeatureRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#SubworkflowFeatureRequirement/class
- *
- * Always 'SubworkflowFeatureRequirement' *
- */ - - public SubworkflowFeatureRequirement_class getClass_() { - return this.class_; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of SubworkflowFeatureRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public SubworkflowFeatureRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("SubworkflowFeatureRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - SubworkflowFeatureRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_SubworkflowFeatureRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (SubworkflowFeatureRequirement_class) class_; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/SubworkflowFeatureRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_1/SubworkflowFeatureRequirement_class.java deleted file mode 100644 index 53793c5c..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/SubworkflowFeatureRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum SubworkflowFeatureRequirement_class { - SUBWORKFLOWFEATUREREQUIREMENT("SubworkflowFeatureRequirement"); - - private static String[] symbols = new String[] {"SubworkflowFeatureRequirement"}; - private String docVal; - - private SubworkflowFeatureRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static SubworkflowFeatureRequirement_class fromDocumentVal(final String docVal) { - for(final SubworkflowFeatureRequirement_class val : SubworkflowFeatureRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", SubworkflowFeatureRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ToolTimeLimit.java b/src/main/java/org/w3id/cwl/cwl1_1/ToolTimeLimit.java deleted file mode 100644 index 167eb1d2..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ToolTimeLimit.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#ToolTimeLimit
This interface is implemented by {@link ToolTimeLimitImpl}
- Set an upper limit on the execution time of a CommandLineTool. - A CommandLineTool whose execution duration exceeds the time - limit may be preemptively terminated and considered failed. - May also be used by batch systems to make scheduling decisions. - The execution duration excludes external operations, such as - staging of files, pulling a docker image etc, and only counts - wall-time for the execution of the command line itself. -
- */ -public interface ToolTimeLimit extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#ToolTimeLimit/class
- *
- * Always 'ToolTimeLimit' *
- */ - - ToolTimeLimit_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#ToolTimeLimit/timelimit
- *
- * The time limit, in seconds. A time limit of zero means no - * time limit. Negative time limits are an error. - * *
- */ - - Object getTimelimit(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ToolTimeLimitImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/ToolTimeLimitImpl.java deleted file mode 100644 index a53376f1..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ToolTimeLimitImpl.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#ToolTimeLimit
- Set an upper limit on the execution time of a CommandLineTool. - A CommandLineTool whose execution duration exceeds the time - limit may be preemptively terminated and considered failed. - May also be used by batch systems to make scheduling decisions. - The execution duration excludes external operations, such as - staging of files, pulling a docker image etc, and only counts - wall-time for the execution of the command line itself. -
- */ -public class ToolTimeLimitImpl extends SaveableImpl implements ToolTimeLimit { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private ToolTimeLimit_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#ToolTimeLimit/class
- *
- * Always 'ToolTimeLimit' *
- */ - - public ToolTimeLimit_class getClass_() { - return this.class_; - } - - private Object timelimit; - - /** - * Getter for property https://w3id.org/cwl/cwl#ToolTimeLimit/timelimit
- *
- * The time limit, in seconds. A time limit of zero means no - * time limit. Negative time limits are an error. - * *
- */ - - public Object getTimelimit() { - return this.timelimit; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of ToolTimeLimitImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public ToolTimeLimitImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("ToolTimeLimitImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - ToolTimeLimit_class class_; - try { - class_ = - LoaderInstances - .uri_ToolTimeLimit_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Object timelimit; - try { - timelimit = - LoaderInstances - .union_of_IntegerInstance_or_LongInstance_or_ExpressionLoader - .loadField(__doc.get("timelimit"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - timelimit = null; // won't be used but prevents compiler from complaining. - final String __message = "the `timelimit` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (ToolTimeLimit_class) class_; - this.timelimit = (Object) timelimit; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/ToolTimeLimit_class.java b/src/main/java/org/w3id/cwl/cwl1_1/ToolTimeLimit_class.java deleted file mode 100644 index 15395f57..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/ToolTimeLimit_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum ToolTimeLimit_class { - TOOLTIMELIMIT("ToolTimeLimit"); - - private static String[] symbols = new String[] {"ToolTimeLimit"}; - private String docVal; - - private ToolTimeLimit_class(final String docVal) { - this.docVal = docVal; - } - - public static ToolTimeLimit_class fromDocumentVal(final String docVal) { - for(final ToolTimeLimit_class val : ToolTimeLimit_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", ToolTimeLimit_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/UnionSchema.java b/src/main/java/org/w3id/cwl/cwl1_1/UnionSchema.java deleted file mode 100644 index 58a8e291..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/UnionSchema.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/salad#UnionSchema
This interface is implemented by {@link UnionSchemaImpl}
- */ -public interface UnionSchema extends Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#names
- *
- * Defines the type of the union elements. *
- */ - - Object getNames(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `union` *
- */ - - Union_name getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/UnionSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/UnionSchemaImpl.java deleted file mode 100644 index c7fd20db..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/UnionSchemaImpl.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/salad#UnionSchema
- */ -public class UnionSchemaImpl extends SaveableImpl implements UnionSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private Object names; - - /** - * Getter for property https://w3id.org/cwl/salad#names
- *
- * Defines the type of the union elements. *
- */ - - public Object getNames() { - return this.names; - } - - private Union_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `union` *
- */ - - public Union_name getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of UnionSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public UnionSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("UnionSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - Object names; - try { - names = - LoaderInstances - .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 - .loadField(__doc.get("names"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - names = null; // won't be used but prevents compiler from complaining. - final String __message = "the `names` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Union_name type; - try { - type = - LoaderInstances - .typedsl_Union_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.names = (Object) names; - this.type = (Union_name) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/Union_name.java b/src/main/java/org/w3id/cwl/cwl1_1/Union_name.java deleted file mode 100644 index dbbb0e0c..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/Union_name.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum Union_name { - UNION("union"); - - private static String[] symbols = new String[] {"union"}; - private String docVal; - - private Union_name(final String docVal) { - this.docVal = docVal; - } - - public static Union_name fromDocumentVal(final String docVal) { - for(final Union_name val : Union_name.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", Union_name.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/WorkReuse.java b/src/main/java/org/w3id/cwl/cwl1_1/WorkReuse.java deleted file mode 100644 index a094fbd4..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/WorkReuse.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#WorkReuse
This interface is implemented by {@link WorkReuseImpl}
- For implementations that support reusing output from past work (on - the assumption that same code and same input produce same - results), control whether to enable or disable the reuse behavior - for a particular tool or step (to accomodate situations where that - assumption is incorrect). A reused step is not executed but - instead returns the same output as the original execution. - - If `enableReuse` is not specified, correct tools should assume it - is enabled by default. -
- */ -public interface WorkReuse extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#WorkReuse/class
- *
- * Always 'WorkReuse' *
- */ - - WorkReuse_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#WorkReuse/enableReuse
- - */ - - Object getEnableReuse(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/WorkReuseImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/WorkReuseImpl.java deleted file mode 100644 index 516fc90c..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/WorkReuseImpl.java +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkReuse
- For implementations that support reusing output from past work (on - the assumption that same code and same input produce same - results), control whether to enable or disable the reuse behavior - for a particular tool or step (to accomodate situations where that - assumption is incorrect). A reused step is not executed but - instead returns the same output as the original execution. - - If `enableReuse` is not specified, correct tools should assume it - is enabled by default. -
- */ -public class WorkReuseImpl extends SaveableImpl implements WorkReuse { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private WorkReuse_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#WorkReuse/class
- *
- * Always 'WorkReuse' *
- */ - - public WorkReuse_class getClass_() { - return this.class_; - } - - private Object enableReuse; - - /** - * Getter for property https://w3id.org/cwl/cwl#WorkReuse/enableReuse
- - */ - - public Object getEnableReuse() { - return this.enableReuse; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of WorkReuseImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public WorkReuseImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("WorkReuseImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - WorkReuse_class class_; - try { - class_ = - LoaderInstances - .uri_WorkReuse_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Object enableReuse; - try { - enableReuse = - LoaderInstances - .union_of_BooleanInstance_or_ExpressionLoader - .loadField(__doc.get("enableReuse"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - enableReuse = null; // won't be used but prevents compiler from complaining. - final String __message = "the `enableReuse` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (WorkReuse_class) class_; - this.enableReuse = (Object) enableReuse; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/WorkReuse_class.java b/src/main/java/org/w3id/cwl/cwl1_1/WorkReuse_class.java deleted file mode 100644 index 01900bd4..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/WorkReuse_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum WorkReuse_class { - WORKREUSE("WorkReuse"); - - private static String[] symbols = new String[] {"WorkReuse"}; - private String docVal; - - private WorkReuse_class(final String docVal) { - this.docVal = docVal; - } - - public static WorkReuse_class fromDocumentVal(final String docVal) { - for(final WorkReuse_class val : WorkReuse_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", WorkReuse_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/Workflow.java b/src/main/java/org/w3id/cwl/cwl1_1/Workflow.java deleted file mode 100644 index dc16b560..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/Workflow.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#Workflow
This interface is implemented by {@link WorkflowImpl}
- A workflow describes a set of **steps** and the **dependencies** between - those steps. When a step produces output that will be consumed by a - second step, the first step is a dependency of the second step. - - When there is a dependency, the workflow engine must execute the preceding - step and wait for it to successfully produce output before executing the - dependent step. If two steps are defined in the workflow graph that - are not directly or indirectly dependent, these steps are **independent**, - and may execute in any order or execute concurrently. A workflow is - complete when all steps have been executed. - - Dependencies between parameters are expressed using the `source` field on - [workflow step input parameters](#WorkflowStepInput) and [workflow output - parameters](#WorkflowOutputParameter). - - The `source` field expresses the dependency of one parameter on another - such that when a value is associated with the parameter specified by - `source`, that value is propagated to the destination parameter. When all - data links inbound to a given step are fufilled, the step is ready to - execute. - - ## Workflow success and failure - - A completed step must result in one of `success`, `temporaryFailure` or - `permanentFailure` states. An implementation may choose to retry a step - execution which resulted in `temporaryFailure`. An implementation may - choose to either continue running other steps of a workflow, or terminate - immediately upon `permanentFailure`. - - * If any step of a workflow execution results in `permanentFailure`, then - the workflow status is `permanentFailure`. - - * If one or more steps result in `temporaryFailure` and all other steps - complete `success` or are not executed, then the workflow status is - `temporaryFailure`. - - * If all workflow steps are executed and complete with `success`, then the - workflow status is `success`. - - # Extensions - - [ScatterFeatureRequirement](#ScatterFeatureRequirement) and - [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) are - available as standard [extensions](#Extensions_and_Metadata) to core - workflow semantics. -
- */ -public interface Workflow extends Process, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#Workflow/class
- - */ - - Workflow_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#inputs
- *
- * Defines the input parameters of the process. The process is ready to - * run when all required input parameters are associated with concrete - * values. Input parameters include a schema for each parameter which is - * used to validate the input object. It may also be used to build a user - * interface for constructing the input object. - * - * When accepting an input object, all input parameters must have a value. - * If an input parameter is missing from the input object, it must be - * assigned a value of `null` (or the value of `default` for that - * parameter, if provided) for the purposes of validation and evaluation - * of expressions. - * *
- */ - - java.util.List getInputs(); - /** - * Getter for property https://w3id.org/cwl/cwl#outputs
- *
- * Defines the parameters representing the output of the process. May be - * used to generate and/or validate the output object. - * *
- */ - - java.util.List getOutputs(); - /** - * Getter for property https://w3id.org/cwl/cwl#requirements
- *
- * Declares requirements that apply to either the runtime environment or the - * workflow engine that must be met in order to execute this process. If - * an implementation cannot satisfy all requirements, or a requirement is - * listed which is not recognized by the implementation, it is a fatal - * error and the implementation must not attempt to run the process, - * unless overridden at user option. - * *
- */ - - java.util.Optional> getRequirements(); - /** - * Getter for property https://w3id.org/cwl/cwl#hints
- *
- * Declares hints applying to either the runtime environment or the - * workflow engine that may be helpful in executing this process. It is - * not an error if an implementation cannot satisfy all hints, however - * the implementation may report a warning. - * *
- */ - - java.util.Optional> getHints(); - /** - * Getter for property https://w3id.org/cwl/cwl#cwlVersion
- *
- * CWL document version. Always required at the document root. Not - * required for a Process embedded inside another Process. - * *
- */ - - java.util.Optional getCwlVersion(); - /** - * Getter for property https://w3id.org/cwl/cwl#Workflow/steps
- *
- * The individual steps that make up the workflow. Each step is executed when all of its - * input data links are fufilled. An implementation may choose to execute - * the steps in a different order than listed and/or execute steps - * concurrently, provided that dependencies between steps are met. - * *
- */ - - java.util.List getSteps(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/WorkflowImpl.java deleted file mode 100644 index 393cf5f2..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowImpl.java +++ /dev/null @@ -1,432 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#Workflow
- A workflow describes a set of **steps** and the **dependencies** between - those steps. When a step produces output that will be consumed by a - second step, the first step is a dependency of the second step. - - When there is a dependency, the workflow engine must execute the preceding - step and wait for it to successfully produce output before executing the - dependent step. If two steps are defined in the workflow graph that - are not directly or indirectly dependent, these steps are **independent**, - and may execute in any order or execute concurrently. A workflow is - complete when all steps have been executed. - - Dependencies between parameters are expressed using the `source` field on - [workflow step input parameters](#WorkflowStepInput) and [workflow output - parameters](#WorkflowOutputParameter). - - The `source` field expresses the dependency of one parameter on another - such that when a value is associated with the parameter specified by - `source`, that value is propagated to the destination parameter. When all - data links inbound to a given step are fufilled, the step is ready to - execute. - - ## Workflow success and failure - - A completed step must result in one of `success`, `temporaryFailure` or - `permanentFailure` states. An implementation may choose to retry a step - execution which resulted in `temporaryFailure`. An implementation may - choose to either continue running other steps of a workflow, or terminate - immediately upon `permanentFailure`. - - * If any step of a workflow execution results in `permanentFailure`, then - the workflow status is `permanentFailure`. - - * If one or more steps result in `temporaryFailure` and all other steps - complete `success` or are not executed, then the workflow status is - `temporaryFailure`. - - * If all workflow steps are executed and complete with `success`, then the - workflow status is `success`. - - # Extensions - - [ScatterFeatureRequirement](#ScatterFeatureRequirement) and - [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) are - available as standard [extensions](#Extensions_and_Metadata) to core - workflow semantics. -
- */ -public class WorkflowImpl extends SaveableImpl implements Workflow { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private Workflow_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#Workflow/class
- - */ - - public Workflow_class getClass_() { - return this.class_; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private java.util.List inputs; - - /** - * Getter for property https://w3id.org/cwl/cwl#inputs
- *
- * Defines the input parameters of the process. The process is ready to - * run when all required input parameters are associated with concrete - * values. Input parameters include a schema for each parameter which is - * used to validate the input object. It may also be used to build a user - * interface for constructing the input object. - * - * When accepting an input object, all input parameters must have a value. - * If an input parameter is missing from the input object, it must be - * assigned a value of `null` (or the value of `default` for that - * parameter, if provided) for the purposes of validation and evaluation - * of expressions. - * *
- */ - - public java.util.List getInputs() { - return this.inputs; - } - - private java.util.List outputs; - - /** - * Getter for property https://w3id.org/cwl/cwl#outputs
- *
- * Defines the parameters representing the output of the process. May be - * used to generate and/or validate the output object. - * *
- */ - - public java.util.List getOutputs() { - return this.outputs; - } - - private java.util.Optional> requirements; - - /** - * Getter for property https://w3id.org/cwl/cwl#requirements
- *
- * Declares requirements that apply to either the runtime environment or the - * workflow engine that must be met in order to execute this process. If - * an implementation cannot satisfy all requirements, or a requirement is - * listed which is not recognized by the implementation, it is a fatal - * error and the implementation must not attempt to run the process, - * unless overridden at user option. - * *
- */ - - public java.util.Optional> getRequirements() { - return this.requirements; - } - - private java.util.Optional> hints; - - /** - * Getter for property https://w3id.org/cwl/cwl#hints
- *
- * Declares hints applying to either the runtime environment or the - * workflow engine that may be helpful in executing this process. It is - * not an error if an implementation cannot satisfy all hints, however - * the implementation may report a warning. - * *
- */ - - public java.util.Optional> getHints() { - return this.hints; - } - - private java.util.Optional cwlVersion; - - /** - * Getter for property https://w3id.org/cwl/cwl#cwlVersion
- *
- * CWL document version. Always required at the document root. Not - * required for a Process embedded inside another Process. - * *
- */ - - public java.util.Optional getCwlVersion() { - return this.cwlVersion; - } - - private java.util.List steps; - - /** - * Getter for property https://w3id.org/cwl/cwl#Workflow/steps
- *
- * The individual steps that make up the workflow. Each step is executed when all of its - * input data links are fufilled. An implementation may choose to execute - * the steps in a different order than listed and/or execute steps - * concurrently, provided that dependencies between steps are met. - * *
- */ - - public java.util.List getSteps() { - return this.steps; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of WorkflowImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public WorkflowImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("WorkflowImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - Workflow_class class_; - try { - class_ = - LoaderInstances - .uri_Workflow_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - java.util.List inputs; - try { - inputs = - LoaderInstances - .idmap_inputs_array_of_WorkflowInputParameter - .loadField(__doc.get("inputs"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputs = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputs` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.List outputs; - try { - outputs = - LoaderInstances - .idmap_outputs_array_of_WorkflowOutputParameter - .loadField(__doc.get("outputs"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - outputs = null; // won't be used but prevents compiler from complaining. - final String __message = "the `outputs` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional> requirements; - - if (__doc.containsKey("requirements")) { - try { - requirements = - LoaderInstances - .idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement - .loadField(__doc.get("requirements"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - requirements = null; // won't be used but prevents compiler from complaining. - final String __message = "the `requirements` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - requirements = null; - } - java.util.Optional> hints; - - if (__doc.containsKey("hints")) { - try { - hints = - LoaderInstances - .idmap_hints_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance - .loadField(__doc.get("hints"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - hints = null; // won't be used but prevents compiler from complaining. - final String __message = "the `hints` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - hints = null; - } - java.util.Optional cwlVersion; - - if (__doc.containsKey("cwlVersion")) { - try { - cwlVersion = - LoaderInstances - .uri_optional_CWLVersion_False_True_None_None - .loadField(__doc.get("cwlVersion"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - cwlVersion = null; // won't be used but prevents compiler from complaining. - final String __message = "the `cwlVersion` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - cwlVersion = null; - } - java.util.List steps; - try { - steps = - LoaderInstances - .idmap_steps_array_of_WorkflowStep - .loadField(__doc.get("steps"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - steps = null; // won't be used but prevents compiler from complaining. - final String __message = "the `steps` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.id = (java.util.Optional) id; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.inputs = (java.util.List) inputs; - this.outputs = (java.util.List) outputs; - this.requirements = (java.util.Optional>) requirements; - this.hints = (java.util.Optional>) hints; - this.cwlVersion = (java.util.Optional) cwlVersion; - this.class_ = (Workflow_class) class_; - this.steps = (java.util.List) steps; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowInputParameter.java b/src/main/java/org/w3id/cwl/cwl1_1/WorkflowInputParameter.java deleted file mode 100644 index 76a05564..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowInputParameter.java +++ /dev/null @@ -1,174 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowInputParameter
This interface is implemented by {@link WorkflowInputParameterImpl}
- */ -public interface WorkflowInputParameter extends InputParameter, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferrably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - Object getFormat(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Read up to the first 64 KiB of text from the file and place it in the - * "contents" field of the file object for use by expressions. - * *
- */ - - java.util.Optional getLoadContents(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - java.util.Optional getLoadListing(); - /** - * Getter for property https://w3id.org/cwl/salad#default
- *
- * The default value to use for this parameter if the parameter is missing - * from the input object, or if the value of the parameter in the input - * object is `null`. Default values are applied before evaluating expressions - * (e.g. dependent `valueFrom` fields). - * *
- */ - - java.util.Optional getDefault(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * *
- */ - - Object getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#WorkflowInputParameter/inputBinding
- *
- * Deprecated. Preserved for v1.0 backwards compatability. Will be removed in - * CWL v2.0. Use `WorkflowInputParameter.loadContents` instead. - * *
- */ - - java.util.Optional getInputBinding(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowInputParameterImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/WorkflowInputParameterImpl.java deleted file mode 100644 index 22aafde3..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowInputParameterImpl.java +++ /dev/null @@ -1,480 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowInputParameter
- */ -public class WorkflowInputParameterImpl extends SaveableImpl implements WorkflowInputParameter { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional streamable; - - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - public java.util.Optional getStreamable() { - return this.streamable; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferrably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - public Object getFormat() { - return this.format; - } - - private java.util.Optional loadContents; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Read up to the first 64 KiB of text from the file and place it in the - * "contents" field of the file object for use by expressions. - * *
- */ - - public java.util.Optional getLoadContents() { - return this.loadContents; - } - - private java.util.Optional loadListing; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - public java.util.Optional getLoadListing() { - return this.loadListing; - } - - private java.util.Optional default_; - - /** - * Getter for property https://w3id.org/cwl/salad#default
- *
- * The default value to use for this parameter if the parameter is missing - * from the input object, or if the value of the parameter in the input - * object is `null`. Default values are applied before evaluating expressions - * (e.g. dependent `valueFrom` fields). - * *
- */ - - public java.util.Optional getDefault() { - return this.default_; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * *
- */ - - public Object getType() { - return this.type; - } - - private java.util.Optional inputBinding; - - /** - * Getter for property https://w3id.org/cwl/cwl#WorkflowInputParameter/inputBinding
- *
- * Deprecated. Preserved for v1.0 backwards compatability. Will be removed in - * CWL v2.0. Use `WorkflowInputParameter.loadContents` instead. - * *
- */ - - public java.util.Optional getInputBinding() { - return this.inputBinding; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of WorkflowInputParameterImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public WorkflowInputParameterImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("WorkflowInputParameterImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional streamable; - - if (__doc.containsKey("streamable")) { - try { - streamable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - streamable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `streamable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - streamable = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - java.util.Optional loadContents; - - if (__doc.containsKey("loadContents")) { - try { - loadContents = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadContents = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadContents` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadContents = null; - } - java.util.Optional loadListing; - - if (__doc.containsKey("loadListing")) { - try { - loadListing = - LoaderInstances - .optional_LoadListingEnum - .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadListing = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadListing` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadListing = null; - } - java.util.Optional default_; - - if (__doc.containsKey("default")) { - try { - default_ = - LoaderInstances - .optional_CWLObjectType - .loadField(__doc.get("default"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - default_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `default` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - default_ = null; - } - Object type; - try { - type = - LoaderInstances - .typedsl_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional inputBinding; - - if (__doc.containsKey("inputBinding")) { - try { - inputBinding = - LoaderInstances - .optional_InputBinding - .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputBinding = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputBinding` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - inputBinding = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.label = (java.util.Optional) label; - this.secondaryFiles = (Object) secondaryFiles; - this.streamable = (java.util.Optional) streamable; - this.doc = (Object) doc; - this.id = (java.util.Optional) id; - this.format = (Object) format; - this.loadContents = (java.util.Optional) loadContents; - this.loadListing = (java.util.Optional) loadListing; - this.default_ = (java.util.Optional) default_; - this.type = (Object) type; - this.inputBinding = (java.util.Optional) inputBinding; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowOutputParameter.java b/src/main/java/org/w3id/cwl/cwl1_1/WorkflowOutputParameter.java deleted file mode 100644 index 0e352a37..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowOutputParameter.java +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowOutputParameter
This interface is implemented by {@link WorkflowOutputParameterImpl}
- Describe an output parameter of a workflow. The parameter must be - connected to one or more parameters defined in the workflow that - will provide the value of the output parameter. It is legal to - connect a WorkflowInputParameter to a WorkflowOutputParameter. -
- */ -public interface WorkflowOutputParameter extends OutputParameter, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - Object getFormat(); - /** - * Getter for property https://w3id.org/cwl/cwl#outputSource
- *
- * Specifies one or more workflow parameters that supply the value of to - * the output parameter. - * *
- */ - - Object getOutputSource(); - /** - * Getter for property https://w3id.org/cwl/cwl#WorkflowOutputParameter/linkMerge
- *
- * The method to use to merge multiple sources into a single array. - * If not specified, the default method is "merge_nested". - * *
- */ - - java.util.Optional getLinkMerge(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * *
- */ - - Object getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowOutputParameterImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/WorkflowOutputParameterImpl.java deleted file mode 100644 index 7e044c9e..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowOutputParameterImpl.java +++ /dev/null @@ -1,407 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowOutputParameter
- Describe an output parameter of a workflow. The parameter must be - connected to one or more parameters defined in the workflow that - will provide the value of the output parameter. It is legal to - connect a WorkflowInputParameter to a WorkflowOutputParameter. -
- */ -public class WorkflowOutputParameterImpl extends SaveableImpl implements WorkflowOutputParameter { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional streamable; - - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - public java.util.Optional getStreamable() { - return this.streamable; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - public Object getFormat() { - return this.format; - } - - private Object outputSource; - - /** - * Getter for property https://w3id.org/cwl/cwl#outputSource
- *
- * Specifies one or more workflow parameters that supply the value of to - * the output parameter. - * *
- */ - - public Object getOutputSource() { - return this.outputSource; - } - - private java.util.Optional linkMerge; - - /** - * Getter for property https://w3id.org/cwl/cwl#WorkflowOutputParameter/linkMerge
- *
- * The method to use to merge multiple sources into a single array. - * If not specified, the default method is "merge_nested". - * *
- */ - - public java.util.Optional getLinkMerge() { - return this.linkMerge; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * *
- */ - - public Object getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of WorkflowOutputParameterImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public WorkflowOutputParameterImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("WorkflowOutputParameterImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional streamable; - - if (__doc.containsKey("streamable")) { - try { - streamable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - streamable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `streamable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - streamable = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - Object outputSource; - - if (__doc.containsKey("outputSource")) { - try { - outputSource = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_1_None - .loadField(__doc.get("outputSource"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - outputSource = null; // won't be used but prevents compiler from complaining. - final String __message = "the `outputSource` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - outputSource = null; - } - java.util.Optional linkMerge; - - if (__doc.containsKey("linkMerge")) { - try { - linkMerge = - LoaderInstances - .optional_LinkMergeMethod - .loadField(__doc.get("linkMerge"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - linkMerge = null; // won't be used but prevents compiler from complaining. - final String __message = "the `linkMerge` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - linkMerge = null; - } - Object type; - try { - type = - LoaderInstances - .typedsl_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.label = (java.util.Optional) label; - this.secondaryFiles = (Object) secondaryFiles; - this.streamable = (java.util.Optional) streamable; - this.doc = (Object) doc; - this.id = (java.util.Optional) id; - this.format = (Object) format; - this.outputSource = (Object) outputSource; - this.linkMerge = (java.util.Optional) linkMerge; - this.type = (Object) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowStep.java b/src/main/java/org/w3id/cwl/cwl1_1/WorkflowStep.java deleted file mode 100644 index d1133ac7..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowStep.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowStep
This interface is implemented by {@link WorkflowStepImpl}
- A workflow step is an executable element of a workflow. It specifies the - underlying process implementation (such as `CommandLineTool` or another - `Workflow`) in the `run` field and connects the input and output parameters - of the underlying process to workflow parameters. - - # Scatter/gather - - To use scatter/gather, - [ScatterFeatureRequirement](#ScatterFeatureRequirement) must be specified - in the workflow or workflow step requirements. - - A "scatter" operation specifies that the associated workflow step or - subworkflow should execute separately over a list of input elements. Each - job making up a scatter operation is independent and may be executed - concurrently. - - The `scatter` field specifies one or more input parameters which will be - scattered. An input parameter may be listed more than once. The declared - type of each input parameter is implicitly becomes an array of items of the - input parameter type. If a parameter is listed more than once, it becomes - a nested array. As a result, upstream parameters which are connected to - scattered parameters must be arrays. - - All output parameter types are also implicitly wrapped in arrays. Each job - in the scatter results in an entry in the output array. - - If any scattered parameter runtime value is an empty array, all outputs are - set to empty arrays and no work is done for the step, according to - applicable scattering rules. - - If `scatter` declares more than one input parameter, `scatterMethod` - describes how to decompose the input into a discrete set of jobs. - - * **dotproduct** specifies that each of the input arrays are aligned and one - element taken from each array to construct each job. It is an error - if all input arrays are not the same length. - - * **nested_crossproduct** specifies the Cartesian product of the inputs, - producing a job for every combination of the scattered inputs. The - output must be nested arrays for each level of scattering, in the - order that the input arrays are listed in the `scatter` field. - - * **flat_crossproduct** specifies the Cartesian product of the inputs, - producing a job for every combination of the scattered inputs. The - output arrays must be flattened to a single level, but otherwise listed in the - order that the input arrays are listed in the `scatter` field. - - # Subworkflows - - To specify a nested workflow as part of a workflow step, - [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) must be - specified in the workflow or workflow step requirements. - - It is a fatal error if a workflow directly or indirectly invokes itself as - a subworkflow (recursive workflows are not allowed). -
- */ -public interface WorkflowStep extends Identified, Labeled, Documented, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#in
- *
- * Defines the input parameters of the workflow step. The process is ready to - * run when all required input parameters are associated with concrete - * values. Input parameters include a schema for each parameter which is - * used to validate the input object. It may also be used build a user - * interface for constructing the input object. - * *
- */ - - java.util.List getIn(); - /** - * Getter for property https://w3id.org/cwl/cwl#out
- *
- * Defines the parameters representing the output of the process. May be - * used to generate and/or validate the output object. - * *
- */ - - java.util.List getOut(); - /** - * Getter for property https://w3id.org/cwl/cwl#requirements
- *
- * Declares requirements that apply to either the runtime environment or the - * workflow engine that must be met in order to execute this workflow step. If - * an implementation cannot satisfy all requirements, or a requirement is - * listed which is not recognized by the implementation, it is a fatal - * error and the implementation must not attempt to run the process, - * unless overridden at user option. - * *
- */ - - java.util.Optional> getRequirements(); - /** - * Getter for property https://w3id.org/cwl/cwl#hints
- *
- * Declares hints applying to either the runtime environment or the - * workflow engine that may be helpful in executing this workflow step. It is - * not an error if an implementation cannot satisfy all hints, however - * the implementation may report a warning. - * *
- */ - - java.util.Optional> getHints(); - /** - * Getter for property https://w3id.org/cwl/cwl#run
- *
- * Specifies the process to run. - * *
- */ - - Object getRun(); - /** - * Getter for property https://w3id.org/cwl/cwl#scatter
- - */ - - Object getScatter(); - /** - * Getter for property https://w3id.org/cwl/cwl#scatterMethod
- *
- * Required if `scatter` is an array of more than one element. - * *
- */ - - java.util.Optional getScatterMethod(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowStepImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/WorkflowStepImpl.java deleted file mode 100644 index 63de9817..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowStepImpl.java +++ /dev/null @@ -1,438 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowStep
- A workflow step is an executable element of a workflow. It specifies the - underlying process implementation (such as `CommandLineTool` or another - `Workflow`) in the `run` field and connects the input and output parameters - of the underlying process to workflow parameters. - - # Scatter/gather - - To use scatter/gather, - [ScatterFeatureRequirement](#ScatterFeatureRequirement) must be specified - in the workflow or workflow step requirements. - - A "scatter" operation specifies that the associated workflow step or - subworkflow should execute separately over a list of input elements. Each - job making up a scatter operation is independent and may be executed - concurrently. - - The `scatter` field specifies one or more input parameters which will be - scattered. An input parameter may be listed more than once. The declared - type of each input parameter is implicitly becomes an array of items of the - input parameter type. If a parameter is listed more than once, it becomes - a nested array. As a result, upstream parameters which are connected to - scattered parameters must be arrays. - - All output parameter types are also implicitly wrapped in arrays. Each job - in the scatter results in an entry in the output array. - - If any scattered parameter runtime value is an empty array, all outputs are - set to empty arrays and no work is done for the step, according to - applicable scattering rules. - - If `scatter` declares more than one input parameter, `scatterMethod` - describes how to decompose the input into a discrete set of jobs. - - * **dotproduct** specifies that each of the input arrays are aligned and one - element taken from each array to construct each job. It is an error - if all input arrays are not the same length. - - * **nested_crossproduct** specifies the Cartesian product of the inputs, - producing a job for every combination of the scattered inputs. The - output must be nested arrays for each level of scattering, in the - order that the input arrays are listed in the `scatter` field. - - * **flat_crossproduct** specifies the Cartesian product of the inputs, - producing a job for every combination of the scattered inputs. The - output arrays must be flattened to a single level, but otherwise listed in the - order that the input arrays are listed in the `scatter` field. - - # Subworkflows - - To specify a nested workflow as part of a workflow step, - [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) must be - specified in the workflow or workflow step requirements. - - It is a fatal error if a workflow directly or indirectly invokes itself as - a subworkflow (recursive workflows are not allowed). -
- */ -public class WorkflowStepImpl extends SaveableImpl implements WorkflowStep { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private java.util.List in; - - /** - * Getter for property https://w3id.org/cwl/cwl#in
- *
- * Defines the input parameters of the workflow step. The process is ready to - * run when all required input parameters are associated with concrete - * values. Input parameters include a schema for each parameter which is - * used to validate the input object. It may also be used build a user - * interface for constructing the input object. - * *
- */ - - public java.util.List getIn() { - return this.in; - } - - private java.util.List out; - - /** - * Getter for property https://w3id.org/cwl/cwl#out
- *
- * Defines the parameters representing the output of the process. May be - * used to generate and/or validate the output object. - * *
- */ - - public java.util.List getOut() { - return this.out; - } - - private java.util.Optional> requirements; - - /** - * Getter for property https://w3id.org/cwl/cwl#requirements
- *
- * Declares requirements that apply to either the runtime environment or the - * workflow engine that must be met in order to execute this workflow step. If - * an implementation cannot satisfy all requirements, or a requirement is - * listed which is not recognized by the implementation, it is a fatal - * error and the implementation must not attempt to run the process, - * unless overridden at user option. - * *
- */ - - public java.util.Optional> getRequirements() { - return this.requirements; - } - - private java.util.Optional> hints; - - /** - * Getter for property https://w3id.org/cwl/cwl#hints
- *
- * Declares hints applying to either the runtime environment or the - * workflow engine that may be helpful in executing this workflow step. It is - * not an error if an implementation cannot satisfy all hints, however - * the implementation may report a warning. - * *
- */ - - public java.util.Optional> getHints() { - return this.hints; - } - - private Object run; - - /** - * Getter for property https://w3id.org/cwl/cwl#run
- *
- * Specifies the process to run. - * *
- */ - - public Object getRun() { - return this.run; - } - - private Object scatter; - - /** - * Getter for property https://w3id.org/cwl/cwl#scatter
- - */ - - public Object getScatter() { - return this.scatter; - } - - private java.util.Optional scatterMethod; - - /** - * Getter for property https://w3id.org/cwl/cwl#scatterMethod
- *
- * Required if `scatter` is an array of more than one element. - * *
- */ - - public java.util.Optional getScatterMethod() { - return this.scatterMethod; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of WorkflowStepImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public WorkflowStepImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("WorkflowStepImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - java.util.List in; - try { - in = - LoaderInstances - .idmap_in_array_of_WorkflowStepInput - .loadField(__doc.get("in"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - in = null; // won't be used but prevents compiler from complaining. - final String __message = "the `in` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.List out; - try { - out = - LoaderInstances - .uri_array_of_union_of_StringInstance_or_WorkflowStepOutput_True_False_None_None - .loadField(__doc.get("out"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - out = null; // won't be used but prevents compiler from complaining. - final String __message = "the `out` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional> requirements; - - if (__doc.containsKey("requirements")) { - try { - requirements = - LoaderInstances - .idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement - .loadField(__doc.get("requirements"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - requirements = null; // won't be used but prevents compiler from complaining. - final String __message = "the `requirements` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - requirements = null; - } - java.util.Optional> hints; - - if (__doc.containsKey("hints")) { - try { - hints = - LoaderInstances - .idmap_hints_optional_array_of_AnyInstance - .loadField(__doc.get("hints"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - hints = null; // won't be used but prevents compiler from complaining. - final String __message = "the `hints` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - hints = null; - } - Object run; - try { - run = - LoaderInstances - .uri_union_of_StringInstance_or_CommandLineTool_or_ExpressionTool_or_Workflow_False_False_None_None - .loadField(__doc.get("run"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - run = null; // won't be used but prevents compiler from complaining. - final String __message = "the `run` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Object scatter; - - if (__doc.containsKey("scatter")) { - try { - scatter = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_0_None - .loadField(__doc.get("scatter"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - scatter = null; // won't be used but prevents compiler from complaining. - final String __message = "the `scatter` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - scatter = null; - } - java.util.Optional scatterMethod; - - if (__doc.containsKey("scatterMethod")) { - try { - scatterMethod = - LoaderInstances - .uri_optional_ScatterMethod_False_True_None_None - .loadField(__doc.get("scatterMethod"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - scatterMethod = null; // won't be used but prevents compiler from complaining. - final String __message = "the `scatterMethod` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - scatterMethod = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.id = (java.util.Optional) id; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.in = (java.util.List) in; - this.out = (java.util.List) out; - this.requirements = (java.util.Optional>) requirements; - this.hints = (java.util.Optional>) hints; - this.run = (Object) run; - this.scatter = (Object) scatter; - this.scatterMethod = (java.util.Optional) scatterMethod; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowStepInput.java b/src/main/java/org/w3id/cwl/cwl1_1/WorkflowStepInput.java deleted file mode 100644 index dae97028..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowStepInput.java +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowStepInput
This interface is implemented by {@link WorkflowStepInputImpl}
- The input of a workflow step connects an upstream parameter (from the - workflow inputs, or the outputs of other workflows steps) with the input - parameters of the process specified by the `run` field. Only input parameters - declared by the target process will be passed through at runtime to the process - though additonal parameters may be specified (for use within `valueFrom` - expressions for instance) - unconnected or unused parameters do not represent an - error condition. - - ## Input object - - A WorkflowStepInput object must contain an `id` field in the form - `#fieldname` or `#prefix/fieldname`. When the `id` field contains a slash - `/` the field name consists of the characters following the final slash - (the prefix portion may contain one or more slashes to indicate scope). - This defines a field of the workflow step input object with the value of - the `source` parameter(s). - - ## Merging - - To merge multiple inbound data links, - [MultipleInputFeatureRequirement](#MultipleInputFeatureRequirement) must be specified - in the workflow or workflow step requirements. - - If the sink parameter is an array, or named in a [workflow - scatter](#WorkflowStep) operation, there may be multiple inbound data links - listed in the `source` field. The values from the input links are merged - depending on the method specified in the `linkMerge` field. If not - specified, the default method is "merge_nested". - - * **merge_nested** - - The input must be an array consisting of exactly one entry for each - input link. If "merge_nested" is specified with a single link, the value - from the link must be wrapped in a single-item list. - - * **merge_flattened** - - 1. The source and sink parameters must be compatible types, or the source - type must be compatible with single element from the "items" type of - the destination array parameter. - 2. Source parameters which are arrays are concatenated. - Source parameters which are single element types are appended as - single elements. -
- */ -public interface WorkflowStepInput extends Identified, Sink, LoadContents, Labeled, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#source
- *
- * Specifies one or more workflow parameters that will provide input to - * the underlying step parameter. - * *
- */ - - Object getSource(); - /** - * Getter for property https://w3id.org/cwl/cwl#Sink/linkMerge
- *
- * The method to use to merge multiple inbound links into a single array. - * If not specified, the default method is "merge_nested". - * *
- */ - - java.util.Optional getLinkMerge(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Read up to the first 64 KiB of text from the file and place it in the - * "contents" field of the file object for use by expressions. - * *
- */ - - java.util.Optional getLoadContents(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - java.util.Optional getLoadListing(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#default
- *
- * The default value for this parameter to use if either there is no - * `source` field, or the value produced by the `source` is `null`. The - * default must be applied prior to scattering or evaluating `valueFrom`. - * *
- */ - - java.util.Optional getDefault(); - /** - * Getter for property https://w3id.org/cwl/cwl#WorkflowStepInput/valueFrom
- *
- * To use valueFrom, [StepInputExpressionRequirement](#StepInputExpressionRequirement) must - * be specified in the workflow or workflow step requirements. - * - * If `valueFrom` is a constant string value, use this as the value for - * this input parameter. - * - * If `valueFrom` is a parameter reference or expression, it must be - * evaluated to yield the actual value to be assiged to the input field. - * - * The `self` value in the parameter reference or expression must be - * 1. `null` if there is no `source` field - * 2. the value of the parameter(s) specified in the `source` field when this - * workflow input parameter **is not** specified in this workflow step's `scatter` field. - * 3. an element of the parameter specified in the `source` field when this workflow input - * parameter **is** specified in this workflow step's `scatter` field. - * - * The value of `inputs` in the parameter reference or expression must be - * the input object to the workflow step after assigning the `source` - * values, applying `default`, and then scattering. The order of - * evaluating `valueFrom` among step input parameters is undefined and the - * result of evaluating `valueFrom` on a parameter must not be visible to - * evaluation of `valueFrom` on other parameters. - * *
- */ - - Object getValueFrom(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowStepInputImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/WorkflowStepInputImpl.java deleted file mode 100644 index 086a28e8..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowStepInputImpl.java +++ /dev/null @@ -1,409 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowStepInput
- The input of a workflow step connects an upstream parameter (from the - workflow inputs, or the outputs of other workflows steps) with the input - parameters of the process specified by the `run` field. Only input parameters - declared by the target process will be passed through at runtime to the process - though additonal parameters may be specified (for use within `valueFrom` - expressions for instance) - unconnected or unused parameters do not represent an - error condition. - - ## Input object - - A WorkflowStepInput object must contain an `id` field in the form - `#fieldname` or `#prefix/fieldname`. When the `id` field contains a slash - `/` the field name consists of the characters following the final slash - (the prefix portion may contain one or more slashes to indicate scope). - This defines a field of the workflow step input object with the value of - the `source` parameter(s). - - ## Merging - - To merge multiple inbound data links, - [MultipleInputFeatureRequirement](#MultipleInputFeatureRequirement) must be specified - in the workflow or workflow step requirements. - - If the sink parameter is an array, or named in a [workflow - scatter](#WorkflowStep) operation, there may be multiple inbound data links - listed in the `source` field. The values from the input links are merged - depending on the method specified in the `linkMerge` field. If not - specified, the default method is "merge_nested". - - * **merge_nested** - - The input must be an array consisting of exactly one entry for each - input link. If "merge_nested" is specified with a single link, the value - from the link must be wrapped in a single-item list. - - * **merge_flattened** - - 1. The source and sink parameters must be compatible types, or the source - type must be compatible with single element from the "items" type of - the destination array parameter. - 2. Source parameters which are arrays are concatenated. - Source parameters which are single element types are appended as - single elements. -
- */ -public class WorkflowStepInputImpl extends SaveableImpl implements WorkflowStepInput { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private Object source; - - /** - * Getter for property https://w3id.org/cwl/cwl#source
- *
- * Specifies one or more workflow parameters that will provide input to - * the underlying step parameter. - * *
- */ - - public Object getSource() { - return this.source; - } - - private java.util.Optional linkMerge; - - /** - * Getter for property https://w3id.org/cwl/cwl#Sink/linkMerge
- *
- * The method to use to merge multiple inbound links into a single array. - * If not specified, the default method is "merge_nested". - * *
- */ - - public java.util.Optional getLinkMerge() { - return this.linkMerge; - } - - private java.util.Optional loadContents; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Read up to the first 64 KiB of text from the file and place it in the - * "contents" field of the file object for use by expressions. - * *
- */ - - public java.util.Optional getLoadContents() { - return this.loadContents; - } - - private java.util.Optional loadListing; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - public java.util.Optional getLoadListing() { - return this.loadListing; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private java.util.Optional default_; - - /** - * Getter for property https://w3id.org/cwl/salad#default
- *
- * The default value for this parameter to use if either there is no - * `source` field, or the value produced by the `source` is `null`. The - * default must be applied prior to scattering or evaluating `valueFrom`. - * *
- */ - - public java.util.Optional getDefault() { - return this.default_; - } - - private Object valueFrom; - - /** - * Getter for property https://w3id.org/cwl/cwl#WorkflowStepInput/valueFrom
- *
- * To use valueFrom, [StepInputExpressionRequirement](#StepInputExpressionRequirement) must - * be specified in the workflow or workflow step requirements. - * - * If `valueFrom` is a constant string value, use this as the value for - * this input parameter. - * - * If `valueFrom` is a parameter reference or expression, it must be - * evaluated to yield the actual value to be assiged to the input field. - * - * The `self` value in the parameter reference or expression must be - * 1. `null` if there is no `source` field - * 2. the value of the parameter(s) specified in the `source` field when this - * workflow input parameter **is not** specified in this workflow step's `scatter` field. - * 3. an element of the parameter specified in the `source` field when this workflow input - * parameter **is** specified in this workflow step's `scatter` field. - * - * The value of `inputs` in the parameter reference or expression must be - * the input object to the workflow step after assigning the `source` - * values, applying `default`, and then scattering. The order of - * evaluating `valueFrom` among step input parameters is undefined and the - * result of evaluating `valueFrom` on a parameter must not be visible to - * evaluation of `valueFrom` on other parameters. - * *
- */ - - public Object getValueFrom() { - return this.valueFrom; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of WorkflowStepInputImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public WorkflowStepInputImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("WorkflowStepInputImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - Object source; - - if (__doc.containsKey("source")) { - try { - source = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_2_None - .loadField(__doc.get("source"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - source = null; // won't be used but prevents compiler from complaining. - final String __message = "the `source` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - source = null; - } - java.util.Optional linkMerge; - - if (__doc.containsKey("linkMerge")) { - try { - linkMerge = - LoaderInstances - .optional_LinkMergeMethod - .loadField(__doc.get("linkMerge"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - linkMerge = null; // won't be used but prevents compiler from complaining. - final String __message = "the `linkMerge` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - linkMerge = null; - } - java.util.Optional loadContents; - - if (__doc.containsKey("loadContents")) { - try { - loadContents = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadContents = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadContents` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadContents = null; - } - java.util.Optional loadListing; - - if (__doc.containsKey("loadListing")) { - try { - loadListing = - LoaderInstances - .optional_LoadListingEnum - .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadListing = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadListing` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadListing = null; - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - java.util.Optional default_; - - if (__doc.containsKey("default")) { - try { - default_ = - LoaderInstances - .optional_CWLObjectType - .loadField(__doc.get("default"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - default_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `default` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - default_ = null; - } - Object valueFrom; - - if (__doc.containsKey("valueFrom")) { - try { - valueFrom = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_ExpressionLoader - .loadField(__doc.get("valueFrom"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - valueFrom = null; // won't be used but prevents compiler from complaining. - final String __message = "the `valueFrom` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - valueFrom = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.id = (java.util.Optional) id; - this.source = (Object) source; - this.linkMerge = (java.util.Optional) linkMerge; - this.loadContents = (java.util.Optional) loadContents; - this.loadListing = (java.util.Optional) loadListing; - this.label = (java.util.Optional) label; - this.default_ = (java.util.Optional) default_; - this.valueFrom = (Object) valueFrom; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowStepOutput.java b/src/main/java/org/w3id/cwl/cwl1_1/WorkflowStepOutput.java deleted file mode 100644 index 421f8454..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowStepOutput.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowStepOutput
This interface is implemented by {@link WorkflowStepOutputImpl}
- Associate an output parameter of the underlying process with a workflow - parameter. The workflow parameter (given in the `id` field) be may be used - as a `source` to connect with input parameters of other workflow steps, or - with an output parameter of the process. - - A unique identifier for this workflow output parameter. This is - the identifier to use in the `source` field of `WorkflowStepInput` - to connect the output value to downstream parameters. -
- */ -public interface WorkflowStepOutput extends Identified, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowStepOutputImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/WorkflowStepOutputImpl.java deleted file mode 100644 index a3b064fd..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/WorkflowStepOutputImpl.java +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.LoaderInstances; -import org.w3id.cwl.cwl1_1.utils.LoadingOptions; -import org.w3id.cwl.cwl1_1.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_1.utils.SaveableImpl; -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowStepOutput
- Associate an output parameter of the underlying process with a workflow - parameter. The workflow parameter (given in the `id` field) be may be used - as a `source` to connect with input parameters of other workflow steps, or - with an output parameter of the process. - - A unique identifier for this workflow output parameter. This is - the identifier to use in the `source` field of `WorkflowStepInput` - to connect the output value to downstream parameters. -
- */ -public class WorkflowStepOutputImpl extends SaveableImpl implements WorkflowStepOutput { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_1.utils.RootLoader} to construct instances of WorkflowStepOutputImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public WorkflowStepOutputImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("WorkflowStepOutputImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.id = (java.util.Optional) id; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/Workflow_class.java b/src/main/java/org/w3id/cwl/cwl1_1/Workflow_class.java deleted file mode 100644 index a6fa8242..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/Workflow_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum Workflow_class { - WORKFLOW("Workflow"); - - private static String[] symbols = new String[] {"Workflow"}; - private String docVal; - - private Workflow_class(final String docVal) { - this.docVal = docVal; - } - - public static Workflow_class fromDocumentVal(final String docVal) { - for(final Workflow_class val : Workflow_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", Workflow_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/stderr.java b/src/main/java/org/w3id/cwl/cwl1_1/stderr.java deleted file mode 100644 index 68e05ce9..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/stderr.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum stderr { - STDERR("stderr"); - - private static String[] symbols = new String[] {"stderr"}; - private String docVal; - - private stderr(final String docVal) { - this.docVal = docVal; - } - - public static stderr fromDocumentVal(final String docVal) { - for(final stderr val : stderr.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", stderr.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/stdin.java b/src/main/java/org/w3id/cwl/cwl1_1/stdin.java deleted file mode 100644 index c2485941..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/stdin.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum stdin { - STDIN("stdin"); - - private static String[] symbols = new String[] {"stdin"}; - private String docVal; - - private stdin(final String docVal) { - this.docVal = docVal; - } - - public static stdin fromDocumentVal(final String docVal) { - for(final stdin val : stdin.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", stdin.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/stdout.java b/src/main/java/org/w3id/cwl/cwl1_1/stdout.java deleted file mode 100644 index 01dd5892..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/stdout.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_1; - -import org.w3id.cwl.cwl1_1.utils.ValidationException; - -public enum stdout { - STDOUT("stdout"); - - private static String[] symbols = new String[] {"stdout"}; - private String docVal; - - private stdout(final String docVal) { - this.docVal = docVal; - } - - public static stdout fromDocumentVal(final String docVal) { - for(final stdout val : stdout.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", stdout.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/AnyLoader.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/AnyLoader.java deleted file mode 100644 index fbadf050..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/AnyLoader.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -public class AnyLoader implements Loader { - - public Object load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - if (doc == null) { - throw new ValidationException("Expected non-null"); - } - return doc; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/ArrayLoader.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/ArrayLoader.java deleted file mode 100644 index edd07293..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/ArrayLoader.java +++ /dev/null @@ -1,43 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.util.ArrayList; -import java.util.List; - -public class ArrayLoader implements Loader> { - private final Loader itemLoader; - - public ArrayLoader(Loader itemLoader) { - this.itemLoader = itemLoader; - } - - public List load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - final List docList = (List) Loader.validateOfJavaType(List.class, doc); - final List r = new ArrayList(); - final List loaders = new ArrayList(); - loaders.add(this); - loaders.add(this.itemLoader); - final UnionLoader unionLoader = new UnionLoader(loaders); - final List errors = new ArrayList(); - for (final Object el : docList) { - try { - final Object loadedField = unionLoader.loadField(el, baseUri, loadingOptions); - final boolean flatten = !"@list".equals(loadingOptions.container); - if (flatten && loadedField instanceof List) { - r.addAll((List) loadedField); - } else { - r.add((T) loadedField); - } - } catch (final ValidationException e) { - errors.add(e); - } - } - if (!errors.isEmpty()) { - throw new ValidationException("", errors); - } - return r; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/ConstantMaps.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/ConstantMaps.java deleted file mode 100644 index 24d01c9f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/ConstantMaps.java +++ /dev/null @@ -1,271 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.util.HashMap; - -public class ConstantMaps { - // declare as HashMap for clone(). - public static final HashMap vocab = new HashMap(); - public static final HashMap rvocab = new HashMap(); - - static { - vocab.put("Any", "https://w3id.org/cwl/salad#Any"); - vocab.put("ArraySchema", "https://w3id.org/cwl/salad#ArraySchema"); - vocab.put("CWLArraySchema", "https://w3id.org/cwl/cwl#CWLArraySchema"); - vocab.put("CWLInputFile", "https://w3id.org/cwl/cwl#CWLInputFile"); - vocab.put("CWLObjectType", "https://w3id.org/cwl/cwl#CWLObjectType"); - vocab.put("CWLRecordField", "https://w3id.org/cwl/cwl#CWLRecordField"); - vocab.put("CWLRecordSchema", "https://w3id.org/cwl/cwl#CWLRecordSchema"); - vocab.put("CWLType", "https://w3id.org/cwl/cwl#CWLType"); - vocab.put("CWLVersion", "https://w3id.org/cwl/cwl#CWLVersion"); - vocab.put("CommandInputArraySchema", "https://w3id.org/cwl/cwl#CommandInputArraySchema"); - vocab.put("CommandInputEnumSchema", "https://w3id.org/cwl/cwl#CommandInputEnumSchema"); - vocab.put("CommandInputParameter", "https://w3id.org/cwl/cwl#CommandInputParameter"); - vocab.put("CommandInputRecordField", "https://w3id.org/cwl/cwl#CommandInputRecordField"); - vocab.put("CommandInputRecordSchema", "https://w3id.org/cwl/cwl#CommandInputRecordSchema"); - vocab.put("CommandInputSchema", "https://w3id.org/cwl/cwl#CommandInputSchema"); - vocab.put("CommandLineBindable", "https://w3id.org/cwl/cwl#CommandLineBindable"); - vocab.put("CommandLineBinding", "https://w3id.org/cwl/cwl#CommandLineBinding"); - vocab.put("CommandLineTool", "CommandLineTool"); - vocab.put("CommandOutputArraySchema", "https://w3id.org/cwl/cwl#CommandOutputArraySchema"); - vocab.put("CommandOutputBinding", "https://w3id.org/cwl/cwl#CommandOutputBinding"); - vocab.put("CommandOutputEnumSchema", "https://w3id.org/cwl/cwl#CommandOutputEnumSchema"); - vocab.put("CommandOutputParameter", "https://w3id.org/cwl/cwl#CommandOutputParameter"); - vocab.put("CommandOutputRecordField", "https://w3id.org/cwl/cwl#CommandOutputRecordField"); - vocab.put("CommandOutputRecordSchema", "https://w3id.org/cwl/cwl#CommandOutputRecordSchema"); - vocab.put("Directory", "Directory"); - vocab.put("Dirent", "https://w3id.org/cwl/cwl#Dirent"); - vocab.put("DockerRequirement", "DockerRequirement"); - vocab.put("Documented", "https://w3id.org/cwl/salad#Documented"); - vocab.put("EnumSchema", "https://w3id.org/cwl/salad#EnumSchema"); - vocab.put("EnvVarRequirement", "EnvVarRequirement"); - vocab.put("EnvironmentDef", "https://w3id.org/cwl/cwl#EnvironmentDef"); - vocab.put("Expression", "https://w3id.org/cwl/cwl#Expression"); - vocab.put("ExpressionPlaceholder", "https://w3id.org/cwl/cwl#ExpressionPlaceholder"); - vocab.put("ExpressionTool", "ExpressionTool"); - vocab.put("ExpressionToolOutputParameter", "https://w3id.org/cwl/cwl#ExpressionToolOutputParameter"); - vocab.put("FieldBase", "https://w3id.org/cwl/cwl#FieldBase"); - vocab.put("File", "File"); - vocab.put("IOSchema", "https://w3id.org/cwl/cwl#IOSchema"); - vocab.put("Identified", "https://w3id.org/cwl/cwl#Identified"); - vocab.put("InitialWorkDirRequirement", "InitialWorkDirRequirement"); - vocab.put("InlineJavascriptRequirement", "InlineJavascriptRequirement"); - vocab.put("InplaceUpdateRequirement", "InplaceUpdateRequirement"); - vocab.put("InputArraySchema", "https://w3id.org/cwl/cwl#InputArraySchema"); - vocab.put("InputBinding", "https://w3id.org/cwl/cwl#InputBinding"); - vocab.put("InputEnumSchema", "https://w3id.org/cwl/cwl#InputEnumSchema"); - vocab.put("InputFormat", "https://w3id.org/cwl/cwl#InputFormat"); - vocab.put("InputParameter", "https://w3id.org/cwl/cwl#InputParameter"); - vocab.put("InputRecordField", "https://w3id.org/cwl/cwl#InputRecordField"); - vocab.put("InputRecordSchema", "https://w3id.org/cwl/cwl#InputRecordSchema"); - vocab.put("InputSchema", "https://w3id.org/cwl/cwl#InputSchema"); - vocab.put("Labeled", "https://w3id.org/cwl/cwl#Labeled"); - vocab.put("LinkMergeMethod", "https://w3id.org/cwl/cwl#LinkMergeMethod"); - vocab.put("LoadContents", "https://w3id.org/cwl/cwl#LoadContents"); - vocab.put("LoadListingEnum", "https://w3id.org/cwl/cwl#LoadListingEnum"); - vocab.put("LoadListingRequirement", "LoadListingRequirement"); - vocab.put("MapSchema", "https://w3id.org/cwl/salad#MapSchema"); - vocab.put("MultipleInputFeatureRequirement", "MultipleInputFeatureRequirement"); - vocab.put("NetworkAccess", "NetworkAccess"); - vocab.put("OutputArraySchema", "https://w3id.org/cwl/cwl#OutputArraySchema"); - vocab.put("OutputEnumSchema", "https://w3id.org/cwl/cwl#OutputEnumSchema"); - vocab.put("OutputFormat", "https://w3id.org/cwl/cwl#OutputFormat"); - vocab.put("OutputParameter", "https://w3id.org/cwl/cwl#OutputParameter"); - vocab.put("OutputRecordField", "https://w3id.org/cwl/cwl#OutputRecordField"); - vocab.put("OutputRecordSchema", "https://w3id.org/cwl/cwl#OutputRecordSchema"); - vocab.put("OutputSchema", "https://w3id.org/cwl/cwl#OutputSchema"); - vocab.put("Parameter", "https://w3id.org/cwl/cwl#Parameter"); - vocab.put("PrimitiveType", "https://w3id.org/cwl/salad#PrimitiveType"); - vocab.put("Process", "https://w3id.org/cwl/cwl#Process"); - vocab.put("ProcessRequirement", "https://w3id.org/cwl/cwl#ProcessRequirement"); - vocab.put("RecordField", "https://w3id.org/cwl/salad#RecordField"); - vocab.put("RecordSchema", "https://w3id.org/cwl/salad#RecordSchema"); - vocab.put("ResourceRequirement", "ResourceRequirement"); - vocab.put("ScatterFeatureRequirement", "ScatterFeatureRequirement"); - vocab.put("ScatterMethod", "https://w3id.org/cwl/cwl#ScatterMethod"); - vocab.put("SchemaDefRequirement", "SchemaDefRequirement"); - vocab.put("SecondaryFileSchema", "https://w3id.org/cwl/cwl#SecondaryFileSchema"); - vocab.put("ShellCommandRequirement", "ShellCommandRequirement"); - vocab.put("Sink", "https://w3id.org/cwl/cwl#Sink"); - vocab.put("SoftwarePackage", "https://w3id.org/cwl/cwl#SoftwarePackage"); - vocab.put("SoftwareRequirement", "SoftwareRequirement"); - vocab.put("StepInputExpressionRequirement", "StepInputExpressionRequirement"); - vocab.put("SubworkflowFeatureRequirement", "SubworkflowFeatureRequirement"); - vocab.put("ToolTimeLimit", "ToolTimeLimit"); - vocab.put("UnionSchema", "https://w3id.org/cwl/salad#UnionSchema"); - vocab.put("WorkReuse", "WorkReuse"); - vocab.put("Workflow", "Workflow"); - vocab.put("WorkflowInputParameter", "https://w3id.org/cwl/cwl#WorkflowInputParameter"); - vocab.put("WorkflowOutputParameter", "https://w3id.org/cwl/cwl#WorkflowOutputParameter"); - vocab.put("WorkflowStep", "https://w3id.org/cwl/cwl#WorkflowStep"); - vocab.put("WorkflowStepInput", "https://w3id.org/cwl/cwl#WorkflowStepInput"); - vocab.put("WorkflowStepOutput", "https://w3id.org/cwl/cwl#WorkflowStepOutput"); - vocab.put("array", "array"); - vocab.put("boolean", "http://www.w3.org/2001/XMLSchema#boolean"); - vocab.put("deep_listing", "https://w3id.org/cwl/cwl#LoadListingEnum/deep_listing"); - vocab.put("dotproduct", "https://w3id.org/cwl/cwl#ScatterMethod/dotproduct"); - vocab.put("double", "http://www.w3.org/2001/XMLSchema#double"); - vocab.put("draft-2", "https://w3id.org/cwl/cwl#draft-2"); - vocab.put("draft-3", "https://w3id.org/cwl/cwl#draft-3"); - vocab.put("draft-3.dev1", "https://w3id.org/cwl/cwl#draft-3.dev1"); - vocab.put("draft-3.dev2", "https://w3id.org/cwl/cwl#draft-3.dev2"); - vocab.put("draft-3.dev3", "https://w3id.org/cwl/cwl#draft-3.dev3"); - vocab.put("draft-3.dev4", "https://w3id.org/cwl/cwl#draft-3.dev4"); - vocab.put("draft-3.dev5", "https://w3id.org/cwl/cwl#draft-3.dev5"); - vocab.put("draft-4.dev1", "https://w3id.org/cwl/cwl#draft-4.dev1"); - vocab.put("draft-4.dev2", "https://w3id.org/cwl/cwl#draft-4.dev2"); - vocab.put("draft-4.dev3", "https://w3id.org/cwl/cwl#draft-4.dev3"); - vocab.put("enum", "enum"); - vocab.put("flat_crossproduct", "https://w3id.org/cwl/cwl#ScatterMethod/flat_crossproduct"); - vocab.put("float", "http://www.w3.org/2001/XMLSchema#float"); - vocab.put("int", "http://www.w3.org/2001/XMLSchema#int"); - vocab.put("long", "http://www.w3.org/2001/XMLSchema#long"); - vocab.put("map", "map"); - vocab.put("merge_flattened", "https://w3id.org/cwl/cwl#LinkMergeMethod/merge_flattened"); - vocab.put("merge_nested", "https://w3id.org/cwl/cwl#LinkMergeMethod/merge_nested"); - vocab.put("nested_crossproduct", "https://w3id.org/cwl/cwl#ScatterMethod/nested_crossproduct"); - vocab.put("no_listing", "https://w3id.org/cwl/cwl#LoadListingEnum/no_listing"); - vocab.put("null", "https://w3id.org/cwl/salad#null"); - vocab.put("record", "record"); - vocab.put("shallow_listing", "https://w3id.org/cwl/cwl#LoadListingEnum/shallow_listing"); - vocab.put("stderr", "https://w3id.org/cwl/cwl#stderr"); - vocab.put("stdin", "https://w3id.org/cwl/cwl#stdin"); - vocab.put("stdout", "https://w3id.org/cwl/cwl#stdout"); - vocab.put("string", "http://www.w3.org/2001/XMLSchema#string"); - vocab.put("union", "union"); - vocab.put("v1.0", "https://w3id.org/cwl/cwl#v1.0"); - vocab.put("v1.0.dev4", "https://w3id.org/cwl/cwl#v1.0.dev4"); - vocab.put("v1.1", "https://w3id.org/cwl/cwl#v1.1"); - vocab.put("v1.1.0-dev1", "https://w3id.org/cwl/cwl#v1.1.0-dev1"); - - - rvocab.put("https://w3id.org/cwl/salad#Any", "Any"); - rvocab.put("https://w3id.org/cwl/salad#ArraySchema", "ArraySchema"); - rvocab.put("https://w3id.org/cwl/cwl#CWLArraySchema", "CWLArraySchema"); - rvocab.put("https://w3id.org/cwl/cwl#CWLInputFile", "CWLInputFile"); - rvocab.put("https://w3id.org/cwl/cwl#CWLObjectType", "CWLObjectType"); - rvocab.put("https://w3id.org/cwl/cwl#CWLRecordField", "CWLRecordField"); - rvocab.put("https://w3id.org/cwl/cwl#CWLRecordSchema", "CWLRecordSchema"); - rvocab.put("https://w3id.org/cwl/cwl#CWLType", "CWLType"); - rvocab.put("https://w3id.org/cwl/cwl#CWLVersion", "CWLVersion"); - rvocab.put("https://w3id.org/cwl/cwl#CommandInputArraySchema", "CommandInputArraySchema"); - rvocab.put("https://w3id.org/cwl/cwl#CommandInputEnumSchema", "CommandInputEnumSchema"); - rvocab.put("https://w3id.org/cwl/cwl#CommandInputParameter", "CommandInputParameter"); - rvocab.put("https://w3id.org/cwl/cwl#CommandInputRecordField", "CommandInputRecordField"); - rvocab.put("https://w3id.org/cwl/cwl#CommandInputRecordSchema", "CommandInputRecordSchema"); - rvocab.put("https://w3id.org/cwl/cwl#CommandInputSchema", "CommandInputSchema"); - rvocab.put("https://w3id.org/cwl/cwl#CommandLineBindable", "CommandLineBindable"); - rvocab.put("https://w3id.org/cwl/cwl#CommandLineBinding", "CommandLineBinding"); - rvocab.put("CommandLineTool", "CommandLineTool"); - rvocab.put("https://w3id.org/cwl/cwl#CommandOutputArraySchema", "CommandOutputArraySchema"); - rvocab.put("https://w3id.org/cwl/cwl#CommandOutputBinding", "CommandOutputBinding"); - rvocab.put("https://w3id.org/cwl/cwl#CommandOutputEnumSchema", "CommandOutputEnumSchema"); - rvocab.put("https://w3id.org/cwl/cwl#CommandOutputParameter", "CommandOutputParameter"); - rvocab.put("https://w3id.org/cwl/cwl#CommandOutputRecordField", "CommandOutputRecordField"); - rvocab.put("https://w3id.org/cwl/cwl#CommandOutputRecordSchema", "CommandOutputRecordSchema"); - rvocab.put("Directory", "Directory"); - rvocab.put("https://w3id.org/cwl/cwl#Dirent", "Dirent"); - rvocab.put("DockerRequirement", "DockerRequirement"); - rvocab.put("https://w3id.org/cwl/salad#Documented", "Documented"); - rvocab.put("https://w3id.org/cwl/salad#EnumSchema", "EnumSchema"); - rvocab.put("EnvVarRequirement", "EnvVarRequirement"); - rvocab.put("https://w3id.org/cwl/cwl#EnvironmentDef", "EnvironmentDef"); - rvocab.put("https://w3id.org/cwl/cwl#Expression", "Expression"); - rvocab.put("https://w3id.org/cwl/cwl#ExpressionPlaceholder", "ExpressionPlaceholder"); - rvocab.put("ExpressionTool", "ExpressionTool"); - rvocab.put("https://w3id.org/cwl/cwl#ExpressionToolOutputParameter", "ExpressionToolOutputParameter"); - rvocab.put("https://w3id.org/cwl/cwl#FieldBase", "FieldBase"); - rvocab.put("File", "File"); - rvocab.put("https://w3id.org/cwl/cwl#IOSchema", "IOSchema"); - rvocab.put("https://w3id.org/cwl/cwl#Identified", "Identified"); - rvocab.put("InitialWorkDirRequirement", "InitialWorkDirRequirement"); - rvocab.put("InlineJavascriptRequirement", "InlineJavascriptRequirement"); - rvocab.put("InplaceUpdateRequirement", "InplaceUpdateRequirement"); - rvocab.put("https://w3id.org/cwl/cwl#InputArraySchema", "InputArraySchema"); - rvocab.put("https://w3id.org/cwl/cwl#InputBinding", "InputBinding"); - rvocab.put("https://w3id.org/cwl/cwl#InputEnumSchema", "InputEnumSchema"); - rvocab.put("https://w3id.org/cwl/cwl#InputFormat", "InputFormat"); - rvocab.put("https://w3id.org/cwl/cwl#InputParameter", "InputParameter"); - rvocab.put("https://w3id.org/cwl/cwl#InputRecordField", "InputRecordField"); - rvocab.put("https://w3id.org/cwl/cwl#InputRecordSchema", "InputRecordSchema"); - rvocab.put("https://w3id.org/cwl/cwl#InputSchema", "InputSchema"); - rvocab.put("https://w3id.org/cwl/cwl#Labeled", "Labeled"); - rvocab.put("https://w3id.org/cwl/cwl#LinkMergeMethod", "LinkMergeMethod"); - rvocab.put("https://w3id.org/cwl/cwl#LoadContents", "LoadContents"); - rvocab.put("https://w3id.org/cwl/cwl#LoadListingEnum", "LoadListingEnum"); - rvocab.put("LoadListingRequirement", "LoadListingRequirement"); - rvocab.put("https://w3id.org/cwl/salad#MapSchema", "MapSchema"); - rvocab.put("MultipleInputFeatureRequirement", "MultipleInputFeatureRequirement"); - rvocab.put("NetworkAccess", "NetworkAccess"); - rvocab.put("https://w3id.org/cwl/cwl#OutputArraySchema", "OutputArraySchema"); - rvocab.put("https://w3id.org/cwl/cwl#OutputEnumSchema", "OutputEnumSchema"); - rvocab.put("https://w3id.org/cwl/cwl#OutputFormat", "OutputFormat"); - rvocab.put("https://w3id.org/cwl/cwl#OutputParameter", "OutputParameter"); - rvocab.put("https://w3id.org/cwl/cwl#OutputRecordField", "OutputRecordField"); - rvocab.put("https://w3id.org/cwl/cwl#OutputRecordSchema", "OutputRecordSchema"); - rvocab.put("https://w3id.org/cwl/cwl#OutputSchema", "OutputSchema"); - rvocab.put("https://w3id.org/cwl/cwl#Parameter", "Parameter"); - rvocab.put("https://w3id.org/cwl/salad#PrimitiveType", "PrimitiveType"); - rvocab.put("https://w3id.org/cwl/cwl#Process", "Process"); - rvocab.put("https://w3id.org/cwl/cwl#ProcessRequirement", "ProcessRequirement"); - rvocab.put("https://w3id.org/cwl/salad#RecordField", "RecordField"); - rvocab.put("https://w3id.org/cwl/salad#RecordSchema", "RecordSchema"); - rvocab.put("ResourceRequirement", "ResourceRequirement"); - rvocab.put("ScatterFeatureRequirement", "ScatterFeatureRequirement"); - rvocab.put("https://w3id.org/cwl/cwl#ScatterMethod", "ScatterMethod"); - rvocab.put("SchemaDefRequirement", "SchemaDefRequirement"); - rvocab.put("https://w3id.org/cwl/cwl#SecondaryFileSchema", "SecondaryFileSchema"); - rvocab.put("ShellCommandRequirement", "ShellCommandRequirement"); - rvocab.put("https://w3id.org/cwl/cwl#Sink", "Sink"); - rvocab.put("https://w3id.org/cwl/cwl#SoftwarePackage", "SoftwarePackage"); - rvocab.put("SoftwareRequirement", "SoftwareRequirement"); - rvocab.put("StepInputExpressionRequirement", "StepInputExpressionRequirement"); - rvocab.put("SubworkflowFeatureRequirement", "SubworkflowFeatureRequirement"); - rvocab.put("ToolTimeLimit", "ToolTimeLimit"); - rvocab.put("https://w3id.org/cwl/salad#UnionSchema", "UnionSchema"); - rvocab.put("WorkReuse", "WorkReuse"); - rvocab.put("Workflow", "Workflow"); - rvocab.put("https://w3id.org/cwl/cwl#WorkflowInputParameter", "WorkflowInputParameter"); - rvocab.put("https://w3id.org/cwl/cwl#WorkflowOutputParameter", "WorkflowOutputParameter"); - rvocab.put("https://w3id.org/cwl/cwl#WorkflowStep", "WorkflowStep"); - rvocab.put("https://w3id.org/cwl/cwl#WorkflowStepInput", "WorkflowStepInput"); - rvocab.put("https://w3id.org/cwl/cwl#WorkflowStepOutput", "WorkflowStepOutput"); - rvocab.put("array", "array"); - rvocab.put("http://www.w3.org/2001/XMLSchema#boolean", "boolean"); - rvocab.put("https://w3id.org/cwl/cwl#LoadListingEnum/deep_listing", "deep_listing"); - rvocab.put("https://w3id.org/cwl/cwl#ScatterMethod/dotproduct", "dotproduct"); - rvocab.put("http://www.w3.org/2001/XMLSchema#double", "double"); - rvocab.put("https://w3id.org/cwl/cwl#draft-2", "draft-2"); - rvocab.put("https://w3id.org/cwl/cwl#draft-3", "draft-3"); - rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev1", "draft-3.dev1"); - rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev2", "draft-3.dev2"); - rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev3", "draft-3.dev3"); - rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev4", "draft-3.dev4"); - rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev5", "draft-3.dev5"); - rvocab.put("https://w3id.org/cwl/cwl#draft-4.dev1", "draft-4.dev1"); - rvocab.put("https://w3id.org/cwl/cwl#draft-4.dev2", "draft-4.dev2"); - rvocab.put("https://w3id.org/cwl/cwl#draft-4.dev3", "draft-4.dev3"); - rvocab.put("enum", "enum"); - rvocab.put("https://w3id.org/cwl/cwl#ScatterMethod/flat_crossproduct", "flat_crossproduct"); - rvocab.put("http://www.w3.org/2001/XMLSchema#float", "float"); - rvocab.put("http://www.w3.org/2001/XMLSchema#int", "int"); - rvocab.put("http://www.w3.org/2001/XMLSchema#long", "long"); - rvocab.put("map", "map"); - rvocab.put("https://w3id.org/cwl/cwl#LinkMergeMethod/merge_flattened", "merge_flattened"); - rvocab.put("https://w3id.org/cwl/cwl#LinkMergeMethod/merge_nested", "merge_nested"); - rvocab.put("https://w3id.org/cwl/cwl#ScatterMethod/nested_crossproduct", "nested_crossproduct"); - rvocab.put("https://w3id.org/cwl/cwl#LoadListingEnum/no_listing", "no_listing"); - rvocab.put("https://w3id.org/cwl/salad#null", "null"); - rvocab.put("record", "record"); - rvocab.put("https://w3id.org/cwl/cwl#LoadListingEnum/shallow_listing", "shallow_listing"); - rvocab.put("https://w3id.org/cwl/cwl#stderr", "stderr"); - rvocab.put("https://w3id.org/cwl/cwl#stdin", "stdin"); - rvocab.put("https://w3id.org/cwl/cwl#stdout", "stdout"); - rvocab.put("http://www.w3.org/2001/XMLSchema#string", "string"); - rvocab.put("union", "union"); - rvocab.put("https://w3id.org/cwl/cwl#v1.0", "v1.0"); - rvocab.put("https://w3id.org/cwl/cwl#v1.0.dev4", "v1.0.dev4"); - rvocab.put("https://w3id.org/cwl/cwl#v1.1", "v1.1"); - rvocab.put("https://w3id.org/cwl/cwl#v1.1.0-dev1", "v1.1.0-dev1"); - - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/DefaultFetcher.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/DefaultFetcher.java deleted file mode 100644 index 53329651..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/DefaultFetcher.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.io.IOException; -import java.net.URI; -import java.util.Arrays; -import java.util.Scanner; - -public class DefaultFetcher implements Fetcher { - - public String urlJoin(final String baseUrl, final String url) { - if (url.startsWith("_:")) { - return url; - } - - final URI baseUri = Uris.toUri(baseUrl); - final URI uri = Uris.toUri(url); - if (baseUri.getScheme() != null - && !baseUri.getScheme().equals("file") - && "file".equals(uri.getScheme())) { - throw new ValidationException( - String.format( - "Not resolving potential remote exploit %s from base %s".format(url, baseUrl))); - } - String result = baseUri.resolve(uri).toString(); - if (result.startsWith("file:")) { - // Well this is gross - needed for http as well? - result = "file://" + result.substring("file:".length()); - } - return result; - } - - public String fetchText(final String url) { - final URI uri = Uris.toUri(url); - final String scheme = uri.getScheme(); - if (Arrays.asList("http", "https", "file").contains(scheme)) { - Scanner scanner; - try { - scanner = new Scanner(uri.toURL().openStream(), "UTF-8").useDelimiter("\\A"); - } catch (IOException e) { - throw new ValidationException("Error fetching %s: %s.".format(url, e)); - } - String result = scanner.next(); - scanner.close(); - return result; - } - throw new ValidationException("Unsupported scheme in URL: %s".format(url)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/EnumLoader.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/EnumLoader.java deleted file mode 100644 index 48ca37dc..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/EnumLoader.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.lang.reflect.Method; -import java.lang.ReflectiveOperationException; -import java.util.Arrays; -import java.util.List; - -public class EnumLoader implements Loader{ - private final Class symbolEnumClass; - - public EnumLoader(final Class symbolEnumClass) { - this.symbolEnumClass = symbolEnumClass; - } - - public T load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - final String docString = Loader.validateOfJavaType(String.class, doc); - try { - final Method m = symbolEnumClass.getMethod("fromDocumentVal", String.class); - final T val = (T) m.invoke(null, docString); - return val; - } catch (final ReflectiveOperationException e) { - final Throwable cause = e.getCause(); - if (cause instanceof RuntimeException) { - throw (RuntimeException) cause; - } - throw new RuntimeException(e); - } - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/ExpressionLoader.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/ExpressionLoader.java deleted file mode 100644 index 0716c521..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/ExpressionLoader.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -public class ExpressionLoader implements Loader { - - public ExpressionLoader() { - } - - public String load( - final Object doc_, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - if (doc_ instanceof String) { - return (String) doc_; - } else { - throw new ValidationException("Expected a string."); - } - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/Fetcher.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/Fetcher.java deleted file mode 100644 index e00db04d..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/Fetcher.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -public interface Fetcher { - - public abstract String urlJoin(final String baseUrl, final String url); - - public abstract String fetchText(final String url); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/IdMapLoader.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/IdMapLoader.java deleted file mode 100644 index ed30f525..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/IdMapLoader.java +++ /dev/null @@ -1,51 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.TreeSet; - -public class IdMapLoader implements Loader { - private final Loader innerLoader; - private final String mapSubject; - private final String mapPredicate; - - public IdMapLoader( - final Loader innerLoader, final String mapSubject, final String mapPredicate) { - this.innerLoader = innerLoader; - this.mapSubject = mapSubject; - this.mapPredicate = mapPredicate; - } - - public T load( - final Object doc_, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - Object doc = doc_; - if (doc instanceof Map) { - final Map docMap = (Map) doc; - final List asList = new ArrayList(); - for (final String key : docMap.keySet()) { - final Object el = docMap.get(key); - if (el instanceof Map) { - final Map v2 = new HashMap((Map) el); - v2.put(this.mapSubject, key); - asList.add(v2); - } else { - if (this.mapPredicate != null) { - final Map v3 = new HashMap(); - v3.put(this.mapPredicate, el); - v3.put(this.mapSubject, key); - asList.add(v3); - } else { - throw new ValidationException("No mapPredicate"); - } - } - } - doc = asList; - } - return this.innerLoader.load(doc, baseUri, loadingOptions); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/Loader.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/Loader.java deleted file mode 100644 index 777fc24c..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/Loader.java +++ /dev/null @@ -1,125 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public interface Loader { - - T load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot); - - default T load(final Object doc, final String baseUri, final LoadingOptions loadingOptions) { - return load(doc, baseUri, loadingOptions, null); - } - - default T documentLoad( - final String doc, final String baseUri, final LoadingOptions loadingOptions) { - return load(doc, baseUri, loadingOptions); - } - - default T documentLoad( - final Map doc_, final String baseUri_, final LoadingOptions loadingOptions_) { - Map doc = doc_; - LoadingOptions loadingOptions = loadingOptions_; - if (doc.containsKey("$namespaces")) { - final Map namespaces = (Map) doc.get("$namespaces"); - loadingOptions = - new LoadingOptionsBuilder().copiedFrom(loadingOptions).setNamespaces(namespaces).build(); - doc = copyWithoutKey(doc, "$namespaces"); - } - String baseUri = baseUri_; - if (doc.containsKey("$base")) { - baseUri = (String) doc.get("$base"); - } - if (doc.containsKey("$graph")) { - return load(doc.get("$graph"), baseUri, loadingOptions); - } else { - return load(doc, baseUri, loadingOptions, baseUri); - } - } - - default T documentLoad( - final List doc, final String baseUri, final LoadingOptions loadingOptions) { - return load(doc, baseUri, loadingOptions); - } - - default T documentLoadByUrl(final String url, final LoadingOptions loadingOptions) { - if (loadingOptions.idx.containsKey(url)) { - Object result = loadingOptions.idx.get(url); - if (result instanceof String) { - return documentLoad((String) result, url, loadingOptions); - } else if (result instanceof Map) { - return documentLoad((Map) result, url, loadingOptions); - } - return load(result, url, loadingOptions); - } - - final String text = loadingOptions.fetcher.fetchText(url); - try { - Map resultMap = YamlUtils.mapFromString(text); - loadingOptions.idx.put(url, resultMap); - final LoadingOptionsBuilder urlLoadingOptions = - new LoadingOptionsBuilder().copiedFrom(loadingOptions).setFileUri(url); - return documentLoad(resultMap, url, urlLoadingOptions.build()); - } catch (ClassCastException e) { - List resultList = YamlUtils.listFromString(text); - loadingOptions.idx.put(url, resultList); - final LoadingOptionsBuilder urlLoadingOptions = - new LoadingOptionsBuilder().copiedFrom(loadingOptions).setFileUri(url); - return documentLoad(resultList, url, urlLoadingOptions.build()); - } - } - - default T loadField( - final Object val_, final String baseUri, final LoadingOptions loadingOptions) { - Object val = val_; - if (val instanceof Map) { - Map valMap = (Map) val; - if (valMap.containsKey("$import")) { - if (loadingOptions.fileUri == null) { - throw new ValidationException("Cannot load $import without fileuri"); - } - return documentLoadByUrl( - loadingOptions.fetcher.urlJoin(loadingOptions.fileUri, (String) valMap.get("$import")), - loadingOptions); - } else if (valMap.containsKey("$include")) { - if (loadingOptions.fileUri == null) { - throw new ValidationException("Cannot load $import without fileuri"); - } - val = - loadingOptions.fetcher.fetchText( - loadingOptions.fetcher.urlJoin( - loadingOptions.fileUri, (String) valMap.get("$include"))); - } - } - return load(val, baseUri, loadingOptions); - } - - default Map copyWithoutKey(final Map doc, final String key) { - final Map result = new HashMap(); - for (final Map.Entry entry : doc.entrySet()) { - if (!entry.getKey().equals(key)) { - result.put(entry.getKey(), entry.getValue()); - } - } - return result; - } - - static T validateOfJavaType(final Class clazz, final Object doc) { - if (!clazz.isInstance(doc)) { - String className = "null"; - if (doc != null) { - className = doc.getClass().getName(); - } - final String message = - String.format( - "Expected object with Java type of %s but got %s", clazz.getName(), className); - throw new ValidationException(message); - } - return (T) doc; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/LoaderInstances.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/LoaderInstances.java deleted file mode 100644 index f7f28a2a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/LoaderInstances.java +++ /dev/null @@ -1,319 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.util.List; -import org.w3id.cwl.cwl1_1.*; - -public class LoaderInstances { - public static Loader StringInstance = new PrimitiveLoader(String.class); - public static Loader IntegerInstance = new PrimitiveLoader(Integer.class); - public static Loader LongInstance = new PrimitiveLoader(Long.class); - public static Loader DoubleInstance = new PrimitiveLoader(Double.class); - public static Loader BooleanInstance = new PrimitiveLoader(Boolean.class); - public static Loader NullInstance = new NullLoader(); - public static Loader AnyInstance = new AnyLoader(); - public static Loader Documented = new RecordLoader(org.w3id.cwl.cwl1_1.Documented.class, null, null); - public static Loader PrimitiveType = new EnumLoader(PrimitiveType.class); - public static Loader Any = new EnumLoader(Any.class); - public static Loader RecordField = new RecordLoader(org.w3id.cwl.cwl1_1.RecordFieldImpl.class, null, null); - public static Loader RecordSchema = new RecordLoader(org.w3id.cwl.cwl1_1.RecordSchemaImpl.class, null, null); - public static Loader EnumSchema = new RecordLoader(org.w3id.cwl.cwl1_1.EnumSchemaImpl.class, null, null); - public static Loader ArraySchema = new RecordLoader(org.w3id.cwl.cwl1_1.ArraySchemaImpl.class, null, null); - public static Loader MapSchema = new RecordLoader(org.w3id.cwl.cwl1_1.MapSchemaImpl.class, null, null); - public static Loader UnionSchema = new RecordLoader(org.w3id.cwl.cwl1_1.UnionSchemaImpl.class, null, null); - public static Loader CWLType = new EnumLoader(CWLType.class); - public static Loader CWLArraySchema = new RecordLoader(org.w3id.cwl.cwl1_1.CWLArraySchemaImpl.class, null, null); - public static Loader CWLRecordField = new RecordLoader(org.w3id.cwl.cwl1_1.CWLRecordFieldImpl.class, null, null); - public static Loader CWLRecordSchema = new RecordLoader(org.w3id.cwl.cwl1_1.CWLRecordSchemaImpl.class, null, null); - public static Loader File = new RecordLoader(org.w3id.cwl.cwl1_1.FileImpl.class, null, null); - public static Loader Directory = new RecordLoader(org.w3id.cwl.cwl1_1.DirectoryImpl.class, null, null); - public static Loader CWLObjectType = new UnionLoader(new Loader[] {}); - public static Loader> optional_CWLObjectType = new OptionalLoader(CWLObjectType); - public static Loader>> array_of_optional_CWLObjectType = new ArrayLoader(optional_CWLObjectType); - public static Loader>> map_of_optional_CWLObjectType = new MapLoader(optional_CWLObjectType, null, null); - public static Loader InlineJavascriptRequirement = new RecordLoader(org.w3id.cwl.cwl1_1.InlineJavascriptRequirementImpl.class, null, null); - public static Loader SchemaDefRequirement = new RecordLoader(org.w3id.cwl.cwl1_1.SchemaDefRequirementImpl.class, null, null); - public static Loader LoadListingRequirement = new RecordLoader(org.w3id.cwl.cwl1_1.LoadListingRequirementImpl.class, null, null); - public static Loader DockerRequirement = new RecordLoader(org.w3id.cwl.cwl1_1.DockerRequirementImpl.class, null, null); - public static Loader SoftwareRequirement = new RecordLoader(org.w3id.cwl.cwl1_1.SoftwareRequirementImpl.class, null, null); - public static Loader InitialWorkDirRequirement = new RecordLoader(org.w3id.cwl.cwl1_1.InitialWorkDirRequirementImpl.class, null, null); - public static Loader EnvVarRequirement = new RecordLoader(org.w3id.cwl.cwl1_1.EnvVarRequirementImpl.class, null, null); - public static Loader ShellCommandRequirement = new RecordLoader(org.w3id.cwl.cwl1_1.ShellCommandRequirementImpl.class, null, null); - public static Loader ResourceRequirement = new RecordLoader(org.w3id.cwl.cwl1_1.ResourceRequirementImpl.class, null, null); - public static Loader WorkReuse = new RecordLoader(org.w3id.cwl.cwl1_1.WorkReuseImpl.class, null, null); - public static Loader NetworkAccess = new RecordLoader(org.w3id.cwl.cwl1_1.NetworkAccessImpl.class, null, null); - public static Loader InplaceUpdateRequirement = new RecordLoader(org.w3id.cwl.cwl1_1.InplaceUpdateRequirementImpl.class, null, null); - public static Loader ToolTimeLimit = new RecordLoader(org.w3id.cwl.cwl1_1.ToolTimeLimitImpl.class, null, null); - public static Loader SubworkflowFeatureRequirement = new RecordLoader(org.w3id.cwl.cwl1_1.SubworkflowFeatureRequirementImpl.class, null, null); - public static Loader ScatterFeatureRequirement = new RecordLoader(org.w3id.cwl.cwl1_1.ScatterFeatureRequirementImpl.class, null, null); - public static Loader MultipleInputFeatureRequirement = new RecordLoader(org.w3id.cwl.cwl1_1.MultipleInputFeatureRequirementImpl.class, null, null); - public static Loader StepInputExpressionRequirement = new RecordLoader(org.w3id.cwl.cwl1_1.StepInputExpressionRequirementImpl.class, null, null); - public static Loader union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement = new UnionLoader(new Loader[] { InlineJavascriptRequirement, SchemaDefRequirement, LoadListingRequirement, DockerRequirement, SoftwareRequirement, InitialWorkDirRequirement, EnvVarRequirement, ShellCommandRequirement, ResourceRequirement, WorkReuse, NetworkAccess, InplaceUpdateRequirement, ToolTimeLimit, SubworkflowFeatureRequirement, ScatterFeatureRequirement, MultipleInputFeatureRequirement, StepInputExpressionRequirement }); - public static Loader> array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement = new ArrayLoader(union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement); - public static Loader union_of_NullInstance_or_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_CWLObjectType = new UnionLoader(new Loader[] { NullInstance, array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement, CWLObjectType }); - public static Loader> map_of_union_of_NullInstance_or_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_CWLObjectType = new MapLoader(union_of_NullInstance_or_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_CWLObjectType, "@list", true); - public static Loader CWLVersion = new EnumLoader(CWLVersion.class); - public static Loader Labeled = new RecordLoader(org.w3id.cwl.cwl1_1.Labeled.class, null, null); - public static Loader Identified = new RecordLoader(org.w3id.cwl.cwl1_1.Identified.class, null, null); - public static Loader LoadListingEnum = new EnumLoader(LoadListingEnum.class); - public static Loader LoadContents = new RecordLoader(org.w3id.cwl.cwl1_1.LoadContents.class, null, null); - public static Loader FieldBase = new RecordLoader(org.w3id.cwl.cwl1_1.FieldBase.class, null, null); - public static Loader InputFormat = new RecordLoader(org.w3id.cwl.cwl1_1.InputFormat.class, null, null); - public static Loader OutputFormat = new RecordLoader(org.w3id.cwl.cwl1_1.OutputFormat.class, null, null); - public static Loader Parameter = new RecordLoader(org.w3id.cwl.cwl1_1.Parameter.class, null, null); - public static Loader Expression = new EnumLoader(Expression.class); - public static Loader InputBinding = new RecordLoader(org.w3id.cwl.cwl1_1.InputBindingImpl.class, null, null); - public static Loader IOSchema = new RecordLoader(org.w3id.cwl.cwl1_1.IOSchema.class, null, null); - public static Loader InputSchema = new RecordLoader(org.w3id.cwl.cwl1_1.InputSchema.class, null, null); - public static Loader OutputSchema = new RecordLoader(org.w3id.cwl.cwl1_1.OutputSchema.class, null, null); - public static Loader InputRecordField = new RecordLoader(org.w3id.cwl.cwl1_1.InputRecordFieldImpl.class, null, null); - public static Loader InputRecordSchema = new RecordLoader(org.w3id.cwl.cwl1_1.InputRecordSchemaImpl.class, null, null); - public static Loader InputEnumSchema = new RecordLoader(org.w3id.cwl.cwl1_1.InputEnumSchemaImpl.class, null, null); - public static Loader InputArraySchema = new RecordLoader(org.w3id.cwl.cwl1_1.InputArraySchemaImpl.class, null, null); - public static Loader OutputRecordField = new RecordLoader(org.w3id.cwl.cwl1_1.OutputRecordFieldImpl.class, null, null); - public static Loader OutputRecordSchema = new RecordLoader(org.w3id.cwl.cwl1_1.OutputRecordSchemaImpl.class, null, null); - public static Loader OutputEnumSchema = new RecordLoader(org.w3id.cwl.cwl1_1.OutputEnumSchemaImpl.class, null, null); - public static Loader OutputArraySchema = new RecordLoader(org.w3id.cwl.cwl1_1.OutputArraySchemaImpl.class, null, null); - public static Loader InputParameter = new RecordLoader(org.w3id.cwl.cwl1_1.InputParameter.class, null, null); - public static Loader OutputParameter = new RecordLoader(org.w3id.cwl.cwl1_1.OutputParameter.class, null, null); - public static Loader ProcessRequirement = new RecordLoader(org.w3id.cwl.cwl1_1.ProcessRequirement.class, null, null); - public static Loader Process = new RecordLoader(org.w3id.cwl.cwl1_1.Process.class, null, null); - public static Loader CommandInputSchema = new RecordLoader(org.w3id.cwl.cwl1_1.CommandInputSchema.class, null, null); - public static Loader SecondaryFileSchema = new RecordLoader(org.w3id.cwl.cwl1_1.SecondaryFileSchemaImpl.class, null, null); - public static Loader EnvironmentDef = new RecordLoader(org.w3id.cwl.cwl1_1.EnvironmentDefImpl.class, null, null); - public static Loader CommandLineBinding = new RecordLoader(org.w3id.cwl.cwl1_1.CommandLineBindingImpl.class, null, null); - public static Loader CommandOutputBinding = new RecordLoader(org.w3id.cwl.cwl1_1.CommandOutputBindingImpl.class, null, null); - public static Loader CommandLineBindable = new RecordLoader(org.w3id.cwl.cwl1_1.CommandLineBindableImpl.class, null, null); - public static Loader CommandInputRecordField = new RecordLoader(org.w3id.cwl.cwl1_1.CommandInputRecordFieldImpl.class, null, null); - public static Loader CommandInputRecordSchema = new RecordLoader(org.w3id.cwl.cwl1_1.CommandInputRecordSchemaImpl.class, null, null); - public static Loader CommandInputEnumSchema = new RecordLoader(org.w3id.cwl.cwl1_1.CommandInputEnumSchemaImpl.class, null, null); - public static Loader CommandInputArraySchema = new RecordLoader(org.w3id.cwl.cwl1_1.CommandInputArraySchemaImpl.class, null, null); - public static Loader CommandOutputRecordField = new RecordLoader(org.w3id.cwl.cwl1_1.CommandOutputRecordFieldImpl.class, null, null); - public static Loader CommandOutputRecordSchema = new RecordLoader(org.w3id.cwl.cwl1_1.CommandOutputRecordSchemaImpl.class, null, null); - public static Loader CommandOutputEnumSchema = new RecordLoader(org.w3id.cwl.cwl1_1.CommandOutputEnumSchemaImpl.class, null, null); - public static Loader CommandOutputArraySchema = new RecordLoader(org.w3id.cwl.cwl1_1.CommandOutputArraySchemaImpl.class, null, null); - public static Loader CommandInputParameter = new RecordLoader(org.w3id.cwl.cwl1_1.CommandInputParameterImpl.class, null, null); - public static Loader CommandOutputParameter = new RecordLoader(org.w3id.cwl.cwl1_1.CommandOutputParameterImpl.class, null, null); - public static Loader stdin = new EnumLoader(stdin.class); - public static Loader stdout = new EnumLoader(stdout.class); - public static Loader stderr = new EnumLoader(stderr.class); - public static Loader CommandLineTool = new RecordLoader(org.w3id.cwl.cwl1_1.CommandLineToolImpl.class, null, null); - public static Loader SoftwarePackage = new RecordLoader(org.w3id.cwl.cwl1_1.SoftwarePackageImpl.class, null, null); - public static Loader Dirent = new RecordLoader(org.w3id.cwl.cwl1_1.DirentImpl.class, null, null); - public static Loader ExpressionToolOutputParameter = new RecordLoader(org.w3id.cwl.cwl1_1.ExpressionToolOutputParameterImpl.class, null, null); - public static Loader WorkflowInputParameter = new RecordLoader(org.w3id.cwl.cwl1_1.WorkflowInputParameterImpl.class, null, null); - public static Loader ExpressionTool = new RecordLoader(org.w3id.cwl.cwl1_1.ExpressionToolImpl.class, null, null); - public static Loader LinkMergeMethod = new EnumLoader(LinkMergeMethod.class); - public static Loader WorkflowOutputParameter = new RecordLoader(org.w3id.cwl.cwl1_1.WorkflowOutputParameterImpl.class, null, null); - public static Loader Sink = new RecordLoader(org.w3id.cwl.cwl1_1.Sink.class, null, null); - public static Loader WorkflowStepInput = new RecordLoader(org.w3id.cwl.cwl1_1.WorkflowStepInputImpl.class, null, null); - public static Loader WorkflowStepOutput = new RecordLoader(org.w3id.cwl.cwl1_1.WorkflowStepOutputImpl.class, null, null); - public static Loader ScatterMethod = new EnumLoader(ScatterMethod.class); - public static Loader WorkflowStep = new RecordLoader(org.w3id.cwl.cwl1_1.WorkflowStepImpl.class, null, null); - public static Loader Workflow = new RecordLoader(org.w3id.cwl.cwl1_1.WorkflowImpl.class, null, null); - public static Loader> array_of_StringInstance = new ArrayLoader(StringInstance); - public static Loader union_of_NullInstance_or_StringInstance_or_array_of_StringInstance = new UnionLoader(new Loader[] { NullInstance, StringInstance, array_of_StringInstance }); - public static Loader uri_StringInstance_True_False_None_None = new UriLoader(StringInstance, true, false, null, null); - public static Loader union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance = new UnionLoader(new Loader[] { PrimitiveType, RecordSchema, EnumSchema, ArraySchema, MapSchema, UnionSchema, StringInstance }); - public static Loader> array_of_union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance = new ArrayLoader(union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance); - public static Loader 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 = new UnionLoader(new Loader[] { PrimitiveType, RecordSchema, EnumSchema, ArraySchema, MapSchema, UnionSchema, StringInstance, array_of_union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance }); - public static Loader typedsl_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_2 = new TypeDslLoader(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, 2); - public static Loader> array_of_RecordField = new ArrayLoader(RecordField); - public static Loader>> optional_array_of_RecordField = new OptionalLoader(array_of_RecordField); - public static Loader>> idmap_fields_optional_array_of_RecordField = new IdMapLoader(optional_array_of_RecordField, "name", "type"); - public static Loader Record_name = new EnumLoader(Record_name.class); - public static Loader typedsl_Record_name_2 = new TypeDslLoader(Record_name, 2); - public static Loader> optional_StringInstance = new OptionalLoader(StringInstance); - public static Loader> uri_optional_StringInstance_True_False_None_None = new UriLoader(optional_StringInstance, true, false, null, null); - public static Loader> uri_array_of_StringInstance_True_False_None_None = new UriLoader(array_of_StringInstance, true, false, null, null); - public static Loader Enum_name = new EnumLoader(Enum_name.class); - public static Loader typedsl_Enum_name_2 = new TypeDslLoader(Enum_name, 2); - public static Loader 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 = new UriLoader(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, null); - public static Loader Array_name = new EnumLoader(Array_name.class); - public static Loader typedsl_Array_name_2 = new TypeDslLoader(Array_name, 2); - public static Loader Map_name = new EnumLoader(Map_name.class); - public static Loader typedsl_Map_name_2 = new TypeDslLoader(Map_name, 2); - public static Loader Union_name = new EnumLoader(Union_name.class); - public static Loader typedsl_Union_name_2 = new TypeDslLoader(Union_name, 2); - public static Loader union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance = new UnionLoader(new Loader[] { PrimitiveType, CWLRecordSchema, EnumSchema, CWLArraySchema, StringInstance }); - public static Loader> array_of_union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance = new ArrayLoader(union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance); - public static Loader 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 = new UnionLoader(new Loader[] { PrimitiveType, CWLRecordSchema, EnumSchema, CWLArraySchema, StringInstance, array_of_union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance }); - public static Loader 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 = new UriLoader(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, null); - public static Loader 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 = new TypeDslLoader(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); - public static Loader> array_of_CWLRecordField = new ArrayLoader(CWLRecordField); - public static Loader>> optional_array_of_CWLRecordField = new OptionalLoader(array_of_CWLRecordField); - public static Loader>> idmap_fields_optional_array_of_CWLRecordField = new IdMapLoader(optional_array_of_CWLRecordField, "name", "type"); - public static Loader File_class = new EnumLoader(File_class.class); - public static Loader uri_File_class_False_True_None_None = new UriLoader(File_class, false, true, null, null); - public static Loader> uri_optional_StringInstance_False_False_None_None = new UriLoader(optional_StringInstance, false, false, null, null); - public static Loader union_of_NullInstance_or_IntegerInstance_or_LongInstance = new UnionLoader(new Loader[] { NullInstance, IntegerInstance, LongInstance }); - public static Loader union_of_File_or_Directory = new UnionLoader(new Loader[] { File, Directory }); - public static Loader> array_of_union_of_File_or_Directory = new ArrayLoader(union_of_File_or_Directory); - public static Loader>> optional_array_of_union_of_File_or_Directory = new OptionalLoader(array_of_union_of_File_or_Directory); - public static Loader>> secondaryfilesdsl_optional_array_of_union_of_File_or_Directory = new SecondaryFilesDslLoader(optional_array_of_union_of_File_or_Directory); - public static Loader> uri_optional_StringInstance_True_False_None_True = new UriLoader(optional_StringInstance, true, false, null, true); - public static Loader Directory_class = new EnumLoader(Directory_class.class); - public static Loader uri_Directory_class_False_True_None_None = new UriLoader(Directory_class, false, true, null, null); - public static Loader> optional_BooleanInstance = new OptionalLoader(BooleanInstance); - public static Loader> optional_LoadListingEnum = new OptionalLoader(LoadListingEnum); - public static Loader> array_of_SecondaryFileSchema = new ArrayLoader(SecondaryFileSchema); - public static Loader union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema = new UnionLoader(new Loader[] { NullInstance, SecondaryFileSchema, array_of_SecondaryFileSchema }); - public static Loader secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema = new SecondaryFilesDslLoader(union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema); - public static Loader ExpressionLoader = new ExpressionLoader(); - public static Loader union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, StringInstance, array_of_StringInstance, ExpressionLoader }); - public static Loader uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True = new UriLoader(union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader, true, false, null, true); - public static Loader union_of_NullInstance_or_StringInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, StringInstance, ExpressionLoader }); - public static Loader uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True = new UriLoader(union_of_NullInstance_or_StringInstance_or_ExpressionLoader, true, false, null, true); - public static Loader union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, InputRecordSchema, InputEnumSchema, InputArraySchema, StringInstance }); - public static Loader> array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance = new ArrayLoader(union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance); - public static Loader union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, InputRecordSchema, InputEnumSchema, InputArraySchema, StringInstance, array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance }); - public static Loader typedsl_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance, 2); - public static Loader> array_of_InputRecordField = new ArrayLoader(InputRecordField); - public static Loader>> optional_array_of_InputRecordField = new OptionalLoader(array_of_InputRecordField); - public static Loader>> idmap_fields_optional_array_of_InputRecordField = new IdMapLoader(optional_array_of_InputRecordField, "name", "type"); - public static Loader uri_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_False_True_2_None = new UriLoader(union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance, false, true, 2, null); - public static Loader union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, OutputRecordSchema, OutputEnumSchema, OutputArraySchema, StringInstance }); - public static Loader> array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance = new ArrayLoader(union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance); - public static Loader union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, OutputRecordSchema, OutputEnumSchema, OutputArraySchema, StringInstance, array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance }); - public static Loader typedsl_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance, 2); - public static Loader> array_of_OutputRecordField = new ArrayLoader(OutputRecordField); - public static Loader>> optional_array_of_OutputRecordField = new OptionalLoader(array_of_OutputRecordField); - public static Loader>> idmap_fields_optional_array_of_OutputRecordField = new IdMapLoader(optional_array_of_OutputRecordField, "name", "type"); - public static Loader uri_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_False_True_2_None = new UriLoader(union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance, false, true, 2, null); - public static Loader union_of_CommandInputParameter_or_WorkflowInputParameter = new UnionLoader(new Loader[] { CommandInputParameter, WorkflowInputParameter }); - public static Loader> array_of_union_of_CommandInputParameter_or_WorkflowInputParameter = new ArrayLoader(union_of_CommandInputParameter_or_WorkflowInputParameter); - public static Loader> idmap_inputs_array_of_union_of_CommandInputParameter_or_WorkflowInputParameter = new IdMapLoader(array_of_union_of_CommandInputParameter_or_WorkflowInputParameter, "id", "type"); - public static Loader union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter = new UnionLoader(new Loader[] { CommandOutputParameter, ExpressionToolOutputParameter, WorkflowOutputParameter }); - public static Loader> array_of_union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter = new ArrayLoader(union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter); - public static Loader> idmap_outputs_array_of_union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter = new IdMapLoader(array_of_union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter, "id", "type"); - public static Loader>> optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement = new OptionalLoader(array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement); - public static Loader>> idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement = new IdMapLoader(optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement, "class", "None"); - public static Loader union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance = new UnionLoader(new Loader[] { InlineJavascriptRequirement, SchemaDefRequirement, LoadListingRequirement, DockerRequirement, SoftwareRequirement, InitialWorkDirRequirement, EnvVarRequirement, ShellCommandRequirement, ResourceRequirement, WorkReuse, NetworkAccess, InplaceUpdateRequirement, ToolTimeLimit, SubworkflowFeatureRequirement, ScatterFeatureRequirement, MultipleInputFeatureRequirement, StepInputExpressionRequirement, AnyInstance }); - public static Loader> array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance = new ArrayLoader(union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance); - public static Loader>> optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance = new OptionalLoader(array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance); - public static Loader>> idmap_hints_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance = new IdMapLoader(optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance, "class", "None"); - public static Loader> optional_CWLVersion = new OptionalLoader(CWLVersion); - public static Loader> uri_optional_CWLVersion_False_True_None_None = new UriLoader(optional_CWLVersion, false, true, null, null); - public static Loader InlineJavascriptRequirement_class = new EnumLoader(InlineJavascriptRequirement_class.class); - public static Loader uri_InlineJavascriptRequirement_class_False_True_None_None = new UriLoader(InlineJavascriptRequirement_class, false, true, null, null); - public static Loader>> optional_array_of_StringInstance = new OptionalLoader(array_of_StringInstance); - public static Loader SchemaDefRequirement_class = new EnumLoader(SchemaDefRequirement_class.class); - public static Loader uri_SchemaDefRequirement_class_False_True_None_None = new UriLoader(SchemaDefRequirement_class, false, true, null, null); - public static Loader union_of_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema = new UnionLoader(new Loader[] { CommandInputRecordSchema, CommandInputEnumSchema, CommandInputArraySchema }); - public static Loader> array_of_union_of_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema = new ArrayLoader(union_of_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema); - public static Loader union_of_StringInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { StringInstance, ExpressionLoader }); - public static Loader union_of_NullInstance_or_BooleanInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, BooleanInstance, ExpressionLoader }); - public static Loader LoadListingRequirement_class = new EnumLoader(LoadListingRequirement_class.class); - public static Loader uri_LoadListingRequirement_class_False_True_None_None = new UriLoader(LoadListingRequirement_class, false, true, null, null); - public static Loader union_of_NullInstance_or_IntegerInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, IntegerInstance, ExpressionLoader }); - public static Loader union_of_NullInstance_or_StringInstance_or_ExpressionLoader_or_array_of_StringInstance = new UnionLoader(new Loader[] { NullInstance, StringInstance, ExpressionLoader, array_of_StringInstance }); - public static Loader> optional_ExpressionLoader = new OptionalLoader(ExpressionLoader); - public static Loader> optional_CommandLineBinding = new OptionalLoader(CommandLineBinding); - public static Loader union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, CommandInputRecordSchema, CommandInputEnumSchema, CommandInputArraySchema, StringInstance }); - public static Loader> array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance = new ArrayLoader(union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance); - public static Loader 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 = new UnionLoader(new Loader[] { CWLType, CommandInputRecordSchema, CommandInputEnumSchema, CommandInputArraySchema, StringInstance, array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance }); - public static Loader 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 = new TypeDslLoader(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); - public static Loader> array_of_CommandInputRecordField = new ArrayLoader(CommandInputRecordField); - public static Loader>> optional_array_of_CommandInputRecordField = new OptionalLoader(array_of_CommandInputRecordField); - public static Loader>> idmap_fields_optional_array_of_CommandInputRecordField = new IdMapLoader(optional_array_of_CommandInputRecordField, "name", "type"); - public static Loader 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_None = new UriLoader(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, null); - public static Loader union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, CommandOutputRecordSchema, CommandOutputEnumSchema, CommandOutputArraySchema, StringInstance }); - public static Loader> array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance = new ArrayLoader(union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance); - public static Loader union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, CommandOutputRecordSchema, CommandOutputEnumSchema, CommandOutputArraySchema, StringInstance, array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance }); - public static Loader typedsl_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance, 2); - public static Loader> optional_CommandOutputBinding = new OptionalLoader(CommandOutputBinding); - public static Loader> array_of_CommandOutputRecordField = new ArrayLoader(CommandOutputRecordField); - public static Loader>> optional_array_of_CommandOutputRecordField = new OptionalLoader(array_of_CommandOutputRecordField); - public static Loader>> idmap_fields_optional_array_of_CommandOutputRecordField = new IdMapLoader(optional_array_of_CommandOutputRecordField, "name", "type"); - public static Loader uri_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_False_True_2_None = new UriLoader(union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance, false, true, 2, null); - public static Loader union_of_CWLType_or_stdin_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, stdin, CommandInputRecordSchema, CommandInputEnumSchema, CommandInputArraySchema, StringInstance, array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance }); - public static Loader typedsl_union_of_CWLType_or_stdin_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_stdin_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance, 2); - public static Loader union_of_CWLType_or_stdout_or_stderr_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, stdout, stderr, CommandOutputRecordSchema, CommandOutputEnumSchema, CommandOutputArraySchema, StringInstance, array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance }); - public static Loader typedsl_union_of_CWLType_or_stdout_or_stderr_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_stdout_or_stderr_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance, 2); - public static Loader CommandLineTool_class = new EnumLoader(CommandLineTool_class.class); - public static Loader uri_CommandLineTool_class_False_True_None_None = new UriLoader(CommandLineTool_class, false, true, null, null); - public static Loader> array_of_CommandInputParameter = new ArrayLoader(CommandInputParameter); - public static Loader> idmap_inputs_array_of_CommandInputParameter = new IdMapLoader(array_of_CommandInputParameter, "id", "type"); - public static Loader> array_of_CommandOutputParameter = new ArrayLoader(CommandOutputParameter); - public static Loader> idmap_outputs_array_of_CommandOutputParameter = new IdMapLoader(array_of_CommandOutputParameter, "id", "type"); - public static Loader union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding = new UnionLoader(new Loader[] { StringInstance, ExpressionLoader, CommandLineBinding }); - public static Loader> array_of_union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding = new ArrayLoader(union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding); - public static Loader>> optional_array_of_union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding = new OptionalLoader(array_of_union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding); - public static Loader> array_of_IntegerInstance = new ArrayLoader(IntegerInstance); - public static Loader>> optional_array_of_IntegerInstance = new OptionalLoader(array_of_IntegerInstance); - public static Loader DockerRequirement_class = new EnumLoader(DockerRequirement_class.class); - public static Loader uri_DockerRequirement_class_False_True_None_None = new UriLoader(DockerRequirement_class, false, true, null, null); - public static Loader SoftwareRequirement_class = new EnumLoader(SoftwareRequirement_class.class); - public static Loader uri_SoftwareRequirement_class_False_True_None_None = new UriLoader(SoftwareRequirement_class, false, true, null, null); - public static Loader> array_of_SoftwarePackage = new ArrayLoader(SoftwarePackage); - public static Loader> idmap_packages_array_of_SoftwarePackage = new IdMapLoader(array_of_SoftwarePackage, "package", "specs"); - public static Loader>> uri_optional_array_of_StringInstance_False_False_None_True = new UriLoader(optional_array_of_StringInstance, false, false, null, true); - public static Loader InitialWorkDirRequirement_class = new EnumLoader(InitialWorkDirRequirement_class.class); - public static Loader uri_InitialWorkDirRequirement_class_False_True_None_None = new UriLoader(InitialWorkDirRequirement_class, false, true, null, null); - public static Loader union_of_NullInstance_or_File_or_array_of_union_of_File_or_Directory_or_Directory_or_Dirent_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, File, array_of_union_of_File_or_Directory, Directory, Dirent, ExpressionLoader }); - public static Loader> array_of_union_of_NullInstance_or_File_or_array_of_union_of_File_or_Directory_or_Directory_or_Dirent_or_ExpressionLoader = new ArrayLoader(union_of_NullInstance_or_File_or_array_of_union_of_File_or_Directory_or_Directory_or_Dirent_or_ExpressionLoader); - public static Loader union_of_array_of_union_of_NullInstance_or_File_or_array_of_union_of_File_or_Directory_or_Directory_or_Dirent_or_ExpressionLoader_or_ExpressionLoader = new UnionLoader(new Loader[] { array_of_union_of_NullInstance_or_File_or_array_of_union_of_File_or_Directory_or_Directory_or_Dirent_or_ExpressionLoader, ExpressionLoader }); - public static Loader EnvVarRequirement_class = new EnumLoader(EnvVarRequirement_class.class); - public static Loader uri_EnvVarRequirement_class_False_True_None_None = new UriLoader(EnvVarRequirement_class, false, true, null, null); - public static Loader> array_of_EnvironmentDef = new ArrayLoader(EnvironmentDef); - public static Loader> idmap_envDef_array_of_EnvironmentDef = new IdMapLoader(array_of_EnvironmentDef, "envName", "envValue"); - public static Loader ShellCommandRequirement_class = new EnumLoader(ShellCommandRequirement_class.class); - public static Loader uri_ShellCommandRequirement_class_False_True_None_None = new UriLoader(ShellCommandRequirement_class, false, true, null, null); - public static Loader ResourceRequirement_class = new EnumLoader(ResourceRequirement_class.class); - public static Loader uri_ResourceRequirement_class_False_True_None_None = new UriLoader(ResourceRequirement_class, false, true, null, null); - public static Loader union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, IntegerInstance, LongInstance, ExpressionLoader }); - public static Loader WorkReuse_class = new EnumLoader(WorkReuse_class.class); - public static Loader uri_WorkReuse_class_False_True_None_None = new UriLoader(WorkReuse_class, false, true, null, null); - public static Loader union_of_BooleanInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { BooleanInstance, ExpressionLoader }); - public static Loader NetworkAccess_class = new EnumLoader(NetworkAccess_class.class); - public static Loader uri_NetworkAccess_class_False_True_None_None = new UriLoader(NetworkAccess_class, false, true, null, null); - public static Loader InplaceUpdateRequirement_class = new EnumLoader(InplaceUpdateRequirement_class.class); - public static Loader uri_InplaceUpdateRequirement_class_False_True_None_None = new UriLoader(InplaceUpdateRequirement_class, false, true, null, null); - public static Loader ToolTimeLimit_class = new EnumLoader(ToolTimeLimit_class.class); - public static Loader uri_ToolTimeLimit_class_False_True_None_None = new UriLoader(ToolTimeLimit_class, false, true, null, null); - public static Loader union_of_IntegerInstance_or_LongInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { IntegerInstance, LongInstance, ExpressionLoader }); - public static Loader> optional_InputBinding = new OptionalLoader(InputBinding); - public static Loader ExpressionTool_class = new EnumLoader(ExpressionTool_class.class); - public static Loader uri_ExpressionTool_class_False_True_None_None = new UriLoader(ExpressionTool_class, false, true, null, null); - public static Loader> array_of_WorkflowInputParameter = new ArrayLoader(WorkflowInputParameter); - public static Loader> idmap_inputs_array_of_WorkflowInputParameter = new IdMapLoader(array_of_WorkflowInputParameter, "id", "type"); - public static Loader> array_of_ExpressionToolOutputParameter = new ArrayLoader(ExpressionToolOutputParameter); - public static Loader> idmap_outputs_array_of_ExpressionToolOutputParameter = new IdMapLoader(array_of_ExpressionToolOutputParameter, "id", "type"); - public static Loader uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_1_None = new UriLoader(union_of_NullInstance_or_StringInstance_or_array_of_StringInstance, false, false, 1, null); - public static Loader> optional_LinkMergeMethod = new OptionalLoader(LinkMergeMethod); - public static Loader uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_2_None = new UriLoader(union_of_NullInstance_or_StringInstance_or_array_of_StringInstance, false, false, 2, null); - public static Loader> array_of_WorkflowStepInput = new ArrayLoader(WorkflowStepInput); - public static Loader> idmap_in_array_of_WorkflowStepInput = new IdMapLoader(array_of_WorkflowStepInput, "id", "source"); - public static Loader union_of_StringInstance_or_WorkflowStepOutput = new UnionLoader(new Loader[] { StringInstance, WorkflowStepOutput }); - public static Loader> array_of_union_of_StringInstance_or_WorkflowStepOutput = new ArrayLoader(union_of_StringInstance_or_WorkflowStepOutput); - public static Loader> uri_array_of_union_of_StringInstance_or_WorkflowStepOutput_True_False_None_None = new UriLoader(array_of_union_of_StringInstance_or_WorkflowStepOutput, true, false, null, null); - public static Loader> array_of_AnyInstance = new ArrayLoader(AnyInstance); - public static Loader>> optional_array_of_AnyInstance = new OptionalLoader(array_of_AnyInstance); - public static Loader>> idmap_hints_optional_array_of_AnyInstance = new IdMapLoader(optional_array_of_AnyInstance, "class", "None"); - public static Loader union_of_StringInstance_or_CommandLineTool_or_ExpressionTool_or_Workflow = new UnionLoader(new Loader[] { StringInstance, CommandLineTool, ExpressionTool, Workflow }); - public static Loader uri_union_of_StringInstance_or_CommandLineTool_or_ExpressionTool_or_Workflow_False_False_None_None = new UriLoader(union_of_StringInstance_or_CommandLineTool_or_ExpressionTool_or_Workflow, false, false, null, null); - public static Loader uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_0_None = new UriLoader(union_of_NullInstance_or_StringInstance_or_array_of_StringInstance, false, false, 0, null); - public static Loader> optional_ScatterMethod = new OptionalLoader(ScatterMethod); - public static Loader> uri_optional_ScatterMethod_False_True_None_None = new UriLoader(optional_ScatterMethod, false, true, null, null); - public static Loader Workflow_class = new EnumLoader(Workflow_class.class); - public static Loader uri_Workflow_class_False_True_None_None = new UriLoader(Workflow_class, false, true, null, null); - public static Loader> array_of_WorkflowOutputParameter = new ArrayLoader(WorkflowOutputParameter); - public static Loader> idmap_outputs_array_of_WorkflowOutputParameter = new IdMapLoader(array_of_WorkflowOutputParameter, "id", "type"); - public static Loader> array_of_WorkflowStep = new ArrayLoader(WorkflowStep); - public static Loader> idmap_steps_array_of_WorkflowStep = new IdMapLoader(array_of_WorkflowStep, "id", "None"); - public static Loader SubworkflowFeatureRequirement_class = new EnumLoader(SubworkflowFeatureRequirement_class.class); - public static Loader uri_SubworkflowFeatureRequirement_class_False_True_None_None = new UriLoader(SubworkflowFeatureRequirement_class, false, true, null, null); - public static Loader ScatterFeatureRequirement_class = new EnumLoader(ScatterFeatureRequirement_class.class); - public static Loader uri_ScatterFeatureRequirement_class_False_True_None_None = new UriLoader(ScatterFeatureRequirement_class, false, true, null, null); - public static Loader MultipleInputFeatureRequirement_class = new EnumLoader(MultipleInputFeatureRequirement_class.class); - public static Loader uri_MultipleInputFeatureRequirement_class_False_True_None_None = new UriLoader(MultipleInputFeatureRequirement_class, false, true, null, null); - public static Loader StepInputExpressionRequirement_class = new EnumLoader(StepInputExpressionRequirement_class.class); - public static Loader uri_StepInputExpressionRequirement_class_False_True_None_None = new UriLoader(StepInputExpressionRequirement_class, false, true, null, null); - public static Loader union_of_CommandLineTool_or_ExpressionTool_or_Workflow = new UnionLoader(new Loader[] { CommandLineTool, ExpressionTool, Workflow }); - public static Loader> array_of_union_of_CommandLineTool_or_ExpressionTool_or_Workflow = new ArrayLoader(union_of_CommandLineTool_or_ExpressionTool_or_Workflow); - public static Loader union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_array_of_union_of_CommandLineTool_or_ExpressionTool_or_Workflow = new UnionLoader(new Loader[] { CommandLineTool, ExpressionTool, Workflow, array_of_union_of_CommandLineTool_or_ExpressionTool_or_Workflow }); - - static { - ((UnionLoader) CWLObjectType).addLoaders(new Loader[] { BooleanInstance, IntegerInstance, LongInstance, DoubleInstance, DoubleInstance, StringInstance, File, Directory, array_of_optional_CWLObjectType, map_of_optional_CWLObjectType }); - } - -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/LoadingOptions.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/LoadingOptions.java deleted file mode 100644 index 8e4cd367..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/LoadingOptions.java +++ /dev/null @@ -1,129 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.net.URI; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Map; - -public class LoadingOptions { - Fetcher fetcher; - String fileUri; - Map namespaces; - List schemas; - Boolean noLinkCheck; - String container; - Map idx; - Map vocab; - Map rvocab; - - LoadingOptions( - final Fetcher fetcher, - final String fileUri, - final Map namespaces, - final List schemas, - final Boolean noLinkCheck, - final String container, - final Map idx) { - this.fetcher = fetcher; - this.fileUri = fileUri; - this.namespaces = namespaces; - this.schemas = schemas; - this.noLinkCheck = noLinkCheck; - this.container = container; - this.idx = idx; - - if (namespaces != null) { - this.vocab = (Map) ConstantMaps.vocab.clone(); - this.rvocab = (Map) ConstantMaps.rvocab.clone(); - for (Map.Entry namespaceEntry : namespaces.entrySet()) { - this.vocab.put(namespaceEntry.getKey(), namespaceEntry.getValue()); - this.rvocab.put(namespaceEntry.getValue(), namespaceEntry.getKey()); - } - } else { - this.vocab = (Map) ConstantMaps.vocab; - this.rvocab = (Map) ConstantMaps.rvocab; - } - } - - public String expandUrl( - String url_, - final String baseUrl, - final boolean scopedId, - final boolean vocabTerm, - final Integer scopedRef) { - // NOT CONVERTING this - doesn't match type declaration - // if not isinstance(url, str): - // return url - String url = url_; - if (url.equals("@id") || url.equals("@type")) { - return url; - } - - if (vocabTerm && this.vocab.containsKey(url)) { - return url; - } - - if (!this.vocab.isEmpty() && url.contains(":")) { - String prefix = url.split(":", 1)[0]; - if (this.vocab.containsKey(prefix)) { - url = this.vocab.get(prefix) + url.substring(prefix.length() + 1); - } - } - - Uris.UriSplit split = Uris.split(url); - final String scheme = split.scheme; - final boolean hasFragment = stringHasContent(split.fragment); - if (scheme != null - && ((scheme.length() > 0 - && (scheme.equals("http") || scheme.equals("https") || scheme.equals("file"))) - || url.startsWith("$(") - || url.startsWith("${"))) { - // pass - } else if (scopedId && !hasFragment) { - final Uris.UriSplit splitbase = Uris.split(baseUrl); - final String frg; - if (stringHasContent(splitbase.fragment)) { - frg = splitbase.fragment + "/" + split.path; - } else { - frg = split.path; - } - String pt; - if (!splitbase.path.equals("")) { - pt = splitbase.path; - } else { - pt = "/"; - } - url = Uris.unsplit(splitbase.scheme, splitbase.netloc, pt, splitbase.query, frg); - } else if (scopedRef != null && !hasFragment) { - final Uris.UriSplit splitbase = Uris.split(baseUrl); - final ArrayList sp = new ArrayList(Arrays.asList(splitbase.fragment.split("/"))); - int n = scopedRef; - while (n > 0 && sp.size() > 0) { - sp.remove(sp.size()-1); - n -= 1; - } - sp.add(url); - final String fragment = String.join("/", sp); - url = Uris.unsplit(splitbase.scheme, splitbase.netloc, splitbase.path, splitbase.query, fragment); - } else { - url = this.fetcher.urlJoin(baseUrl, url); - } - - if (vocabTerm) { - split = Uris.split(url); - if (stringHasContent(split.scheme)) { - if (this.rvocab.containsKey(url)) { - return this.rvocab.get(url); - } - } else { - throw new ValidationException("Term '{}' not in vocabulary".format(url)); - } - } - return url; - } - - static boolean stringHasContent(final String s) { - return s != null && s.length() > 0; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/LoadingOptionsBuilder.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/LoadingOptionsBuilder.java deleted file mode 100644 index f3c3677f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/LoadingOptionsBuilder.java +++ /dev/null @@ -1,82 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Optional; - -public class LoadingOptionsBuilder { - private Optional fetcher = Optional.empty(); - private Optional fileUri = Optional.empty(); - private Optional> namespaces = Optional.empty(); - private Optional> schemas = Optional.empty(); - private Optional copyFrom = Optional.empty(); - private Optional noLinkCheck = Optional.empty(); - private Optional container = Optional.empty(); - - public LoadingOptionsBuilder() {} - - public LoadingOptionsBuilder setFetcher(final Fetcher fetcher) { - this.fetcher = Optional.of(fetcher); - return this; - } - - public LoadingOptionsBuilder copiedFrom(final LoadingOptions copyFrom) { - this.copyFrom = Optional.of(copyFrom); - return this; - } - - public LoadingOptionsBuilder setFileUri(final String fileUri) { - this.fileUri = Optional.of(fileUri); - return this; - } - - public LoadingOptionsBuilder setNamespaces(final Map namespaces) { - this.namespaces = Optional.of(namespaces); - return this; - } - - public LoadingOptionsBuilder setNoLinkCheck(final Boolean noLinkCheck) { - this.noLinkCheck = Optional.of(noLinkCheck); - return this; - } - - public LoadingOptionsBuilder setContainer(final String container) { - this.container = Optional.of(container); - return this; - } - - public LoadingOptions build() { - Fetcher fetcher = this.fetcher.orElse(null); - String fileUri = this.fileUri.orElse(null); - List schemas = this.schemas.orElse(null); - Map namespaces = this.namespaces.orElse(null); - Boolean noLinkCheck = this.noLinkCheck.orElse(null); - String container = this.container.orElse(null); - Map idx = new HashMap(); - if (this.copyFrom.isPresent()) { - final LoadingOptions copyFrom = this.copyFrom.get(); - idx = copyFrom.idx; - if (fetcher == null) { - fetcher = copyFrom.fetcher; - } - if (fileUri == null) { - fileUri = copyFrom.fileUri; - } - if (namespaces == null) { - namespaces = copyFrom.namespaces; - schemas = copyFrom.schemas; // Bug in Python codegen? - } - if (noLinkCheck == null) { - noLinkCheck = copyFrom.noLinkCheck; - } - if (container == null) { - container = copyFrom.container; - } - } - if (fetcher == null) { - fetcher = new DefaultFetcher(); - } - return new LoadingOptions(fetcher, fileUri, namespaces, schemas, noLinkCheck, container, idx); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/MapLoader.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/MapLoader.java deleted file mode 100644 index 71b77317..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/MapLoader.java +++ /dev/null @@ -1,51 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class MapLoader implements Loader> { - private final Loader valueLoader; - private final String container; - private final Boolean noLinkCheck; - - public MapLoader(Loader valueLoader, final String container, final Boolean noLinkCheck) { - this.valueLoader = valueLoader; - this.container = container; - this.noLinkCheck = noLinkCheck; - } - - public Map load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - final Map docMap = (Map) Loader.validateOfJavaType(Map.class, doc); - LoadingOptions innerLoadingOptions = loadingOptions; - if (this.container != null || this.noLinkCheck != null) { - LoadingOptionsBuilder builder = new LoadingOptionsBuilder().copiedFrom(loadingOptions); - if (this.container != null) { - builder.setContainer(this.container); - } - if (this.noLinkCheck != null) { - builder.setNoLinkCheck(this.noLinkCheck); - } - innerLoadingOptions = builder.build(); - } - final Map r = new HashMap(); - final List errors = new ArrayList(); - for (final Map.Entry entry : docMap.entrySet()) { - try { - final Object loadedField = this.valueLoader.loadField(entry.getValue(), baseUri, innerLoadingOptions); - r.put(entry.getKey(), (T) loadedField); - } catch (final ValidationException e) { - errors.add(e); - } - } - if (!errors.isEmpty()) { - throw new ValidationException("", errors); - } - return r; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/NullLoader.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/NullLoader.java deleted file mode 100644 index e8e4d013..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/NullLoader.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -public class NullLoader implements Loader { - - public Object load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - if (doc != null) { - throw new ValidationException("Expected null"); - } - return doc; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/OneOrListOf.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/OneOrListOf.java deleted file mode 100644 index 9643dc3e..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/OneOrListOf.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.util.List; -import java.util.Optional; - -public class OneOrListOf { - private Optional object; - private Optional> objects; - - private OneOrListOf(final T object, final List objects) { - this.object = Optional.ofNullable(object); - this.objects = Optional.ofNullable(objects); - } - - public static OneOrListOf oneOf(T object) { - return new OneOrListOf(object, null); - } - - public static OneOrListOf listOf(List objects) { - assert objects != null; - return new OneOrListOf(null, objects); - } - - public boolean isOne() { - return this.getOneOptional().isPresent(); - } - - public boolean isList() { - return this.getListOptional().isPresent(); - } - - public Optional getOneOptional() { - return this.object; - } - - public Optional> getListOptional() { - return this.objects; - } - - public T getOne() { - return this.getOneOptional().get(); - } - - public List getList() { - return this.getListOptional().get(); - } - -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/OneOrListOfLoader.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/OneOrListOfLoader.java deleted file mode 100644 index 94d1125f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/OneOrListOfLoader.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.util.ArrayList; -import java.util.List; -import java.util.Optional; - - -public class OneOrListOfLoader implements Loader> { - private final Loader oneLoader; - private final Loader> listLoader; - - public OneOrListOfLoader(Loader oneLoader, Loader> listLoader) { - this.oneLoader = oneLoader; - this.listLoader = listLoader; - } - - public OneOrListOf load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - final List errors = new ArrayList(); - try { - return OneOrListOf.oneOf(this.oneLoader.load(doc, baseUri, loadingOptions, docRoot)); - } catch (ValidationException e) { - errors.add(e); - } - try { - return OneOrListOf.listOf(this.listLoader.load(doc, baseUri, loadingOptions, docRoot)); - } catch (ValidationException e) { - errors.add(e); - } - throw new ValidationException("Failed to one or list of of type", errors); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/OptionalLoader.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/OptionalLoader.java deleted file mode 100644 index 27f956ce..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/OptionalLoader.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.util.Optional; - - -public class OptionalLoader implements Loader> { - private final Loader itemLoader; - - public OptionalLoader(Loader itemLoader) { - this.itemLoader = itemLoader; - } - - public Optional load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - if(doc == null) { - return Optional.empty(); - } - return Optional.of(itemLoader.load(doc, baseUri, loadingOptions, docRoot)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/PrimitiveLoader.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/PrimitiveLoader.java deleted file mode 100644 index 9dccc7d9..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/PrimitiveLoader.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -public class PrimitiveLoader implements Loader { - private Class clazz; - - public PrimitiveLoader(Class clazz) { - this.clazz = clazz; - } - - public T load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - return Loader.validateOfJavaType(this.clazz, doc); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/RecordLoader.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/RecordLoader.java deleted file mode 100644 index bf233097..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/RecordLoader.java +++ /dev/null @@ -1,51 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.lang.reflect.Constructor; -import java.lang.reflect.InvocationTargetException; - -public class RecordLoader implements Loader { - private final Class saveableClass; - private final String container; - private final Boolean noLinkCheck; - - public RecordLoader(final Class saveableClass, final String container, final Boolean noLinkCheck) { - this.saveableClass = saveableClass; - this.container = container; - this.noLinkCheck = noLinkCheck; - } - - public T load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - Loader.validateOfJavaType(java.util.Map.class, doc); - try { - final Constructor constructor = - this.saveableClass.getConstructor( - new Class[] {Object.class, String.class, LoadingOptions.class, String.class}); - LoadingOptions innerLoadingOptions = loadingOptions; - if (this.container != null || this.noLinkCheck != null) { - LoadingOptionsBuilder builder = new LoadingOptionsBuilder().copiedFrom(loadingOptions); - if (this.container != null) { - builder.setContainer(this.container); - } - if (this.noLinkCheck != null) { - builder.setNoLinkCheck(this.noLinkCheck); - } - innerLoadingOptions = builder.build(); - } - final T ret = constructor.newInstance(doc, baseUri, innerLoadingOptions, docRoot); - return ret; - } catch (InvocationTargetException e) { - final Throwable cause = e.getCause(); - if (cause instanceof RuntimeException) { - throw (RuntimeException) cause; - } - throw new RuntimeException(e.getCause()); - } catch (ReflectiveOperationException e) { - throw new RuntimeException(e); - } - } - -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/RootLoader.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/RootLoader.java deleted file mode 100644 index d0182274..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/RootLoader.java +++ /dev/null @@ -1,105 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.io.File; -import java.io.IOException; -import java.nio.file.Files; -import java.nio.file.Path; -import java.nio.file.Paths; -import java.util.Map; - -public class RootLoader { - public static Object loadDocument( - final Map doc, final String baseUri_, final LoadingOptions loadingOptions_) { - final String baseUri = ensureBaseUri(baseUri_); - LoadingOptions loadingOptions = loadingOptions_; - if (loadingOptions == null) { - loadingOptions = new LoadingOptionsBuilder().setFileUri(baseUri).build(); - } - return LoaderInstances.union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_array_of_union_of_CommandLineTool_or_ExpressionTool_or_Workflow.documentLoad(doc, baseUri, loadingOptions); - } - - public static Object loadDocument( - final Map doc, final String baseUri) { - return loadDocument(doc, baseUri, null); - } - - public static Object loadDocument(final Map doc) { - return loadDocument(doc, ensureBaseUri(null)); - } - - public static Object loadDocument(final Path path) { - return loadDocument(readPath(path), path.toUri().toString()); - } - - public static Object loadDocument(final Path path, String baseUri) { - return loadDocument(readPath(path), baseUri); - } - - public static Object loadDocument( - final Path path, LoadingOptions loadingOptions) { - return loadDocument(readPath(path), loadingOptions); - } - - public static Object loadDocument( -final Path path, String baseUri, LoadingOptions loadingOptions) { - return loadDocument(readPath(path), baseUri, loadingOptions); - } - - public static Object loadDocument(final File file) { - return loadDocument(file.toPath()); - } - - public static Object loadDocument(final File file, String baseUri) { - return loadDocument(file.toPath(), baseUri); - } - - public static Object loadDocument(final File file, LoadingOptions loadingOptions) { - return loadDocument(file.toPath(), loadingOptions); - } - - public static Object loadDocument( - final File file, String baseUri, LoadingOptions loadingOptions) { - return loadDocument(file.toPath(), baseUri, loadingOptions); - } - - public static Object loadDocument(final String doc) { - return loadDocument(doc, ensureBaseUri(null)); - } - - public static Object loadDocument(final String doc, final LoadingOptions loadingOptions) { - return loadDocument(doc, ensureBaseUri(null), loadingOptions); - } - - public static Object loadDocument(final String doc, final String uri) { - return loadDocument(doc, uri, null); - } - - public static Object loadDocument( - final String doc, final String uri_, final LoadingOptions loadingOptions_) { - final String uri = ensureBaseUri(uri_); - LoadingOptions loadingOptions = loadingOptions_; - if (loadingOptions == null) { - loadingOptions = new LoadingOptionsBuilder().setFileUri(uri).build(); - } - final Map result = YamlUtils.mapFromString(doc); - loadingOptions.idx.put(uri, result); - return loadDocument(result, uri, loadingOptions); - } - - static String readPath(final Path path) { - try { - return new String(Files.readAllBytes(path), "UTF8"); - } catch (final IOException e) { - throw new RuntimeException(e); - } - } - - static String ensureBaseUri(final String baseUri_) { - String baseUri = baseUri_; - if(baseUri == null) { - baseUri = Uris.fileUri(Paths.get(".").toAbsolutePath().normalize().toString()) + "/"; - } - return baseUri; - } - -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/Saveable.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/Saveable.java deleted file mode 100644 index 5d56ec65..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/Saveable.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -public interface Saveable { - // TODO: implement writable interface - // public abstract void save(boolean top, String baseUrl, boolean relativeUris); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/SaveableImpl.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/SaveableImpl.java deleted file mode 100644 index cd00f0f5..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/SaveableImpl.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -public class SaveableImpl implements Saveable { - public SaveableImpl(Object doc, String baseUri, LoadingOptions loadingOptions, String docRoot) {} -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/SecondaryFilesDslLoader.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/SecondaryFilesDslLoader.java deleted file mode 100644 index 5eb58816..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/SecondaryFilesDslLoader.java +++ /dev/null @@ -1,86 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class SecondaryFilesDslLoader implements Loader { - private final Loader innerLoader; - - public SecondaryFilesDslLoader(final Loader innerLoader) { - this.innerLoader = innerLoader; - } - - - public T load( - final Object doc_, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - Object doc = doc_; - List> r = new ArrayList>(); - if (doc instanceof List) { - final List docList = (List) doc; - for (final Object d : docList) { - Map entry = new HashMap(); - if (d instanceof String) { - String dString = (String) d; - if (dString.endsWith("?")) { - entry.put("pattern", dString.substring(0, dString.length()-1)); - entry.put("required", false); - } else { - entry.put("pattern", dString); - } - r.add(entry); - } else if (d instanceof Map) { - @SuppressWarnings("unchecked") - Map dMap = new HashMap((Map) d); - if (dMap.containsKey("pattern")) { - entry.put("pattern", dMap.remove("pattern")); - } else { - throw new ValidationException("Missing 'pattern' in secondaryFiles specification entry."); - } - if (dMap.containsKey("required")) { - entry.put("required", dMap.remove("required")); - } - if (dMap.size() > 0) { - throw new ValidationException("Unallowed values in secondaryFiles specification entry."); - } - r.add(entry); - } else { - throw new ValidationException("Expected a string or sequence of (strings or mappings)."); - } - } - } else if (doc instanceof Map) { - Map entry = new HashMap(); - @SuppressWarnings("unchecked") - Map dMap = new HashMap((Map) doc); - if (dMap.containsKey("pattern")) { - entry.put("pattern", dMap.remove("pattern")); - } else { - throw new ValidationException("Missing 'pattern' in secondaryFiles specification entry."); - } - if (dMap.containsKey("required")) { - entry.put("required", dMap.remove("required")); - } - if (dMap.size() > 0) { - throw new ValidationException("Unallowed values in secondaryFiles specification entry."); - } - r.add(entry); - } else if (doc instanceof String) { - String dString = (String) doc; - Map entry = new HashMap(); - if (dString.endsWith("?")) { - entry.put("pattern", dString.substring(0, dString.length()-1)); - entry.put("required", false); - } else { - entry.put("pattern", dString); - } - r.add(entry); - } else { - throw new ValidationException("Expected a string or sequence of (strings or mappings)."); - } - return this.innerLoader.load(r, baseUri, loadingOptions, docRoot); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/TypeDslLoader.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/TypeDslLoader.java deleted file mode 100644 index 41398b02..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/TypeDslLoader.java +++ /dev/null @@ -1,81 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -public class TypeDslLoader implements Loader { - private final Loader innerLoader; - private final Integer refScope; - private static final Pattern TYPE_DSL_REGEX = Pattern.compile("^([^\\[?]+)(\\[\\])?(\\?)?$"); - - public TypeDslLoader(final Loader innerLoader, final Integer refScope) { - this.innerLoader = innerLoader; - this.refScope = refScope; - } - - private Object resolve( - final String doc_, final String baseUri, final LoadingOptions loadingOptions) { - final Matcher m = TYPE_DSL_REGEX.matcher(doc_); - if (m.matches()) { - final String first = - loadingOptions.expandUrl(m.group(1), baseUri, false, true, this.refScope); - Object second = null; - Object third = null; - if (m.group(2) != null && m.group(2).length() > 0) { - HashMap resolvedMap = new HashMap(); - resolvedMap.put("type", "array"); - resolvedMap.put("items", first); - second = resolvedMap; - } - if (m.group(3) != null && m.group(3).length() > 0) { - third = Arrays.asList("null", second != null ? second : first); - } - if (third != null) { - return third; - } else { - return second != null ? second : first; - } - } else { - return doc_; - } - } - - public T load( - final Object doc_, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - Object doc = doc_; - if (doc instanceof List) { - final List docList = (List) doc; - final List r = new ArrayList(); - for (final Object d : docList) { - if (d instanceof String) { - Object resolved = this.resolve((String) d, baseUri, loadingOptions); - if (resolved instanceof List) { - List resolvedList = (List) resolved; - for (Object i : resolvedList) { - if (!r.contains(i)) { - r.add(i); - } - } - } else { - if (!r.contains(resolved)) { - r.add(resolved); - } - } - } else { - r.add(d); - } - } - doc = docList; - } else if (doc instanceof String) { - doc = this.resolve((String) doc, baseUri, loadingOptions); - } - return this.innerLoader.load(doc, baseUri, loadingOptions); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/UnionLoader.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/UnionLoader.java deleted file mode 100644 index b9d4f805..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/UnionLoader.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -public class UnionLoader implements Loader { - private final ArrayList alternates; - - public UnionLoader(List alternates) { - this.alternates = new ArrayList(alternates); - } - - public UnionLoader(Loader[] alternates) { - this(Arrays.asList(alternates)); - } - - public void addLoaders(List loaders) { - this.alternates.addAll(loaders); - } - - public void addLoaders(Loader[] loaders) { - this.addLoaders(Arrays.asList(loaders)); - } - - public Object load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - final List errors = new ArrayList(); - for (final Loader loader : this.alternates) { - try { - return loader.load(doc, baseUri, loadingOptions, docRoot); - } catch (ValidationException e) { - errors.add(e); - } - } - throw new ValidationException("Failed to match union type", errors); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/UriLoader.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/UriLoader.java deleted file mode 100644 index 96300574..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/UriLoader.java +++ /dev/null @@ -1,59 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.util.ArrayList; -import java.util.List; - -public class UriLoader implements Loader { - private final Loader innerLoader; - private final boolean scopedId; - private final boolean vocabTerm; - private final Integer scopedRef; - private final Boolean noLinkCheck; - - public UriLoader( - final Loader innerLoader, - final boolean scopedId, - final boolean vocabTerm, - final Integer scopedRef, - final Boolean noLinkCheck) { - this.innerLoader = innerLoader; - this.scopedId = scopedId; - this.vocabTerm = vocabTerm; - this.scopedRef = scopedRef; - this.noLinkCheck = noLinkCheck; - } - - private Object expandUrl( - final Object object, final String baseUri, final LoadingOptions loadingOptions) { - if (object instanceof String) { - return loadingOptions.expandUrl( - (String) object, baseUri, this.scopedId, this.vocabTerm, this.scopedRef); - } else { - return object; - } - } - - public T load( - final Object doc_, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - LoadingOptions innerLoadingOptions = loadingOptions; - if (this.noLinkCheck != null) { - innerLoadingOptions = new LoadingOptionsBuilder().copiedFrom(loadingOptions).setNoLinkCheck(this.noLinkCheck).build(); - } - Object doc = doc_; - if (doc instanceof List) { - List docList = (List) doc; - List docWithExpansion = new ArrayList(); - for (final Object el : docList) { - docWithExpansion.add(this.expandUrl(el, baseUri, innerLoadingOptions)); - } - doc = docWithExpansion; - } - if (doc instanceof String) { - doc = this.expandUrl(doc, baseUri, innerLoadingOptions); - } - return this.innerLoader.load(doc, baseUri, innerLoadingOptions); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/Uris.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/Uris.java deleted file mode 100644 index 3294ec2c..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/Uris.java +++ /dev/null @@ -1,129 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.io.UnsupportedEncodingException; -import java.net.URI; -import java.net.URISyntaxException; -import java.nio.charset.StandardCharsets; - -public class Uris { - - // Emulate Python's urlsplit. - public static class UriSplit { - String scheme; - String netloc; - String path; - String query; - String fragment; - - public UriSplit(String scheme, String netloc, String path, String query, String fragment) { - this.scheme = scheme; - this.netloc = netloc; - this.path = path; - this.query = query; - this.fragment = fragment; - } - - public String toString() { - return String.format("UriSplit[%s,%s,%s,%s,%s]", this.scheme, this.netloc, this.path, this.query, - this.fragment); - } - - } - - public static String fileUri(final String path) { - return fileUri(path, false); - } - - public static String fileUri(final String path, final boolean splitFrag) { - if (path.equals("file://")) { - return path; - } - String frag; - String urlPath; - if (splitFrag) { - final String[] pathsp = path.split("#", 2); - // is quoting this? - urlPath = Uris.quote(pathsp[0]); - if (pathsp.length == 2) { - frag = "#" + Uris.quote(pathsp[1]); - } else { - frag = ""; - urlPath = Uris.quote(path); - } - } else { - urlPath = Uris.quote(path); - frag = ""; - } - if (urlPath.startsWith("//")) { - return "file:" + urlPath + frag; - } else { - return "file://" + urlPath + frag; - } - } - - public static UriSplit split(final String uriString) { - try { - final URI uri = new URI(uriString); - return new Uris.UriSplit(uri.getScheme(), uri.getAuthority(), uri.getPath(), uri.getQuery(), - uri.getFragment()); - } catch (URISyntaxException e) { - return new Uris.UriSplit(null, null, uriString, null, null); - } - } - - public static String unsplit(final String scheme, final String netloc, final String path, final String query, - final String fragment) { - try { - return new URI(scheme, netloc, path, query, fragment).toString(); - } catch (URISyntaxException e) { - if (scheme == null && path.startsWith("_:")) { - String uri = path; - if (fragment != null && fragment.length() > 0) { - uri += "#" + fragment; - } - return fragment; - } - throw new RuntimeException(e); - } - } - - public static URI toUri(final String url) { - try { - return new URI(url); - } catch (URISyntaxException e) { - throw new RuntimeException(e); - } - } - - public static String quote(final String uri) { - try { - return java.net.URLDecoder.decode(uri, StandardCharsets.UTF_8.name()); - } catch (UnsupportedEncodingException e) { - throw new RuntimeException(e); - } - } - - public static String unquote(final String uri) { - try { - return java.net.URLEncoder.encode(uri, StandardCharsets.UTF_8.name()); - } catch (UnsupportedEncodingException e) { - throw new RuntimeException(e); - } - } - - public static String shortname(final String input_id) { - try { - final URI uri = new URI(input_id); - final String fragment = uri.getFragment(); - if (fragment != null) { - String[] fragment_elements = fragment.split("/"); - return fragment_elements[fragment_elements.length - 1]; - } else { - String[] path_elements = uri.getPath().split("/"); - return path_elements[path_elements.length - 1]; - } - } catch (URISyntaxException e) { - return input_id; - } - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/ValidationException.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/ValidationException.java deleted file mode 100644 index 62fae309..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/ValidationException.java +++ /dev/null @@ -1,80 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -public class ValidationException extends RuntimeException { - private final List children; - private String bullet = ""; - private String currentMessage; - - public ValidationException(final String message) { - this(message, (List) null); - } - - public ValidationException(final String message, final ValidationException child) { - this(message, Arrays.asList(child)); - } - - public ValidationException(final String message, final List children_) { - super(message); - this.currentMessage = message; - final List children = new ArrayList(); - if (children_ != null) { - for (final ValidationException child : children_) { - children.addAll(child.simplify()); - } - } - this.children = children; - } - - public ValidationException withBullet(final String bullet) { - this.bullet = bullet; - return this; - } - - public List simplify() { - if (getMessage().length() > 0) { - return Arrays.asList(this); - } else { - return this.children; - } - } - - public String summary(final int level, final boolean withBullet) { - final int indentPerLevel = 2; - final String spaces = new String(new char[level * indentPerLevel]).replace("\0", " "); - final String bullet; - if (this.bullet.length() > 0 && withBullet) { - bullet = this.bullet; - } else { - bullet = ""; - } - return spaces + bullet + this.currentMessage; - } - - public String prettyStr(final Integer level_) { - Integer level = level_; - if (level == null) { - level = 0; - } - final List parts = new ArrayList(); - int nextLevel; - if (this.currentMessage != null && this.currentMessage.length() > 0) { - parts.add(this.summary(level, true)); - nextLevel = level + 1; - } else { - nextLevel = level; - } - for (final ValidationException child : this.children) { - parts.add(child.prettyStr(nextLevel)); - } - final String ret = String.join("\n", parts); - return ret; - } - - public String getMessage() { - return this.prettyStr(null); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/Validator.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/Validator.java deleted file mode 100644 index 4f302cc9..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/Validator.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.io.File; -import org.snakeyaml.engine.v2.api.Dump; -import org.snakeyaml.engine.v2.api.DumpSettings; -import org.snakeyaml.engine.v2.common.ScalarStyle; - -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.databind.ObjectMapper; - -public class Validator { - public static void main(final String[] args) throws Exception { - if (args.length != 1) { - throw new Exception("No argument supplied to validate."); - } - // TODO: allow URLs and such. - final File uri = new File(args[0]); - Object doc = RootLoader.loadDocument(uri); - ObjectMapper mapper = new ObjectMapper(); - mapper.setSerializationInclusion(Include.NON_NULL).writerWithDefaultPrettyPrinter().writeValue(System.out, doc); - System.out.println(); - - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/YamlUtils.java b/src/main/java/org/w3id/cwl/cwl1_1/utils/YamlUtils.java deleted file mode 100644 index e2e96a5b..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/YamlUtils.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.regex.Pattern; - -import org.snakeyaml.engine.v2.api.Load; -import org.snakeyaml.engine.v2.api.LoadSettings; -import org.snakeyaml.engine.v2.nodes.Tag; -import org.snakeyaml.engine.v2.resolver.ScalarResolver; -import org.snakeyaml.engine.v2.schema.CoreSchema; - -public class YamlUtils { - - public static Map mapFromString(final String text) { - LoadSettings settings = LoadSettings.builder().setSchema(new CoreSchema()).build(); - Load load = new Load(settings); - final Map result = (Map) load.loadFromString(text); - return result; - } - - public static List listFromString(final String text) { - LoadSettings settings = LoadSettings.builder().setSchema(new CoreSchema()).build(); - Load load = new Load(settings); - final List result = (List) load.loadFromString(text); - return result; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_1/utils/package.html b/src/main/java/org/w3id/cwl/cwl1_1/utils/package.html deleted file mode 100644 index dfb90954..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_1/utils/package.html +++ /dev/null @@ -1,3 +0,0 @@ - -This package contains utilities for working the SchemaSalad generated code for the org.w3id.cwl.cwl1_1 package. - diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Any.java b/src/main/java/org/w3id/cwl/cwl1_2/Any.java deleted file mode 100644 index 93c446f6..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/Any.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum Any { - ANY("Any"); - - private static String[] symbols = new String[] {"Any"}; - private String docVal; - - private Any(final String docVal) { - this.docVal = docVal; - } - - public static Any fromDocumentVal(final String docVal) { - for(final Any val : Any.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", Any.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ArraySchema.java b/src/main/java/org/w3id/cwl/cwl1_2/ArraySchema.java deleted file mode 100644 index c91e6927..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ArraySchema.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/salad#ArraySchema
This interface is implemented by {@link ArraySchemaImpl}
- */ -public interface ArraySchema extends Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - Object getItems(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - Array_name getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ArraySchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/ArraySchemaImpl.java deleted file mode 100644 index 90458275..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ArraySchemaImpl.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/salad#ArraySchema
- */ -public class ArraySchemaImpl extends SaveableImpl implements ArraySchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private Object items; - - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - public Object getItems() { - return this.items; - } - - private Array_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - public Array_name getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of ArraySchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public ArraySchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("ArraySchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - Object items; - try { - items = - LoaderInstances - .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 - .loadField(__doc.get("items"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - items = null; // won't be used but prevents compiler from complaining. - final String __message = "the `items` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Array_name type; - try { - type = - LoaderInstances - .typedsl_Array_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.items = (Object) items; - this.type = (Array_name) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Array_name.java b/src/main/java/org/w3id/cwl/cwl1_2/Array_name.java deleted file mode 100644 index 48982ad0..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/Array_name.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum Array_name { - ARRAY("array"); - - private static String[] symbols = new String[] {"array"}; - private String docVal; - - private Array_name(final String docVal) { - this.docVal = docVal; - } - - public static Array_name fromDocumentVal(final String docVal) { - for(final Array_name val : Array_name.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", Array_name.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CWLArraySchema.java b/src/main/java/org/w3id/cwl/cwl1_2/CWLArraySchema.java deleted file mode 100644 index 9da23786..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CWLArraySchema.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CWLArraySchema
This interface is implemented by {@link CWLArraySchemaImpl}
- */ -public interface CWLArraySchema extends ArraySchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - Object getItems(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - Array_name getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CWLArraySchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/CWLArraySchemaImpl.java deleted file mode 100644 index 09abb025..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CWLArraySchemaImpl.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CWLArraySchema
- */ -public class CWLArraySchemaImpl extends SaveableImpl implements CWLArraySchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private Object items; - - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - public Object getItems() { - return this.items; - } - - private Array_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - public Array_name getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of CWLArraySchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CWLArraySchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CWLArraySchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - Object items; - try { - items = - LoaderInstances - .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 - .loadField(__doc.get("items"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - items = null; // won't be used but prevents compiler from complaining. - final String __message = "the `items` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Array_name type; - try { - type = - LoaderInstances - .typedsl_Array_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.items = (Object) items; - this.type = (Array_name) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CWLRecordField.java b/src/main/java/org/w3id/cwl/cwl1_2/CWLRecordField.java deleted file mode 100644 index bd5eb897..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CWLRecordField.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CWLRecordField
This interface is implemented by {@link CWLRecordFieldImpl}
- */ -public interface CWLRecordField extends RecordField, Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - String getName(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - Object getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CWLRecordFieldImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/CWLRecordFieldImpl.java deleted file mode 100644 index 334ba626..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CWLRecordFieldImpl.java +++ /dev/null @@ -1,163 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CWLRecordField
- */ -public class CWLRecordFieldImpl extends SaveableImpl implements CWLRecordField { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private String name; - - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - public String getName() { - return this.name; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - public Object getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of CWLRecordFieldImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CWLRecordFieldImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CWLRecordFieldImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - String name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - if (name == null) { - if (__docRoot != null) { - name = __docRoot; - } else { - throw new ValidationException("Missing name"); - } - } - __baseUri = (String) name; - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object type; - try { - type = - LoaderInstances - .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 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.doc = (Object) doc; - this.name = (String) name; - this.type = (Object) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CWLRecordSchema.java b/src/main/java/org/w3id/cwl/cwl1_2/CWLRecordSchema.java deleted file mode 100644 index 6bc19361..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CWLRecordSchema.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CWLRecordSchema
This interface is implemented by {@link CWLRecordSchemaImpl}
- */ -public interface CWLRecordSchema extends RecordSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - java.util.Optional> getFields(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - Record_name getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CWLRecordSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/CWLRecordSchemaImpl.java deleted file mode 100644 index e423a1aa..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CWLRecordSchemaImpl.java +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CWLRecordSchema
- */ -public class CWLRecordSchemaImpl extends SaveableImpl implements CWLRecordSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional> fields; - - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - public java.util.Optional> getFields() { - return this.fields; - } - - private Record_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - public Record_name getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of CWLRecordSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CWLRecordSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CWLRecordSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional> fields; - - if (__doc.containsKey("fields")) { - try { - fields = - LoaderInstances - .idmap_fields_optional_array_of_CWLRecordField - .loadField(__doc.get("fields"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - fields = null; // won't be used but prevents compiler from complaining. - final String __message = "the `fields` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - fields = null; - } - Record_name type; - try { - type = - LoaderInstances - .typedsl_Record_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.fields = (java.util.Optional>) fields; - this.type = (Record_name) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CWLType.java b/src/main/java/org/w3id/cwl/cwl1_2/CWLType.java deleted file mode 100644 index b2943285..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CWLType.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum CWLType { - NULL("null"), - BOOLEAN("boolean"), - INT("int"), - LONG("long"), - FLOAT("float"), - DOUBLE("double"), - STRING("string"), - FILE("File"), - DIRECTORY("Directory"); - - private static String[] symbols = new String[] {"null", "boolean", "int", "long", "float", "double", "string", "File", "Directory"}; - private String docVal; - - private CWLType(final String docVal) { - this.docVal = docVal; - } - - public static CWLType fromDocumentVal(final String docVal) { - for(final CWLType val : CWLType.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", CWLType.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CWLVersion.java b/src/main/java/org/w3id/cwl/cwl1_2/CWLVersion.java deleted file mode 100644 index b1db26d1..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CWLVersion.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum CWLVersion { - DRAFT_2("draft-2"), - DRAFT_3_DEV1("draft-3.dev1"), - DRAFT_3_DEV2("draft-3.dev2"), - DRAFT_3_DEV3("draft-3.dev3"), - DRAFT_3_DEV4("draft-3.dev4"), - DRAFT_3_DEV5("draft-3.dev5"), - DRAFT_3("draft-3"), - DRAFT_4_DEV1("draft-4.dev1"), - DRAFT_4_DEV2("draft-4.dev2"), - DRAFT_4_DEV3("draft-4.dev3"), - V1_0_DEV4("v1.0.dev4"), - V1_0("v1.0"), - V1_1_0_DEV1("v1.1.0-dev1"), - V1_1("v1.1"), - V1_2_0_DEV1("v1.2.0-dev1"), - V1_2_0_DEV2("v1.2.0-dev2"), - V1_2_0_DEV3("v1.2.0-dev3"), - V1_2_0_DEV4("v1.2.0-dev4"), - V1_2_0_DEV5("v1.2.0-dev5"), - V1_2("v1.2"); - - private static String[] symbols = new String[] {"draft-2", "draft-3.dev1", "draft-3.dev2", "draft-3.dev3", "draft-3.dev4", "draft-3.dev5", "draft-3", "draft-4.dev1", "draft-4.dev2", "draft-4.dev3", "v1.0.dev4", "v1.0", "v1.1.0-dev1", "v1.1", "v1.2.0-dev1", "v1.2.0-dev2", "v1.2.0-dev3", "v1.2.0-dev4", "v1.2.0-dev5", "v1.2"}; - private String docVal; - - private CWLVersion(final String docVal) { - this.docVal = docVal; - } - - public static CWLVersion fromDocumentVal(final String docVal) { - for(final CWLVersion val : CWLVersion.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", CWLVersion.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputArraySchema.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandInputArraySchema.java deleted file mode 100644 index 9dbdeb84..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputArraySchema.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputArraySchema
This interface is implemented by {@link CommandInputArraySchemaImpl}
- */ -public interface CommandInputArraySchema extends InputArraySchema, CommandInputSchema, CommandLineBindable, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - Object getItems(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - Array_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - java.util.Optional getInputBinding(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputArraySchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandInputArraySchemaImpl.java deleted file mode 100644 index 2e1bd0fb..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputArraySchemaImpl.java +++ /dev/null @@ -1,250 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputArraySchema
- */ -public class CommandInputArraySchemaImpl extends SaveableImpl implements CommandInputArraySchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private Object items; - - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - public Object getItems() { - return this.items; - } - - private Array_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - public Array_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private java.util.Optional inputBinding; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - public java.util.Optional getInputBinding() { - return this.inputBinding; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of CommandInputArraySchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandInputArraySchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandInputArraySchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - Object items; - try { - items = - LoaderInstances - .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_None - .loadField(__doc.get("items"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - items = null; // won't be used but prevents compiler from complaining. - final String __message = "the `items` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Array_name type; - try { - type = - LoaderInstances - .typedsl_Array_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - java.util.Optional inputBinding; - - if (__doc.containsKey("inputBinding")) { - try { - inputBinding = - LoaderInstances - .optional_CommandLineBinding - .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputBinding = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputBinding` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - inputBinding = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.items = (Object) items; - this.type = (Array_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.name = (java.util.Optional) name; - this.inputBinding = (java.util.Optional) inputBinding; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputEnumSchema.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandInputEnumSchema.java deleted file mode 100644 index b0e5f58c..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputEnumSchema.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputEnumSchema
This interface is implemented by {@link CommandInputEnumSchemaImpl}
- */ -public interface CommandInputEnumSchema extends InputEnumSchema, CommandInputSchema, CommandLineBindable, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - java.util.List getSymbols(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - Enum_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - java.util.Optional getInputBinding(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputEnumSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandInputEnumSchemaImpl.java deleted file mode 100644 index bc010454..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputEnumSchemaImpl.java +++ /dev/null @@ -1,250 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputEnumSchema
- */ -public class CommandInputEnumSchemaImpl extends SaveableImpl implements CommandInputEnumSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private java.util.List symbols; - - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - public java.util.List getSymbols() { - return this.symbols; - } - - private Enum_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - public Enum_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private java.util.Optional inputBinding; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - public java.util.Optional getInputBinding() { - return this.inputBinding; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of CommandInputEnumSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandInputEnumSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandInputEnumSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - java.util.List symbols; - try { - symbols = - LoaderInstances - .uri_array_of_StringInstance_True_False_None_None - .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - symbols = null; // won't be used but prevents compiler from complaining. - final String __message = "the `symbols` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Enum_name type; - try { - type = - LoaderInstances - .typedsl_Enum_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - java.util.Optional inputBinding; - - if (__doc.containsKey("inputBinding")) { - try { - inputBinding = - LoaderInstances - .optional_CommandLineBinding - .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputBinding = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputBinding` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - inputBinding = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.name = (java.util.Optional) name; - this.symbols = (java.util.List) symbols; - this.type = (Enum_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.inputBinding = (java.util.Optional) inputBinding; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputParameter.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandInputParameter.java deleted file mode 100644 index 8c5117a7..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputParameter.java +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputParameter
This interface is implemented by {@link CommandInputParameterImpl}
- An input parameter for a CommandLineTool.
- */ -public interface CommandInputParameter extends InputParameter, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - Object getFormat(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * If true, the file (or each file in the array) must be a UTF-8 - * text file 64 KiB or smaller, and the implementation must read - * the entire contents of the file (or file array) and place it - * in the `contents` field of the File object for use by - * expressions. If the size of the file is greater than 64 KiB, - * the implementation must raise a fatal error. - * *
- */ - - java.util.Optional getLoadContents(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - java.util.Optional getLoadListing(); - /** - * Getter for property https://w3id.org/cwl/salad#default
- *
- * The default value to use for this parameter if the parameter is missing - * from the input object, or if the value of the parameter in the input - * object is `null`. Default values are applied before evaluating expressions - * (e.g. dependent `valueFrom` fields). - * *
- */ - - java.util.Optional getDefault(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * *
- */ - - Object getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandInputParameter/inputBinding
- *
- * Describes how to turn the input parameters of a process into - * command line arguments. - * *
- */ - - java.util.Optional getInputBinding(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputParameterImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandInputParameterImpl.java deleted file mode 100644 index 8ab09f5a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputParameterImpl.java +++ /dev/null @@ -1,485 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputParameter
- An input parameter for a CommandLineTool.
- */ -public class CommandInputParameterImpl extends SaveableImpl implements CommandInputParameter { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional streamable; - - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - public java.util.Optional getStreamable() { - return this.streamable; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - public Object getFormat() { - return this.format; - } - - private java.util.Optional loadContents; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * If true, the file (or each file in the array) must be a UTF-8 - * text file 64 KiB or smaller, and the implementation must read - * the entire contents of the file (or file array) and place it - * in the `contents` field of the File object for use by - * expressions. If the size of the file is greater than 64 KiB, - * the implementation must raise a fatal error. - * *
- */ - - public java.util.Optional getLoadContents() { - return this.loadContents; - } - - private java.util.Optional loadListing; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - public java.util.Optional getLoadListing() { - return this.loadListing; - } - - private java.util.Optional default_; - - /** - * Getter for property https://w3id.org/cwl/salad#default
- *
- * The default value to use for this parameter if the parameter is missing - * from the input object, or if the value of the parameter in the input - * object is `null`. Default values are applied before evaluating expressions - * (e.g. dependent `valueFrom` fields). - * *
- */ - - public java.util.Optional getDefault() { - return this.default_; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * *
- */ - - public Object getType() { - return this.type; - } - - private java.util.Optional inputBinding; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandInputParameter/inputBinding
- *
- * Describes how to turn the input parameters of a process into - * command line arguments. - * *
- */ - - public java.util.Optional getInputBinding() { - return this.inputBinding; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of CommandInputParameterImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandInputParameterImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandInputParameterImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional streamable; - - if (__doc.containsKey("streamable")) { - try { - streamable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - streamable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `streamable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - streamable = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - java.util.Optional loadContents; - - if (__doc.containsKey("loadContents")) { - try { - loadContents = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadContents = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadContents` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadContents = null; - } - java.util.Optional loadListing; - - if (__doc.containsKey("loadListing")) { - try { - loadListing = - LoaderInstances - .optional_LoadListingEnum - .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadListing = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadListing` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadListing = null; - } - java.util.Optional default_; - - if (__doc.containsKey("default")) { - try { - default_ = - LoaderInstances - .optional_CWLObjectType - .loadField(__doc.get("default"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - default_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `default` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - default_ = null; - } - Object type; - try { - type = - LoaderInstances - .typedsl_union_of_CWLType_or_stdin_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional inputBinding; - - if (__doc.containsKey("inputBinding")) { - try { - inputBinding = - LoaderInstances - .optional_CommandLineBinding - .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputBinding = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputBinding` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - inputBinding = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.label = (java.util.Optional) label; - this.secondaryFiles = (Object) secondaryFiles; - this.streamable = (java.util.Optional) streamable; - this.doc = (Object) doc; - this.id = (java.util.Optional) id; - this.format = (Object) format; - this.loadContents = (java.util.Optional) loadContents; - this.loadListing = (java.util.Optional) loadListing; - this.default_ = (java.util.Optional) default_; - this.type = (Object) type; - this.inputBinding = (java.util.Optional) inputBinding; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputRecordField.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandInputRecordField.java deleted file mode 100644 index f45500ee..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputRecordField.java +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputRecordField
This interface is implemented by {@link CommandInputRecordFieldImpl}
- */ -public interface CommandInputRecordField extends InputRecordField, CommandLineBindable, Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - String getName(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - Object getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - Object getFormat(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * If true, the file (or each file in the array) must be a UTF-8 - * text file 64 KiB or smaller, and the implementation must read - * the entire contents of the file (or file array) and place it - * in the `contents` field of the File object for use by - * expressions. If the size of the file is greater than 64 KiB, - * the implementation must raise a fatal error. - * *
- */ - - java.util.Optional getLoadContents(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - java.util.Optional getLoadListing(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - java.util.Optional getInputBinding(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputRecordFieldImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandInputRecordFieldImpl.java deleted file mode 100644 index be375529..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputRecordFieldImpl.java +++ /dev/null @@ -1,444 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputRecordField
- */ -public class CommandInputRecordFieldImpl extends SaveableImpl implements CommandInputRecordField { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private String name; - - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - public String getName() { - return this.name; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - public Object getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional streamable; - - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - public java.util.Optional getStreamable() { - return this.streamable; - } - - private Object format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - public Object getFormat() { - return this.format; - } - - private java.util.Optional loadContents; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * If true, the file (or each file in the array) must be a UTF-8 - * text file 64 KiB or smaller, and the implementation must read - * the entire contents of the file (or file array) and place it - * in the `contents` field of the File object for use by - * expressions. If the size of the file is greater than 64 KiB, - * the implementation must raise a fatal error. - * *
- */ - - public java.util.Optional getLoadContents() { - return this.loadContents; - } - - private java.util.Optional loadListing; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - public java.util.Optional getLoadListing() { - return this.loadListing; - } - - private java.util.Optional inputBinding; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - public java.util.Optional getInputBinding() { - return this.inputBinding; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of CommandInputRecordFieldImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandInputRecordFieldImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandInputRecordFieldImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - String name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - if (name == null) { - if (__docRoot != null) { - name = __docRoot; - } else { - throw new ValidationException("Missing name"); - } - } - __baseUri = (String) name; - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object type; - try { - type = - LoaderInstances - .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 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional streamable; - - if (__doc.containsKey("streamable")) { - try { - streamable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - streamable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `streamable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - streamable = null; - } - Object format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - java.util.Optional loadContents; - - if (__doc.containsKey("loadContents")) { - try { - loadContents = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadContents = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadContents` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadContents = null; - } - java.util.Optional loadListing; - - if (__doc.containsKey("loadListing")) { - try { - loadListing = - LoaderInstances - .optional_LoadListingEnum - .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadListing = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadListing` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadListing = null; - } - java.util.Optional inputBinding; - - if (__doc.containsKey("inputBinding")) { - try { - inputBinding = - LoaderInstances - .optional_CommandLineBinding - .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputBinding = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputBinding` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - inputBinding = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.doc = (Object) doc; - this.name = (String) name; - this.type = (Object) type; - this.label = (java.util.Optional) label; - this.secondaryFiles = (Object) secondaryFiles; - this.streamable = (java.util.Optional) streamable; - this.format = (Object) format; - this.loadContents = (java.util.Optional) loadContents; - this.loadListing = (java.util.Optional) loadListing; - this.inputBinding = (java.util.Optional) inputBinding; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputRecordSchema.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandInputRecordSchema.java deleted file mode 100644 index 96efd636..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputRecordSchema.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputRecordSchema
This interface is implemented by {@link CommandInputRecordSchemaImpl}
- */ -public interface CommandInputRecordSchema extends InputRecordSchema, CommandInputSchema, CommandLineBindable, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - java.util.Optional> getFields(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - Record_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - java.util.Optional getInputBinding(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputRecordSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandInputRecordSchemaImpl.java deleted file mode 100644 index 6bcac93d..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputRecordSchemaImpl.java +++ /dev/null @@ -1,256 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandInputRecordSchema
- */ -public class CommandInputRecordSchemaImpl extends SaveableImpl implements CommandInputRecordSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private java.util.Optional> fields; - - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - public java.util.Optional> getFields() { - return this.fields; - } - - private Record_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - public Record_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private java.util.Optional inputBinding; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - public java.util.Optional getInputBinding() { - return this.inputBinding; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of CommandInputRecordSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandInputRecordSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandInputRecordSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - java.util.Optional> fields; - - if (__doc.containsKey("fields")) { - try { - fields = - LoaderInstances - .idmap_fields_optional_array_of_CommandInputRecordField - .loadField(__doc.get("fields"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - fields = null; // won't be used but prevents compiler from complaining. - final String __message = "the `fields` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - fields = null; - } - Record_name type; - try { - type = - LoaderInstances - .typedsl_Record_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - java.util.Optional inputBinding; - - if (__doc.containsKey("inputBinding")) { - try { - inputBinding = - LoaderInstances - .optional_CommandLineBinding - .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputBinding = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputBinding` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - inputBinding = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.fields = (java.util.Optional>) fields; - this.type = (Record_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.name = (java.util.Optional) name; - this.inputBinding = (java.util.Optional) inputBinding; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputSchema.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandInputSchema.java deleted file mode 100644 index 4dd291df..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandInputSchema.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandInputSchema
- */ -public interface CommandInputSchema extends Saveable { -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandLineBindable.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandLineBindable.java deleted file mode 100644 index 7b64da15..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandLineBindable.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandLineBindable
This interface is implemented by {@link CommandLineBindableImpl}
- */ -public interface CommandLineBindable extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - java.util.Optional getInputBinding(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandLineBindableImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandLineBindableImpl.java deleted file mode 100644 index f229703c..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandLineBindableImpl.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandLineBindable
- */ -public class CommandLineBindableImpl extends SaveableImpl implements CommandLineBindable { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional inputBinding; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBindable/inputBinding
- *
- * Describes how to turn this object into command line arguments. *
- */ - - public java.util.Optional getInputBinding() { - return this.inputBinding; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of CommandLineBindableImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandLineBindableImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandLineBindableImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional inputBinding; - - if (__doc.containsKey("inputBinding")) { - try { - inputBinding = - LoaderInstances - .optional_CommandLineBinding - .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputBinding = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputBinding` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - inputBinding = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.inputBinding = (java.util.Optional) inputBinding; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandLineBinding.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandLineBinding.java deleted file mode 100644 index c7dbf67b..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandLineBinding.java +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandLineBinding
This interface is implemented by {@link CommandLineBindingImpl}
- - When listed under `inputBinding` in the input schema, the term - "value" refers to the corresponding value in the input object. For - binding objects listed in `CommandLineTool.arguments`, the term "value" - refers to the effective value after evaluating `valueFrom`. - - The binding behavior when building the command line depends on the data - type of the value. If there is a mismatch between the type described by - the input schema and the effective value, such as resulting from an - expression evaluation, an implementation must use the data type of the - effective value. - - - **string**: Add `prefix` and the string to the command line. - - - **number**: Add `prefix` and decimal representation to command line. - - - **boolean**: If true, add `prefix` to the command line. If false, add - nothing. - - - **File**: Add `prefix` and the value of - [`File.path`](#File) to the command line. - - - **Directory**: Add `prefix` and the value of - [`Directory.path`](#Directory) to the command line. - - - **array**: If `itemSeparator` is specified, add `prefix` and the join - the array into a single string with `itemSeparator` separating the - items. Otherwise, first add `prefix`, then recursively process - individual elements. - If the array is empty, it does not add anything to command line. - - - **object**: Add `prefix` only, and recursively add object fields for - which `inputBinding` is specified. - - - **null**: Add nothing. -
- */ -public interface CommandLineBinding extends InputBinding, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#InputBinding/loadContents
- *
- * Use of `loadContents` in `InputBinding` is deprecated. - * Preserved for v1.0 backwards compatibility. Will be removed in - * CWL v2.0. Use `InputParameter.loadContents` instead. - * *
- */ - - java.util.Optional getLoadContents(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/position
- *
- * The sorting key. Default position is 0. If a [CWL Parameter Reference](#Parameter_references) - * or [CWL Expression](#Expressions_(Optional)) is used and if the - * inputBinding is associated with an input parameter, then the value of - * `self` will be the value of the input parameter. Input parameter - * defaults (as specified by the `InputParameter.default` field) must be - * applied before evaluating the expression. Expressions must return a - * single value of type int or a null. - * *
- */ - - Object getPosition(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/prefix
- *
- * Command line prefix to add before the value. *
- */ - - java.util.Optional getPrefix(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/separate
- *
- * If true (default), then the prefix and value must be added as separate - * command line arguments; if false, prefix and value must be concatenated - * into a single command line argument. - * *
- */ - - java.util.Optional getSeparate(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/itemSeparator
- *
- * Join the array elements into a single string with the elements - * separated by `itemSeparator`. - * *
- */ - - java.util.Optional getItemSeparator(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/valueFrom
- *
- * If `valueFrom` is a constant string value, use this as the value and - * apply the binding rules above. - * - * If `valueFrom` is an expression, evaluate the expression to yield the - * actual value to use to build the command line and apply the binding - * rules above. If the inputBinding is associated with an input - * parameter, the value of `self` in the expression will be the value of - * the input parameter. Input parameter defaults (as specified by the - * `InputParameter.default` field) must be applied before evaluating the - * expression. - * - * If the value of the associated input parameter is `null`, `valueFrom` is - * not evaluated and nothing is added to the command line. - * - * When a binding is part of the `CommandLineTool.arguments` field, - * the `valueFrom` field is required. - * *
- */ - - Object getValueFrom(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/shellQuote
- *
- * If `ShellCommandRequirement` is in the requirements for the current command, - * this controls whether the value is quoted on the command line (default is true). - * Use `shellQuote: false` to inject metacharacters for operations such as pipes. - * - * If `shellQuote` is true or not provided, the implementation must not - * permit interpretation of any shell metacharacters or directives. - * *
- */ - - java.util.Optional getShellQuote(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandLineBindingImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandLineBindingImpl.java deleted file mode 100644 index 1619471b..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandLineBindingImpl.java +++ /dev/null @@ -1,351 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandLineBinding
- - When listed under `inputBinding` in the input schema, the term - "value" refers to the corresponding value in the input object. For - binding objects listed in `CommandLineTool.arguments`, the term "value" - refers to the effective value after evaluating `valueFrom`. - - The binding behavior when building the command line depends on the data - type of the value. If there is a mismatch between the type described by - the input schema and the effective value, such as resulting from an - expression evaluation, an implementation must use the data type of the - effective value. - - - **string**: Add `prefix` and the string to the command line. - - - **number**: Add `prefix` and decimal representation to command line. - - - **boolean**: If true, add `prefix` to the command line. If false, add - nothing. - - - **File**: Add `prefix` and the value of - [`File.path`](#File) to the command line. - - - **Directory**: Add `prefix` and the value of - [`Directory.path`](#Directory) to the command line. - - - **array**: If `itemSeparator` is specified, add `prefix` and the join - the array into a single string with `itemSeparator` separating the - items. Otherwise, first add `prefix`, then recursively process - individual elements. - If the array is empty, it does not add anything to command line. - - - **object**: Add `prefix` only, and recursively add object fields for - which `inputBinding` is specified. - - - **null**: Add nothing. -
- */ -public class CommandLineBindingImpl extends SaveableImpl implements CommandLineBinding { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional loadContents; - - /** - * Getter for property https://w3id.org/cwl/cwl#InputBinding/loadContents
- *
- * Use of `loadContents` in `InputBinding` is deprecated. - * Preserved for v1.0 backwards compatibility. Will be removed in - * CWL v2.0. Use `InputParameter.loadContents` instead. - * *
- */ - - public java.util.Optional getLoadContents() { - return this.loadContents; - } - - private Object position; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/position
- *
- * The sorting key. Default position is 0. If a [CWL Parameter Reference](#Parameter_references) - * or [CWL Expression](#Expressions_(Optional)) is used and if the - * inputBinding is associated with an input parameter, then the value of - * `self` will be the value of the input parameter. Input parameter - * defaults (as specified by the `InputParameter.default` field) must be - * applied before evaluating the expression. Expressions must return a - * single value of type int or a null. - * *
- */ - - public Object getPosition() { - return this.position; - } - - private java.util.Optional prefix; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/prefix
- *
- * Command line prefix to add before the value. *
- */ - - public java.util.Optional getPrefix() { - return this.prefix; - } - - private java.util.Optional separate; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/separate
- *
- * If true (default), then the prefix and value must be added as separate - * command line arguments; if false, prefix and value must be concatenated - * into a single command line argument. - * *
- */ - - public java.util.Optional getSeparate() { - return this.separate; - } - - private java.util.Optional itemSeparator; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/itemSeparator
- *
- * Join the array elements into a single string with the elements - * separated by `itemSeparator`. - * *
- */ - - public java.util.Optional getItemSeparator() { - return this.itemSeparator; - } - - private Object valueFrom; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/valueFrom
- *
- * If `valueFrom` is a constant string value, use this as the value and - * apply the binding rules above. - * - * If `valueFrom` is an expression, evaluate the expression to yield the - * actual value to use to build the command line and apply the binding - * rules above. If the inputBinding is associated with an input - * parameter, the value of `self` in the expression will be the value of - * the input parameter. Input parameter defaults (as specified by the - * `InputParameter.default` field) must be applied before evaluating the - * expression. - * - * If the value of the associated input parameter is `null`, `valueFrom` is - * not evaluated and nothing is added to the command line. - * - * When a binding is part of the `CommandLineTool.arguments` field, - * the `valueFrom` field is required. - * *
- */ - - public Object getValueFrom() { - return this.valueFrom; - } - - private java.util.Optional shellQuote; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineBinding/shellQuote
- *
- * If `ShellCommandRequirement` is in the requirements for the current command, - * this controls whether the value is quoted on the command line (default is true). - * Use `shellQuote: false` to inject metacharacters for operations such as pipes. - * - * If `shellQuote` is true or not provided, the implementation must not - * permit interpretation of any shell metacharacters or directives. - * *
- */ - - public java.util.Optional getShellQuote() { - return this.shellQuote; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of CommandLineBindingImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandLineBindingImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandLineBindingImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional loadContents; - - if (__doc.containsKey("loadContents")) { - try { - loadContents = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadContents = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadContents` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadContents = null; - } - Object position; - - if (__doc.containsKey("position")) { - try { - position = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_ExpressionLoader - .loadField(__doc.get("position"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - position = null; // won't be used but prevents compiler from complaining. - final String __message = "the `position` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - position = null; - } - java.util.Optional prefix; - - if (__doc.containsKey("prefix")) { - try { - prefix = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("prefix"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - prefix = null; // won't be used but prevents compiler from complaining. - final String __message = "the `prefix` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - prefix = null; - } - java.util.Optional separate; - - if (__doc.containsKey("separate")) { - try { - separate = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("separate"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - separate = null; // won't be used but prevents compiler from complaining. - final String __message = "the `separate` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - separate = null; - } - java.util.Optional itemSeparator; - - if (__doc.containsKey("itemSeparator")) { - try { - itemSeparator = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("itemSeparator"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - itemSeparator = null; // won't be used but prevents compiler from complaining. - final String __message = "the `itemSeparator` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - itemSeparator = null; - } - Object valueFrom; - - if (__doc.containsKey("valueFrom")) { - try { - valueFrom = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_ExpressionLoader - .loadField(__doc.get("valueFrom"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - valueFrom = null; // won't be used but prevents compiler from complaining. - final String __message = "the `valueFrom` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - valueFrom = null; - } - java.util.Optional shellQuote; - - if (__doc.containsKey("shellQuote")) { - try { - shellQuote = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("shellQuote"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - shellQuote = null; // won't be used but prevents compiler from complaining. - final String __message = "the `shellQuote` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - shellQuote = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.loadContents = (java.util.Optional) loadContents; - this.position = (Object) position; - this.prefix = (java.util.Optional) prefix; - this.separate = (java.util.Optional) separate; - this.itemSeparator = (java.util.Optional) itemSeparator; - this.valueFrom = (Object) valueFrom; - this.shellQuote = (java.util.Optional) shellQuote; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandLineTool.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandLineTool.java deleted file mode 100644 index d2daf66c..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandLineTool.java +++ /dev/null @@ -1,245 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandLineTool
This interface is implemented by {@link CommandLineToolImpl}
- This defines the schema of the CWL Command Line Tool Description document. -
- */ -public interface CommandLineTool extends Process, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Process/id
- *
- * The unique identifier for this object. - * - * Only useful for `$graph` at `Process` level. Should not be exposed - * to users in graphical or terminal user interfaces. - * *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/class
- - */ - - CommandLineTool_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#inputs
- *
- * Defines the input parameters of the process. The process is ready to - * run when all required input parameters are associated with concrete - * values. Input parameters include a schema for each parameter which is - * used to validate the input object. It may also be used to build a user - * interface for constructing the input object. - * - * When accepting an input object, all input parameters must have a value. - * If an input parameter is missing from the input object, it must be - * assigned a value of `null` (or the value of `default` for that - * parameter, if provided) for the purposes of validation and evaluation - * of expressions. - * *
- */ - - java.util.List getInputs(); - /** - * Getter for property https://w3id.org/cwl/cwl#outputs
- *
- * Defines the parameters representing the output of the process. May be - * used to generate and/or validate the output object. - * *
- */ - - java.util.List getOutputs(); - /** - * Getter for property https://w3id.org/cwl/cwl#requirements
- *
- * Declares requirements that apply to either the runtime environment or the - * workflow engine that must be met in order to execute this process. If - * an implementation cannot satisfy all requirements, or a requirement is - * listed which is not recognized by the implementation, it is a fatal - * error and the implementation must not attempt to run the process, - * unless overridden at user option. - * *
- */ - - java.util.Optional> getRequirements(); - /** - * Getter for property https://w3id.org/cwl/cwl#hints
- *
- * Declares hints applying to either the runtime environment or the - * workflow engine that may be helpful in executing this process. It is - * not an error if an implementation cannot satisfy all hints, however - * the implementation may report a warning. - * *
- */ - - java.util.Optional> getHints(); - /** - * Getter for property https://w3id.org/cwl/cwl#cwlVersion
- *
- * CWL document version. Always required at the document root. Not - * required for a Process embedded inside another Process. - * *
- */ - - java.util.Optional getCwlVersion(); - /** - * Getter for property https://w3id.org/cwl/cwl#Process/intent
- *
- * An identifier for the type of computational operation, of this Process. - * Especially useful for [`Operation`](Workflow.html#Operation), but can also be used for - * [`CommandLineTool`](CommandLineTool.html#CommandLineTool), - * [`Workflow`](Workflow.html#Workflow), or [ExpressionTool](Workflow.html#ExpressionTool). - * - * If provided, then this must be an IRI of a concept node that - * represents the type of operation, preferably defined within an ontology. - * - * For example, in the domain of bioinformatics, one can use an IRI from - * the EDAM Ontology's [Operation concept nodes](http://edamontology.org/operation_0004), - * like [Alignment](http://edamontology.org/operation_2928), - * or [Clustering](http://edamontology.org/operation_3432); or a more - * specific Operation concept like - * [Split read mapping](http://edamontology.org/operation_3199). - * *
- */ - - java.util.Optional> getIntent(); - /** - * Getter for property https://w3id.org/cwl/cwl#baseCommand
- *
- * Specifies the program to execute. If an array, the first element of - * the array is the command to execute, and subsequent elements are - * mandatory command line arguments. The elements in `baseCommand` must - * appear before any command line bindings from `inputBinding` or - * `arguments`. - * - * If `baseCommand` is not provided or is an empty array, the first - * element of the command line produced after processing `inputBinding` or - * `arguments` must be used as the program to execute. - * - * If the program includes a path separator character it must - * be an absolute path, otherwise it is an error. If the program does not - * include a path separator, search the `$PATH` variable in the runtime - * environment of the workflow runner find the absolute path of the - * executable. - * *
- */ - - Object getBaseCommand(); - /** - * Getter for property https://w3id.org/cwl/cwl#arguments
- *
- * Command line bindings which are not directly associated with input - * parameters. If the value is a string, it is used as a string literal - * argument. If it is an Expression, the result of the evaluation is used - * as an argument. - * *
- */ - - java.util.Optional> getArguments(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stdin
- *
- * A path to a file whose contents must be piped into the command's - * standard input stream. - * *
- */ - - Object getStdin(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stderr
- *
- * Capture the command's standard error stream to a file written to - * the designated output directory. - * - * If `stderr` is a string, it specifies the file name to use. - * - * If `stderr` is an expression, the expression is evaluated and must - * return a string with the file name to use to capture stderr. If the - * return value is not a string, or the resulting path contains illegal - * characters (such as the path separator `/`) it is an error. - * *
- */ - - Object getStderr(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stdout
- *
- * Capture the command's standard output stream to a file written to - * the designated output directory. - * - * If the `CommandLineTool` contains logically chained commands - * (e.g. `echo a && echo b`) `stdout` must include the output of - * every command. - * - * If `stdout` is a string, it specifies the file name to use. - * - * If `stdout` is an expression, the expression is evaluated and must - * return a string with the file name to use to capture stdout. If the - * return value is not a string, or the resulting path contains illegal - * characters (such as the path separator `/`) it is an error. - * *
- */ - - Object getStdout(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/successCodes
- *
- * Exit codes that indicate the process completed successfully. - * - * If not specified, only exit code 0 is considered success. - * *
- */ - - java.util.Optional> getSuccessCodes(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/temporaryFailCodes
- *
- * Exit codes that indicate the process failed due to a possibly - * temporary condition, where executing the process with the same - * runtime environment and inputs may produce different results. - * - * If not specified, no exit codes are considered temporary failure. - * *
- */ - - java.util.Optional> getTemporaryFailCodes(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/permanentFailCodes
- *
- * Exit codes that indicate the process failed due to a permanent logic error, where executing the process with the same runtime environment and same inputs is expected to always fail. - * If not specified, all exit codes except 0 are considered permanent failure. *
- */ - - java.util.Optional> getPermanentFailCodes(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandLineToolImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandLineToolImpl.java deleted file mode 100644 index 4b4870fa..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandLineToolImpl.java +++ /dev/null @@ -1,700 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandLineTool
- This defines the schema of the CWL Command Line Tool Description document. -
- */ -public class CommandLineToolImpl extends SaveableImpl implements CommandLineTool { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Process/id
- *
- * The unique identifier for this object. - * - * Only useful for `$graph` at `Process` level. Should not be exposed - * to users in graphical or terminal user interfaces. - * *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private CommandLineTool_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/class
- - */ - - public CommandLineTool_class getClass_() { - return this.class_; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private java.util.List inputs; - - /** - * Getter for property https://w3id.org/cwl/cwl#inputs
- *
- * Defines the input parameters of the process. The process is ready to - * run when all required input parameters are associated with concrete - * values. Input parameters include a schema for each parameter which is - * used to validate the input object. It may also be used to build a user - * interface for constructing the input object. - * - * When accepting an input object, all input parameters must have a value. - * If an input parameter is missing from the input object, it must be - * assigned a value of `null` (or the value of `default` for that - * parameter, if provided) for the purposes of validation and evaluation - * of expressions. - * *
- */ - - public java.util.List getInputs() { - return this.inputs; - } - - private java.util.List outputs; - - /** - * Getter for property https://w3id.org/cwl/cwl#outputs
- *
- * Defines the parameters representing the output of the process. May be - * used to generate and/or validate the output object. - * *
- */ - - public java.util.List getOutputs() { - return this.outputs; - } - - private java.util.Optional> requirements; - - /** - * Getter for property https://w3id.org/cwl/cwl#requirements
- *
- * Declares requirements that apply to either the runtime environment or the - * workflow engine that must be met in order to execute this process. If - * an implementation cannot satisfy all requirements, or a requirement is - * listed which is not recognized by the implementation, it is a fatal - * error and the implementation must not attempt to run the process, - * unless overridden at user option. - * *
- */ - - public java.util.Optional> getRequirements() { - return this.requirements; - } - - private java.util.Optional> hints; - - /** - * Getter for property https://w3id.org/cwl/cwl#hints
- *
- * Declares hints applying to either the runtime environment or the - * workflow engine that may be helpful in executing this process. It is - * not an error if an implementation cannot satisfy all hints, however - * the implementation may report a warning. - * *
- */ - - public java.util.Optional> getHints() { - return this.hints; - } - - private java.util.Optional cwlVersion; - - /** - * Getter for property https://w3id.org/cwl/cwl#cwlVersion
- *
- * CWL document version. Always required at the document root. Not - * required for a Process embedded inside another Process. - * *
- */ - - public java.util.Optional getCwlVersion() { - return this.cwlVersion; - } - - private java.util.Optional> intent; - - /** - * Getter for property https://w3id.org/cwl/cwl#Process/intent
- *
- * An identifier for the type of computational operation, of this Process. - * Especially useful for [`Operation`](Workflow.html#Operation), but can also be used for - * [`CommandLineTool`](CommandLineTool.html#CommandLineTool), - * [`Workflow`](Workflow.html#Workflow), or [ExpressionTool](Workflow.html#ExpressionTool). - * - * If provided, then this must be an IRI of a concept node that - * represents the type of operation, preferably defined within an ontology. - * - * For example, in the domain of bioinformatics, one can use an IRI from - * the EDAM Ontology's [Operation concept nodes](http://edamontology.org/operation_0004), - * like [Alignment](http://edamontology.org/operation_2928), - * or [Clustering](http://edamontology.org/operation_3432); or a more - * specific Operation concept like - * [Split read mapping](http://edamontology.org/operation_3199). - * *
- */ - - public java.util.Optional> getIntent() { - return this.intent; - } - - private Object baseCommand; - - /** - * Getter for property https://w3id.org/cwl/cwl#baseCommand
- *
- * Specifies the program to execute. If an array, the first element of - * the array is the command to execute, and subsequent elements are - * mandatory command line arguments. The elements in `baseCommand` must - * appear before any command line bindings from `inputBinding` or - * `arguments`. - * - * If `baseCommand` is not provided or is an empty array, the first - * element of the command line produced after processing `inputBinding` or - * `arguments` must be used as the program to execute. - * - * If the program includes a path separator character it must - * be an absolute path, otherwise it is an error. If the program does not - * include a path separator, search the `$PATH` variable in the runtime - * environment of the workflow runner find the absolute path of the - * executable. - * *
- */ - - public Object getBaseCommand() { - return this.baseCommand; - } - - private java.util.Optional> arguments; - - /** - * Getter for property https://w3id.org/cwl/cwl#arguments
- *
- * Command line bindings which are not directly associated with input - * parameters. If the value is a string, it is used as a string literal - * argument. If it is an Expression, the result of the evaluation is used - * as an argument. - * *
- */ - - public java.util.Optional> getArguments() { - return this.arguments; - } - - private Object stdin; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stdin
- *
- * A path to a file whose contents must be piped into the command's - * standard input stream. - * *
- */ - - public Object getStdin() { - return this.stdin; - } - - private Object stderr; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stderr
- *
- * Capture the command's standard error stream to a file written to - * the designated output directory. - * - * If `stderr` is a string, it specifies the file name to use. - * - * If `stderr` is an expression, the expression is evaluated and must - * return a string with the file name to use to capture stderr. If the - * return value is not a string, or the resulting path contains illegal - * characters (such as the path separator `/`) it is an error. - * *
- */ - - public Object getStderr() { - return this.stderr; - } - - private Object stdout; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/stdout
- *
- * Capture the command's standard output stream to a file written to - * the designated output directory. - * - * If the `CommandLineTool` contains logically chained commands - * (e.g. `echo a && echo b`) `stdout` must include the output of - * every command. - * - * If `stdout` is a string, it specifies the file name to use. - * - * If `stdout` is an expression, the expression is evaluated and must - * return a string with the file name to use to capture stdout. If the - * return value is not a string, or the resulting path contains illegal - * characters (such as the path separator `/`) it is an error. - * *
- */ - - public Object getStdout() { - return this.stdout; - } - - private java.util.Optional> successCodes; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/successCodes
- *
- * Exit codes that indicate the process completed successfully. - * - * If not specified, only exit code 0 is considered success. - * *
- */ - - public java.util.Optional> getSuccessCodes() { - return this.successCodes; - } - - private java.util.Optional> temporaryFailCodes; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/temporaryFailCodes
- *
- * Exit codes that indicate the process failed due to a possibly - * temporary condition, where executing the process with the same - * runtime environment and inputs may produce different results. - * - * If not specified, no exit codes are considered temporary failure. - * *
- */ - - public java.util.Optional> getTemporaryFailCodes() { - return this.temporaryFailCodes; - } - - private java.util.Optional> permanentFailCodes; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandLineTool/permanentFailCodes
- *
- * Exit codes that indicate the process failed due to a permanent logic error, where executing the process with the same runtime environment and same inputs is expected to always fail. - * If not specified, all exit codes except 0 are considered permanent failure. *
- */ - - public java.util.Optional> getPermanentFailCodes() { - return this.permanentFailCodes; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of CommandLineToolImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandLineToolImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandLineToolImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - CommandLineTool_class class_; - try { - class_ = - LoaderInstances - .uri_CommandLineTool_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - java.util.List inputs; - try { - inputs = - LoaderInstances - .idmap_inputs_array_of_CommandInputParameter - .loadField(__doc.get("inputs"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputs = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputs` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.List outputs; - try { - outputs = - LoaderInstances - .idmap_outputs_array_of_CommandOutputParameter - .loadField(__doc.get("outputs"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - outputs = null; // won't be used but prevents compiler from complaining. - final String __message = "the `outputs` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional> requirements; - - if (__doc.containsKey("requirements")) { - try { - requirements = - LoaderInstances - .idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement - .loadField(__doc.get("requirements"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - requirements = null; // won't be used but prevents compiler from complaining. - final String __message = "the `requirements` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - requirements = null; - } - java.util.Optional> hints; - - if (__doc.containsKey("hints")) { - try { - hints = - LoaderInstances - .idmap_hints_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance - .loadField(__doc.get("hints"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - hints = null; // won't be used but prevents compiler from complaining. - final String __message = "the `hints` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - hints = null; - } - java.util.Optional cwlVersion; - - if (__doc.containsKey("cwlVersion")) { - try { - cwlVersion = - LoaderInstances - .uri_optional_CWLVersion_False_True_None_None - .loadField(__doc.get("cwlVersion"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - cwlVersion = null; // won't be used but prevents compiler from complaining. - final String __message = "the `cwlVersion` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - cwlVersion = null; - } - java.util.Optional> intent; - - if (__doc.containsKey("intent")) { - try { - intent = - LoaderInstances - .uri_optional_array_of_StringInstance_True_False_None_None - .loadField(__doc.get("intent"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - intent = null; // won't be used but prevents compiler from complaining. - final String __message = "the `intent` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - intent = null; - } - Object baseCommand; - - if (__doc.containsKey("baseCommand")) { - try { - baseCommand = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("baseCommand"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - baseCommand = null; // won't be used but prevents compiler from complaining. - final String __message = "the `baseCommand` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - baseCommand = null; - } - java.util.Optional> arguments; - - if (__doc.containsKey("arguments")) { - try { - arguments = - LoaderInstances - .optional_array_of_union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding - .loadField(__doc.get("arguments"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - arguments = null; // won't be used but prevents compiler from complaining. - final String __message = "the `arguments` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - arguments = null; - } - Object stdin; - - if (__doc.containsKey("stdin")) { - try { - stdin = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_ExpressionLoader - .loadField(__doc.get("stdin"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - stdin = null; // won't be used but prevents compiler from complaining. - final String __message = "the `stdin` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - stdin = null; - } - Object stderr; - - if (__doc.containsKey("stderr")) { - try { - stderr = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_ExpressionLoader - .loadField(__doc.get("stderr"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - stderr = null; // won't be used but prevents compiler from complaining. - final String __message = "the `stderr` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - stderr = null; - } - Object stdout; - - if (__doc.containsKey("stdout")) { - try { - stdout = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_ExpressionLoader - .loadField(__doc.get("stdout"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - stdout = null; // won't be used but prevents compiler from complaining. - final String __message = "the `stdout` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - stdout = null; - } - java.util.Optional> successCodes; - - if (__doc.containsKey("successCodes")) { - try { - successCodes = - LoaderInstances - .optional_array_of_IntegerInstance - .loadField(__doc.get("successCodes"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - successCodes = null; // won't be used but prevents compiler from complaining. - final String __message = "the `successCodes` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - successCodes = null; - } - java.util.Optional> temporaryFailCodes; - - if (__doc.containsKey("temporaryFailCodes")) { - try { - temporaryFailCodes = - LoaderInstances - .optional_array_of_IntegerInstance - .loadField(__doc.get("temporaryFailCodes"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - temporaryFailCodes = null; // won't be used but prevents compiler from complaining. - final String __message = "the `temporaryFailCodes` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - temporaryFailCodes = null; - } - java.util.Optional> permanentFailCodes; - - if (__doc.containsKey("permanentFailCodes")) { - try { - permanentFailCodes = - LoaderInstances - .optional_array_of_IntegerInstance - .loadField(__doc.get("permanentFailCodes"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - permanentFailCodes = null; // won't be used but prevents compiler from complaining. - final String __message = "the `permanentFailCodes` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - permanentFailCodes = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.id = (java.util.Optional) id; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.inputs = (java.util.List) inputs; - this.outputs = (java.util.List) outputs; - this.requirements = (java.util.Optional>) requirements; - this.hints = (java.util.Optional>) hints; - this.cwlVersion = (java.util.Optional) cwlVersion; - this.intent = (java.util.Optional>) intent; - this.class_ = (CommandLineTool_class) class_; - this.baseCommand = (Object) baseCommand; - this.arguments = (java.util.Optional>) arguments; - this.stdin = (Object) stdin; - this.stderr = (Object) stderr; - this.stdout = (Object) stdout; - this.successCodes = (java.util.Optional>) successCodes; - this.temporaryFailCodes = (java.util.Optional>) temporaryFailCodes; - this.permanentFailCodes = (java.util.Optional>) permanentFailCodes; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandLineTool_class.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandLineTool_class.java deleted file mode 100644 index 91de36a6..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandLineTool_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum CommandLineTool_class { - COMMANDLINETOOL("CommandLineTool"); - - private static String[] symbols = new String[] {"CommandLineTool"}; - private String docVal; - - private CommandLineTool_class(final String docVal) { - this.docVal = docVal; - } - - public static CommandLineTool_class fromDocumentVal(final String docVal) { - for(final CommandLineTool_class val : CommandLineTool_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", CommandLineTool_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputArraySchema.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputArraySchema.java deleted file mode 100644 index d8e7a3f5..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputArraySchema.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputArraySchema
This interface is implemented by {@link CommandOutputArraySchemaImpl}
- */ -public interface CommandOutputArraySchema extends OutputArraySchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - Object getItems(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - Array_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputArraySchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputArraySchemaImpl.java deleted file mode 100644 index 80ad20e9..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputArraySchemaImpl.java +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputArraySchema
- */ -public class CommandOutputArraySchemaImpl extends SaveableImpl implements CommandOutputArraySchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private Object items; - - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - public Object getItems() { - return this.items; - } - - private Array_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - public Array_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of CommandOutputArraySchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandOutputArraySchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandOutputArraySchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - Object items; - try { - items = - LoaderInstances - .uri_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_False_True_2_None - .loadField(__doc.get("items"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - items = null; // won't be used but prevents compiler from complaining. - final String __message = "the `items` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Array_name type; - try { - type = - LoaderInstances - .typedsl_Array_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.items = (Object) items; - this.type = (Array_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.name = (java.util.Optional) name; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputBinding.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputBinding.java deleted file mode 100644 index 475b20bd..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputBinding.java +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputBinding
This interface is implemented by {@link CommandOutputBindingImpl}
- Describes how to generate an output parameter based on the files produced - by a CommandLineTool. - - The output parameter value is generated by applying these operations in the - following order: - - - glob - - loadContents - - outputEval - - secondaryFiles -
- */ -public interface CommandOutputBinding extends LoadContents, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * If true, the file (or each file in the array) must be a UTF-8 - * text file 64 KiB or smaller, and the implementation must read - * the entire contents of the file (or file array) and place it - * in the `contents` field of the File object for use by - * expressions. If the size of the file is greater than 64 KiB, - * the implementation must raise a fatal error. - * *
- */ - - java.util.Optional getLoadContents(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - java.util.Optional getLoadListing(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandOutputBinding/glob
- *
- * Find files or directories relative to the output directory, using POSIX - * glob(3) pathname matching. If an array is provided, find files or - * directories that match any pattern in the array. If an expression is - * provided, the expression must return a string or an array of strings, - * which will then be evaluated as one or more glob patterns. Must only - * match and return files/directories which actually exist. - * - * If the value of glob is a relative path pattern (does not - * begin with a slash '/') then it is resolved relative to the - * output directory. If the value of the glob is an absolute - * path pattern (it does begin with a slash '/') then it must - * refer to a path within the output directory. It is an error - * if any glob resolves to a path outside the output directory. - * Specifically this means globs that resolve to paths outside the output - * directory are illegal. - * - * A glob may match a path within the output directory which is - * actually a symlink to another file. In this case, the - * expected behavior is for the resulting File/Directory object to take the - * `basename` (and corresponding `nameroot` and `nameext`) of the - * symlink. The `location` of the File/Directory is implementation - * dependent, but logically the File/Directory should have the same content - * as the symlink target. Platforms may stage output files/directories to - * cloud storage that lack the concept of a symlink. In - * this case file content and directories may be duplicated, or (to avoid - * duplication) the File/Directory `location` may refer to the symlink - * target. - * - * It is an error if a symlink in the output directory (or any - * symlink in a chain of links) refers to any file or directory - * that is not under an input or output directory. - * - * Implementations may shut down a container before globbing - * output, so globs and expressions must not assume access to the - * container filesystem except for declared input and output. - * *
- */ - - Object getGlob(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandOutputBinding/outputEval
- *
- * Evaluate an expression to generate the output value. If - * `glob` was specified, the value of `self` must be an array - * containing file objects that were matched. If no files were - * matched, `self` must be a zero length array; if a single file - * was matched, the value of `self` is an array of a single - * element. The exit code of the process is - * available in the expression as `runtime.exitCode`. - * - * Additionally, if `loadContents` is true, the file must be a - * UTF-8 text file 64 KiB or smaller, and the implementation must - * read the entire contents of the file (or file array) and place - * it in the `contents` field of the File object for use in - * `outputEval`. If the size of the file is greater than 64 KiB, - * the implementation must raise a fatal error. - * - * If a tool needs to return a large amount of structured data to - * the workflow, loading the output object from `cwl.output.json` - * bypasses `outputEval` and is not subject to the 64 KiB - * `loadContents` limit. - * *
- */ - - java.util.Optional getOutputEval(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputBindingImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputBindingImpl.java deleted file mode 100644 index a093cc9d..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputBindingImpl.java +++ /dev/null @@ -1,271 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputBinding
- Describes how to generate an output parameter based on the files produced - by a CommandLineTool. - - The output parameter value is generated by applying these operations in the - following order: - - - glob - - loadContents - - outputEval - - secondaryFiles -
- */ -public class CommandOutputBindingImpl extends SaveableImpl implements CommandOutputBinding { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional loadContents; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * If true, the file (or each file in the array) must be a UTF-8 - * text file 64 KiB or smaller, and the implementation must read - * the entire contents of the file (or file array) and place it - * in the `contents` field of the File object for use by - * expressions. If the size of the file is greater than 64 KiB, - * the implementation must raise a fatal error. - * *
- */ - - public java.util.Optional getLoadContents() { - return this.loadContents; - } - - private java.util.Optional loadListing; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - public java.util.Optional getLoadListing() { - return this.loadListing; - } - - private Object glob; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandOutputBinding/glob
- *
- * Find files or directories relative to the output directory, using POSIX - * glob(3) pathname matching. If an array is provided, find files or - * directories that match any pattern in the array. If an expression is - * provided, the expression must return a string or an array of strings, - * which will then be evaluated as one or more glob patterns. Must only - * match and return files/directories which actually exist. - * - * If the value of glob is a relative path pattern (does not - * begin with a slash '/') then it is resolved relative to the - * output directory. If the value of the glob is an absolute - * path pattern (it does begin with a slash '/') then it must - * refer to a path within the output directory. It is an error - * if any glob resolves to a path outside the output directory. - * Specifically this means globs that resolve to paths outside the output - * directory are illegal. - * - * A glob may match a path within the output directory which is - * actually a symlink to another file. In this case, the - * expected behavior is for the resulting File/Directory object to take the - * `basename` (and corresponding `nameroot` and `nameext`) of the - * symlink. The `location` of the File/Directory is implementation - * dependent, but logically the File/Directory should have the same content - * as the symlink target. Platforms may stage output files/directories to - * cloud storage that lack the concept of a symlink. In - * this case file content and directories may be duplicated, or (to avoid - * duplication) the File/Directory `location` may refer to the symlink - * target. - * - * It is an error if a symlink in the output directory (or any - * symlink in a chain of links) refers to any file or directory - * that is not under an input or output directory. - * - * Implementations may shut down a container before globbing - * output, so globs and expressions must not assume access to the - * container filesystem except for declared input and output. - * *
- */ - - public Object getGlob() { - return this.glob; - } - - private java.util.Optional outputEval; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandOutputBinding/outputEval
- *
- * Evaluate an expression to generate the output value. If - * `glob` was specified, the value of `self` must be an array - * containing file objects that were matched. If no files were - * matched, `self` must be a zero length array; if a single file - * was matched, the value of `self` is an array of a single - * element. The exit code of the process is - * available in the expression as `runtime.exitCode`. - * - * Additionally, if `loadContents` is true, the file must be a - * UTF-8 text file 64 KiB or smaller, and the implementation must - * read the entire contents of the file (or file array) and place - * it in the `contents` field of the File object for use in - * `outputEval`. If the size of the file is greater than 64 KiB, - * the implementation must raise a fatal error. - * - * If a tool needs to return a large amount of structured data to - * the workflow, loading the output object from `cwl.output.json` - * bypasses `outputEval` and is not subject to the 64 KiB - * `loadContents` limit. - * *
- */ - - public java.util.Optional getOutputEval() { - return this.outputEval; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of CommandOutputBindingImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandOutputBindingImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandOutputBindingImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional loadContents; - - if (__doc.containsKey("loadContents")) { - try { - loadContents = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadContents = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadContents` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadContents = null; - } - java.util.Optional loadListing; - - if (__doc.containsKey("loadListing")) { - try { - loadListing = - LoaderInstances - .optional_LoadListingEnum - .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadListing = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadListing` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadListing = null; - } - Object glob; - - if (__doc.containsKey("glob")) { - try { - glob = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_ExpressionLoader_or_array_of_StringInstance - .loadField(__doc.get("glob"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - glob = null; // won't be used but prevents compiler from complaining. - final String __message = "the `glob` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - glob = null; - } - java.util.Optional outputEval; - - if (__doc.containsKey("outputEval")) { - try { - outputEval = - LoaderInstances - .optional_ExpressionLoader - .loadField(__doc.get("outputEval"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - outputEval = null; // won't be used but prevents compiler from complaining. - final String __message = "the `outputEval` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - outputEval = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.loadContents = (java.util.Optional) loadContents; - this.loadListing = (java.util.Optional) loadListing; - this.glob = (Object) glob; - this.outputEval = (java.util.Optional) outputEval; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputEnumSchema.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputEnumSchema.java deleted file mode 100644 index cf9aa402..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputEnumSchema.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputEnumSchema
This interface is implemented by {@link CommandOutputEnumSchemaImpl}
- */ -public interface CommandOutputEnumSchema extends OutputEnumSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - java.util.List getSymbols(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - Enum_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputEnumSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputEnumSchemaImpl.java deleted file mode 100644 index ce9d7fe7..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputEnumSchemaImpl.java +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputEnumSchema
- */ -public class CommandOutputEnumSchemaImpl extends SaveableImpl implements CommandOutputEnumSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private java.util.List symbols; - - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - public java.util.List getSymbols() { - return this.symbols; - } - - private Enum_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - public Enum_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of CommandOutputEnumSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandOutputEnumSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandOutputEnumSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - java.util.List symbols; - try { - symbols = - LoaderInstances - .uri_array_of_StringInstance_True_False_None_None - .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - symbols = null; // won't be used but prevents compiler from complaining. - final String __message = "the `symbols` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Enum_name type; - try { - type = - LoaderInstances - .typedsl_Enum_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.name = (java.util.Optional) name; - this.symbols = (java.util.List) symbols; - this.type = (Enum_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputParameter.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputParameter.java deleted file mode 100644 index ec07146a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputParameter.java +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputParameter
This interface is implemented by {@link CommandOutputParameterImpl}
- An output parameter for a CommandLineTool.
- */ -public interface CommandOutputParameter extends OutputParameter, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - Object getFormat(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * *
- */ - - Object getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandOutputParameter/outputBinding
- *
- * Describes how to generate this output object based on the files produced by a CommandLineTool *
- */ - - java.util.Optional getOutputBinding(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputParameterImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputParameterImpl.java deleted file mode 100644 index 366dc864..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputParameterImpl.java +++ /dev/null @@ -1,369 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputParameter
- An output parameter for a CommandLineTool.
- */ -public class CommandOutputParameterImpl extends SaveableImpl implements CommandOutputParameter { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional streamable; - - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - public java.util.Optional getStreamable() { - return this.streamable; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - public Object getFormat() { - return this.format; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * *
- */ - - public Object getType() { - return this.type; - } - - private java.util.Optional outputBinding; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandOutputParameter/outputBinding
- *
- * Describes how to generate this output object based on the files produced by a CommandLineTool *
- */ - - public java.util.Optional getOutputBinding() { - return this.outputBinding; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of CommandOutputParameterImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandOutputParameterImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandOutputParameterImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional streamable; - - if (__doc.containsKey("streamable")) { - try { - streamable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - streamable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `streamable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - streamable = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - Object type; - try { - type = - LoaderInstances - .typedsl_union_of_CWLType_or_stdout_or_stderr_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional outputBinding; - - if (__doc.containsKey("outputBinding")) { - try { - outputBinding = - LoaderInstances - .optional_CommandOutputBinding - .loadField(__doc.get("outputBinding"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - outputBinding = null; // won't be used but prevents compiler from complaining. - final String __message = "the `outputBinding` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - outputBinding = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.label = (java.util.Optional) label; - this.secondaryFiles = (Object) secondaryFiles; - this.streamable = (java.util.Optional) streamable; - this.doc = (Object) doc; - this.id = (java.util.Optional) id; - this.format = (Object) format; - this.type = (Object) type; - this.outputBinding = (java.util.Optional) outputBinding; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputRecordField.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputRecordField.java deleted file mode 100644 index b16606a9..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputRecordField.java +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputRecordField
This interface is implemented by {@link CommandOutputRecordFieldImpl}
- */ -public interface CommandOutputRecordField extends OutputRecordField, Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - String getName(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - Object getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - Object getFormat(); - /** - * Getter for property https://w3id.org/cwl/cwl#CommandOutputRecordField/outputBinding
- *
- * Describes how to generate this output object based on the files - * produced by a CommandLineTool - * *
- */ - - java.util.Optional getOutputBinding(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputRecordFieldImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputRecordFieldImpl.java deleted file mode 100644 index 91530a3d..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputRecordFieldImpl.java +++ /dev/null @@ -1,366 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputRecordField
- */ -public class CommandOutputRecordFieldImpl extends SaveableImpl implements CommandOutputRecordField { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private String name; - - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - public String getName() { - return this.name; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - public Object getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional streamable; - - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - public java.util.Optional getStreamable() { - return this.streamable; - } - - private Object format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - public Object getFormat() { - return this.format; - } - - private java.util.Optional outputBinding; - - /** - * Getter for property https://w3id.org/cwl/cwl#CommandOutputRecordField/outputBinding
- *
- * Describes how to generate this output object based on the files - * produced by a CommandLineTool - * *
- */ - - public java.util.Optional getOutputBinding() { - return this.outputBinding; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of CommandOutputRecordFieldImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandOutputRecordFieldImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandOutputRecordFieldImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - String name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - if (name == null) { - if (__docRoot != null) { - name = __docRoot; - } else { - throw new ValidationException("Missing name"); - } - } - __baseUri = (String) name; - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object type; - try { - type = - LoaderInstances - .typedsl_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional streamable; - - if (__doc.containsKey("streamable")) { - try { - streamable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - streamable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `streamable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - streamable = null; - } - Object format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - java.util.Optional outputBinding; - - if (__doc.containsKey("outputBinding")) { - try { - outputBinding = - LoaderInstances - .optional_CommandOutputBinding - .loadField(__doc.get("outputBinding"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - outputBinding = null; // won't be used but prevents compiler from complaining. - final String __message = "the `outputBinding` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - outputBinding = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.doc = (Object) doc; - this.name = (String) name; - this.type = (Object) type; - this.label = (java.util.Optional) label; - this.secondaryFiles = (Object) secondaryFiles; - this.streamable = (java.util.Optional) streamable; - this.format = (Object) format; - this.outputBinding = (java.util.Optional) outputBinding; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputRecordSchema.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputRecordSchema.java deleted file mode 100644 index 55f41695..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputRecordSchema.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#CommandOutputRecordSchema
This interface is implemented by {@link CommandOutputRecordSchemaImpl}
- */ -public interface CommandOutputRecordSchema extends OutputRecordSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - java.util.Optional> getFields(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - Record_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputRecordSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputRecordSchemaImpl.java deleted file mode 100644 index 0b339965..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/CommandOutputRecordSchemaImpl.java +++ /dev/null @@ -1,226 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#CommandOutputRecordSchema
- */ -public class CommandOutputRecordSchemaImpl extends SaveableImpl implements CommandOutputRecordSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private java.util.Optional> fields; - - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - public java.util.Optional> getFields() { - return this.fields; - } - - private Record_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - public Record_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of CommandOutputRecordSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public CommandOutputRecordSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("CommandOutputRecordSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - java.util.Optional> fields; - - if (__doc.containsKey("fields")) { - try { - fields = - LoaderInstances - .idmap_fields_optional_array_of_CommandOutputRecordField - .loadField(__doc.get("fields"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - fields = null; // won't be used but prevents compiler from complaining. - final String __message = "the `fields` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - fields = null; - } - Record_name type; - try { - type = - LoaderInstances - .typedsl_Record_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.fields = (java.util.Optional>) fields; - this.type = (Record_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.name = (java.util.Optional) name; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Directory.java b/src/main/java/org/w3id/cwl/cwl1_2/Directory.java deleted file mode 100644 index 968b416f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/Directory.java +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#Directory
This interface is implemented by {@link DirectoryImpl}
- Represents a directory to present to a command line tool. - - Directories are represented as objects with `class` of `Directory`. Directory objects have - a number of properties that provide metadata about the directory. - - The `location` property of a Directory is a IRI that uniquely identifies - the directory. Implementations must support the file:// IRI scheme and may - support other schemes such as http://. Alternately to `location`, - implementations must also accept the `path` property on Directory, which - must be a filesystem path available on the same host as the CWL runner (for - inputs) or the runtime environment of a command line tool execution (for - command line tool outputs). - - A Directory object may have a `listing` field. This is a list of File and - Directory objects that are contained in the Directory. For each entry in - `listing`, the `basename` property defines the name of the File or - Subdirectory when staged to disk. If `listing` is not provided, the - implementation must have some way of fetching the Directory listing at - runtime based on the `location` field. - - If a Directory does not have `location`, it is a Directory literal. A - Directory literal must provide `listing`. Directory literals must be - created on disk at runtime as needed. - - The resources in a Directory literal do not need to have any implied - relationship in their `location`. For example, a Directory listing may - contain two files located on different hosts. It is the responsibility of - the runtime to ensure that those files are staged to disk appropriately. - Secondary files associated with files in `listing` must also be staged to - the same Directory. - - When executing a CommandLineTool, Directories must be recursively staged - first and have local values of `path` assigned. - - Directory objects in CommandLineTool output must provide either a - `location` IRI or a `path` property in the context of the tool execution - runtime (local to the compute node, or within the executing container). - - An ExpressionTool may forward file references from input to output by using - the same value for `location`. - - Name conflicts (the same `basename` appearing multiple times in `listing` - or in any entry in `secondaryFiles` in the listing) is a fatal error. -
- */ -public interface Directory extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Directory/class
- *
- * Must be `Directory` to indicate this object describes a Directory. *
- */ - - Directory_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#Directory/location
- *
- * An IRI that identifies the directory resource. This may be a relative - * reference, in which case it must be resolved using the base IRI of the - * document. The location may refer to a local or remote resource. If - * the `listing` field is not set, the implementation must use the - * location IRI to retrieve directory listing. If an implementation is - * unable to retrieve the directory listing stored at a remote resource (due to - * unsupported protocol, access denied, or other issue) it must signal an - * error. - * - * If the `location` field is not provided, the `listing` field must be - * provided. The implementation must assign a unique identifier for - * the `location` field. - * - * If the `path` field is provided but the `location` field is not, an - * implementation may assign the value of the `path` field to `location`, - * then follow the rules above. - * *
- */ - - java.util.Optional getLocation(); - /** - * Getter for property https://w3id.org/cwl/cwl#path
- *
- * The local path where the Directory is made available prior to executing a - * CommandLineTool. This must be set by the implementation. This field - * must not be used in any other context. The command line tool being - * executed must be able to access the directory at `path` using the POSIX - * `opendir(2)` syscall. - * - * If the `path` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02) - * (`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`, - * ``, ``, and ``) or characters - * [not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml) - * for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452) - * then implementations may terminate the process with a - * `permanentFailure`. - * *
- */ - - java.util.Optional getPath(); - /** - * Getter for property https://w3id.org/cwl/cwl#Directory/basename
- *
- * The base name of the directory, that is, the name of the file without any - * leading directory path. The base name must not contain a slash `/`. - * - * If not provided, the implementation must set this field based on the - * `location` field by taking the final path component after parsing - * `location` as an IRI. If `basename` is provided, it is not required to - * match the value from `location`. - * - * When this file is made available to a CommandLineTool, it must be named - * with `basename`, i.e. the final component of the `path` field must match - * `basename`. - * *
- */ - - java.util.Optional getBasename(); - /** - * Getter for property https://w3id.org/cwl/cwl#listing
- *
- * List of files or subdirectories contained in this directory. The name - * of each file or subdirectory is determined by the `basename` field of - * each `File` or `Directory` object. It is an error if a `File` shares a - * `basename` with any other entry in `listing`. If two or more - * `Directory` object share the same `basename`, this must be treated as - * equivalent to a single subdirectory with the listings recursively - * merged. - * *
- */ - - java.util.Optional> getListing(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/DirectoryImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/DirectoryImpl.java deleted file mode 100644 index dfccaa94..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/DirectoryImpl.java +++ /dev/null @@ -1,303 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#Directory
- Represents a directory to present to a command line tool. - - Directories are represented as objects with `class` of `Directory`. Directory objects have - a number of properties that provide metadata about the directory. - - The `location` property of a Directory is a IRI that uniquely identifies - the directory. Implementations must support the file:// IRI scheme and may - support other schemes such as http://. Alternately to `location`, - implementations must also accept the `path` property on Directory, which - must be a filesystem path available on the same host as the CWL runner (for - inputs) or the runtime environment of a command line tool execution (for - command line tool outputs). - - A Directory object may have a `listing` field. This is a list of File and - Directory objects that are contained in the Directory. For each entry in - `listing`, the `basename` property defines the name of the File or - Subdirectory when staged to disk. If `listing` is not provided, the - implementation must have some way of fetching the Directory listing at - runtime based on the `location` field. - - If a Directory does not have `location`, it is a Directory literal. A - Directory literal must provide `listing`. Directory literals must be - created on disk at runtime as needed. - - The resources in a Directory literal do not need to have any implied - relationship in their `location`. For example, a Directory listing may - contain two files located on different hosts. It is the responsibility of - the runtime to ensure that those files are staged to disk appropriately. - Secondary files associated with files in `listing` must also be staged to - the same Directory. - - When executing a CommandLineTool, Directories must be recursively staged - first and have local values of `path` assigned. - - Directory objects in CommandLineTool output must provide either a - `location` IRI or a `path` property in the context of the tool execution - runtime (local to the compute node, or within the executing container). - - An ExpressionTool may forward file references from input to output by using - the same value for `location`. - - Name conflicts (the same `basename` appearing multiple times in `listing` - or in any entry in `secondaryFiles` in the listing) is a fatal error. -
- */ -public class DirectoryImpl extends SaveableImpl implements Directory { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private Directory_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#Directory/class
- *
- * Must be `Directory` to indicate this object describes a Directory. *
- */ - - public Directory_class getClass_() { - return this.class_; - } - - private java.util.Optional location; - - /** - * Getter for property https://w3id.org/cwl/cwl#Directory/location
- *
- * An IRI that identifies the directory resource. This may be a relative - * reference, in which case it must be resolved using the base IRI of the - * document. The location may refer to a local or remote resource. If - * the `listing` field is not set, the implementation must use the - * location IRI to retrieve directory listing. If an implementation is - * unable to retrieve the directory listing stored at a remote resource (due to - * unsupported protocol, access denied, or other issue) it must signal an - * error. - * - * If the `location` field is not provided, the `listing` field must be - * provided. The implementation must assign a unique identifier for - * the `location` field. - * - * If the `path` field is provided but the `location` field is not, an - * implementation may assign the value of the `path` field to `location`, - * then follow the rules above. - * *
- */ - - public java.util.Optional getLocation() { - return this.location; - } - - private java.util.Optional path; - - /** - * Getter for property https://w3id.org/cwl/cwl#path
- *
- * The local path where the Directory is made available prior to executing a - * CommandLineTool. This must be set by the implementation. This field - * must not be used in any other context. The command line tool being - * executed must be able to access the directory at `path` using the POSIX - * `opendir(2)` syscall. - * - * If the `path` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02) - * (`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`, - * ``, ``, and ``) or characters - * [not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml) - * for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452) - * then implementations may terminate the process with a - * `permanentFailure`. - * *
- */ - - public java.util.Optional getPath() { - return this.path; - } - - private java.util.Optional basename; - - /** - * Getter for property https://w3id.org/cwl/cwl#Directory/basename
- *
- * The base name of the directory, that is, the name of the file without any - * leading directory path. The base name must not contain a slash `/`. - * - * If not provided, the implementation must set this field based on the - * `location` field by taking the final path component after parsing - * `location` as an IRI. If `basename` is provided, it is not required to - * match the value from `location`. - * - * When this file is made available to a CommandLineTool, it must be named - * with `basename`, i.e. the final component of the `path` field must match - * `basename`. - * *
- */ - - public java.util.Optional getBasename() { - return this.basename; - } - - private java.util.Optional> listing; - - /** - * Getter for property https://w3id.org/cwl/cwl#listing
- *
- * List of files or subdirectories contained in this directory. The name - * of each file or subdirectory is determined by the `basename` field of - * each `File` or `Directory` object. It is an error if a `File` shares a - * `basename` with any other entry in `listing`. If two or more - * `Directory` object share the same `basename`, this must be treated as - * equivalent to a single subdirectory with the listings recursively - * merged. - * *
- */ - - public java.util.Optional> getListing() { - return this.listing; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of DirectoryImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public DirectoryImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("DirectoryImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - Directory_class class_; - try { - class_ = - LoaderInstances - .uri_Directory_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional location; - - if (__doc.containsKey("location")) { - try { - location = - LoaderInstances - .uri_optional_StringInstance_False_False_None_None - .loadField(__doc.get("location"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - location = null; // won't be used but prevents compiler from complaining. - final String __message = "the `location` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - location = null; - } - java.util.Optional path; - - if (__doc.containsKey("path")) { - try { - path = - LoaderInstances - .uri_optional_StringInstance_False_False_None_None - .loadField(__doc.get("path"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - path = null; // won't be used but prevents compiler from complaining. - final String __message = "the `path` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - path = null; - } - java.util.Optional basename; - - if (__doc.containsKey("basename")) { - try { - basename = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("basename"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - basename = null; // won't be used but prevents compiler from complaining. - final String __message = "the `basename` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - basename = null; - } - java.util.Optional> listing; - - if (__doc.containsKey("listing")) { - try { - listing = - LoaderInstances - .optional_array_of_union_of_File_or_Directory - .loadField(__doc.get("listing"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - listing = null; // won't be used but prevents compiler from complaining. - final String __message = "the `listing` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - listing = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (Directory_class) class_; - this.location = (java.util.Optional) location; - this.path = (java.util.Optional) path; - this.basename = (java.util.Optional) basename; - this.listing = (java.util.Optional>) listing; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Directory_class.java b/src/main/java/org/w3id/cwl/cwl1_2/Directory_class.java deleted file mode 100644 index faf3f21d..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/Directory_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum Directory_class { - DIRECTORY("Directory"); - - private static String[] symbols = new String[] {"Directory"}; - private String docVal; - - private Directory_class(final String docVal) { - this.docVal = docVal; - } - - public static Directory_class fromDocumentVal(final String docVal) { - for(final Directory_class val : Directory_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", Directory_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Dirent.java b/src/main/java/org/w3id/cwl/cwl1_2/Dirent.java deleted file mode 100644 index 4d991a82..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/Dirent.java +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#Dirent
This interface is implemented by {@link DirentImpl}
- Define a file or subdirectory that must be staged to a particular - place prior to executing the command line tool. May be the result - of executing an expression, such as building a configuration file - from a template. - - Usually files are staged within the [designated output directory](#Runtime_environment). - However, under certain circumstances, files may be staged at - arbitrary locations, see discussion for `entryname`. -
- */ -public interface Dirent extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#entryname
- *
- * The "target" name of the file or subdirectory. If `entry` is - * a File or Directory, the `entryname` field overrides the value - * of `basename` of the File or Directory object. - * - * * Required when `entry` evaluates to file contents only - * * Optional when `entry` evaluates to a File or Directory object with a `basename` - * * Invalid when `entry` evaluates to an array of File or Directory objects. - * - * If `entryname` is a relative path, it specifies a name within - * the designated output directory. A relative path starting - * with `../` or that resolves to location above the designated output directory is an error. - * - * If `entryname` is an absolute path (starts with a slash `/`) - * it is an error unless the following conditions are met: - * - * * `DockerRequirement` is present in `requirements` - * * The program is will run inside a software container - * where, from the perspective of the program, the root - * filesystem is not shared with any other user or - * running program. - * - * In this case, and the above conditions are met, then - * `entryname` may specify the absolute path within the container - * where the file or directory must be placed. - * *
- */ - - Object getEntryname(); - /** - * Getter for property https://w3id.org/cwl/cwl#entry
- *
- * If the value is a string literal or an expression which evaluates to a - * string, a new text file must be created with the string as the file contents. - * - * If the value is an expression that evaluates to a `File` or - * `Directory` object, or an array of `File` or `Directory` - * objects, this indicates the referenced file or directory - * should be added to the designated output directory prior to - * executing the tool. - * - * If the value is an expression that evaluates to `null`, - * nothing is added to the designated output directory, the entry - * has no effect. - * - * If the value is an expression that evaluates to some other - * array, number, or object not consisting of `File` or - * `Directory` objects, a new file must be created with the value - * serialized to JSON text as the file contents. The JSON - * serialization behavior should match the behavior of string - * interpolation of [Parameter - * references](#Parameter_references). - * *
- */ - - Object getEntry(); - /** - * Getter for property https://w3id.org/cwl/cwl#Dirent/writable
- *
- * If true, the File or Directory (or array of Files or - * Directories) declared in `entry` must be writable by the tool. - * - * Changes to the file or directory must be isolated and not - * visible by any other CommandLineTool process. This may be - * implemented by making a copy of the original file or - * directory. - * - * Disruptive changes to the referenced file or directory must not - * be allowed unless `InplaceUpdateRequirement.inplaceUpdate` is true. - * - * Default false (files and directories read-only by default). - * - * A directory marked as `writable: true` implies that all files and - * subdirectories are recursively writable as well. - * - * If `writable` is false, the file may be made available using a - * bind mount or file system link to avoid unnecessary copying of - * the input file. Command line tools may receive an error on - * attempting to rename or delete files or directories that are - * not explicitly marked as writable. - * *
- */ - - java.util.Optional getWritable(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/DirentImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/DirentImpl.java deleted file mode 100644 index b524ee79..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/DirentImpl.java +++ /dev/null @@ -1,226 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#Dirent
- Define a file or subdirectory that must be staged to a particular - place prior to executing the command line tool. May be the result - of executing an expression, such as building a configuration file - from a template. - - Usually files are staged within the [designated output directory](#Runtime_environment). - However, under certain circumstances, files may be staged at - arbitrary locations, see discussion for `entryname`. -
- */ -public class DirentImpl extends SaveableImpl implements Dirent { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private Object entryname; - - /** - * Getter for property https://w3id.org/cwl/cwl#entryname
- *
- * The "target" name of the file or subdirectory. If `entry` is - * a File or Directory, the `entryname` field overrides the value - * of `basename` of the File or Directory object. - * - * * Required when `entry` evaluates to file contents only - * * Optional when `entry` evaluates to a File or Directory object with a `basename` - * * Invalid when `entry` evaluates to an array of File or Directory objects. - * - * If `entryname` is a relative path, it specifies a name within - * the designated output directory. A relative path starting - * with `../` or that resolves to location above the designated output directory is an error. - * - * If `entryname` is an absolute path (starts with a slash `/`) - * it is an error unless the following conditions are met: - * - * * `DockerRequirement` is present in `requirements` - * * The program is will run inside a software container - * where, from the perspective of the program, the root - * filesystem is not shared with any other user or - * running program. - * - * In this case, and the above conditions are met, then - * `entryname` may specify the absolute path within the container - * where the file or directory must be placed. - * *
- */ - - public Object getEntryname() { - return this.entryname; - } - - private Object entry; - - /** - * Getter for property https://w3id.org/cwl/cwl#entry
- *
- * If the value is a string literal or an expression which evaluates to a - * string, a new text file must be created with the string as the file contents. - * - * If the value is an expression that evaluates to a `File` or - * `Directory` object, or an array of `File` or `Directory` - * objects, this indicates the referenced file or directory - * should be added to the designated output directory prior to - * executing the tool. - * - * If the value is an expression that evaluates to `null`, - * nothing is added to the designated output directory, the entry - * has no effect. - * - * If the value is an expression that evaluates to some other - * array, number, or object not consisting of `File` or - * `Directory` objects, a new file must be created with the value - * serialized to JSON text as the file contents. The JSON - * serialization behavior should match the behavior of string - * interpolation of [Parameter - * references](#Parameter_references). - * *
- */ - - public Object getEntry() { - return this.entry; - } - - private java.util.Optional writable; - - /** - * Getter for property https://w3id.org/cwl/cwl#Dirent/writable
- *
- * If true, the File or Directory (or array of Files or - * Directories) declared in `entry` must be writable by the tool. - * - * Changes to the file or directory must be isolated and not - * visible by any other CommandLineTool process. This may be - * implemented by making a copy of the original file or - * directory. - * - * Disruptive changes to the referenced file or directory must not - * be allowed unless `InplaceUpdateRequirement.inplaceUpdate` is true. - * - * Default false (files and directories read-only by default). - * - * A directory marked as `writable: true` implies that all files and - * subdirectories are recursively writable as well. - * - * If `writable` is false, the file may be made available using a - * bind mount or file system link to avoid unnecessary copying of - * the input file. Command line tools may receive an error on - * attempting to rename or delete files or directories that are - * not explicitly marked as writable. - * *
- */ - - public java.util.Optional getWritable() { - return this.writable; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of DirentImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public DirentImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("DirentImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - Object entryname; - - if (__doc.containsKey("entryname")) { - try { - entryname = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_ExpressionLoader - .loadField(__doc.get("entryname"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - entryname = null; // won't be used but prevents compiler from complaining. - final String __message = "the `entryname` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - entryname = null; - } - Object entry; - try { - entry = - LoaderInstances - .union_of_StringInstance_or_ExpressionLoader - .loadField(__doc.get("entry"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - entry = null; // won't be used but prevents compiler from complaining. - final String __message = "the `entry` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional writable; - - if (__doc.containsKey("writable")) { - try { - writable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("writable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - writable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `writable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - writable = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.entryname = (Object) entryname; - this.entry = (Object) entry; - this.writable = (java.util.Optional) writable; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/DockerRequirement.java b/src/main/java/org/w3id/cwl/cwl1_2/DockerRequirement.java deleted file mode 100644 index 0f69cd10..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/DockerRequirement.java +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#DockerRequirement
This interface is implemented by {@link DockerRequirementImpl}
- Indicates that a workflow component should be run in a - [Docker](https://docker.com) or Docker-compatible (such as - [Singularity](https://www.sylabs.io/) and [udocker](https://github.com/indigo-dc/udocker)) container environment and - specifies how to fetch or build the image. - - If a CommandLineTool lists `DockerRequirement` under - `hints` (or `requirements`), it may (or must) be run in the specified Docker - container. - - The platform must first acquire or install the correct Docker image as - specified by `dockerPull`, `dockerImport`, `dockerLoad` or `dockerFile`. - - The platform must execute the tool in the container using `docker run` with - the appropriate Docker image and tool command line. - - The workflow platform may provide input files and the designated output - directory through the use of volume bind mounts. The platform should rewrite - file paths in the input object to correspond to the Docker bind mounted - locations. That is, the platform should rewrite values in the parameter context - such as `runtime.outdir`, `runtime.tmpdir` and others to be valid paths - within the container. The platform must ensure that `runtime.outdir` and - `runtime.tmpdir` are distinct directories. - - When running a tool contained in Docker, the workflow platform must not - assume anything about the contents of the Docker container, such as the - presence or absence of specific software, except to assume that the - generated command line represents a valid command within the runtime - environment of the container. - - A container image may specify an - [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) - and/or - [CMD](https://docs.docker.com/engine/reference/builder/#cmd). - Command line arguments will be appended after all elements of - ENTRYPOINT, and will override all elements specified using CMD (in - other words, CMD is only used when the CommandLineTool definition - produces an empty command line). - - Use of implicit ENTRYPOINT or CMD are discouraged due to reproducibility - concerns of the implicit hidden execution point (For further discussion, see - [https://doi.org/10.12688/f1000research.15140.1](https://doi.org/10.12688/f1000research.15140.1)). Portable - CommandLineTool wrappers in which use of a container is optional must not rely on ENTRYPOINT or CMD. - CommandLineTools which do rely on ENTRYPOINT or CMD must list `DockerRequirement` in the - `requirements` section. - - ## Interaction with other requirements - - If [EnvVarRequirement](#EnvVarRequirement) is specified alongside a - DockerRequirement, the environment variables must be provided to Docker - using `--env` or `--env-file` and interact with the container's preexisting - environment as defined by Docker. -
- */ -public interface DockerRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/class
- *
- * Always 'DockerRequirement' *
- */ - - DockerRequirement_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerPull
- *
- * Specify a Docker image to retrieve using `docker pull`. Can contain the - * immutable digest to ensure an exact container is used: - * `dockerPull: ubuntu@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2` - * *
- */ - - java.util.Optional getDockerPull(); - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerLoad
- *
- * Specify an HTTP URL from which to download a Docker image using `docker load`. *
- */ - - java.util.Optional getDockerLoad(); - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerFile
- *
- * Supply the contents of a Dockerfile which will be built using `docker build`. *
- */ - - java.util.Optional getDockerFile(); - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerImport
- *
- * Provide HTTP URL to download and gunzip a Docker images using `docker import. *
- */ - - java.util.Optional getDockerImport(); - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerImageId
- *
- * The image id that will be used for `docker run`. May be a - * human-readable image name or the image identifier hash. May be skipped - * if `dockerPull` is specified, in which case the `dockerPull` image id - * must be used. - * *
- */ - - java.util.Optional getDockerImageId(); - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerOutputDirectory
- *
- * Set the designated output directory to a specific location inside the - * Docker container. - * *
- */ - - java.util.Optional getDockerOutputDirectory(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/DockerRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/DockerRequirementImpl.java deleted file mode 100644 index 5fe1c612..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/DockerRequirementImpl.java +++ /dev/null @@ -1,333 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#DockerRequirement
- Indicates that a workflow component should be run in a - [Docker](https://docker.com) or Docker-compatible (such as - [Singularity](https://www.sylabs.io/) and [udocker](https://github.com/indigo-dc/udocker)) container environment and - specifies how to fetch or build the image. - - If a CommandLineTool lists `DockerRequirement` under - `hints` (or `requirements`), it may (or must) be run in the specified Docker - container. - - The platform must first acquire or install the correct Docker image as - specified by `dockerPull`, `dockerImport`, `dockerLoad` or `dockerFile`. - - The platform must execute the tool in the container using `docker run` with - the appropriate Docker image and tool command line. - - The workflow platform may provide input files and the designated output - directory through the use of volume bind mounts. The platform should rewrite - file paths in the input object to correspond to the Docker bind mounted - locations. That is, the platform should rewrite values in the parameter context - such as `runtime.outdir`, `runtime.tmpdir` and others to be valid paths - within the container. The platform must ensure that `runtime.outdir` and - `runtime.tmpdir` are distinct directories. - - When running a tool contained in Docker, the workflow platform must not - assume anything about the contents of the Docker container, such as the - presence or absence of specific software, except to assume that the - generated command line represents a valid command within the runtime - environment of the container. - - A container image may specify an - [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint) - and/or - [CMD](https://docs.docker.com/engine/reference/builder/#cmd). - Command line arguments will be appended after all elements of - ENTRYPOINT, and will override all elements specified using CMD (in - other words, CMD is only used when the CommandLineTool definition - produces an empty command line). - - Use of implicit ENTRYPOINT or CMD are discouraged due to reproducibility - concerns of the implicit hidden execution point (For further discussion, see - [https://doi.org/10.12688/f1000research.15140.1](https://doi.org/10.12688/f1000research.15140.1)). Portable - CommandLineTool wrappers in which use of a container is optional must not rely on ENTRYPOINT or CMD. - CommandLineTools which do rely on ENTRYPOINT or CMD must list `DockerRequirement` in the - `requirements` section. - - ## Interaction with other requirements - - If [EnvVarRequirement](#EnvVarRequirement) is specified alongside a - DockerRequirement, the environment variables must be provided to Docker - using `--env` or `--env-file` and interact with the container's preexisting - environment as defined by Docker. -
- */ -public class DockerRequirementImpl extends SaveableImpl implements DockerRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private DockerRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/class
- *
- * Always 'DockerRequirement' *
- */ - - public DockerRequirement_class getClass_() { - return this.class_; - } - - private java.util.Optional dockerPull; - - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerPull
- *
- * Specify a Docker image to retrieve using `docker pull`. Can contain the - * immutable digest to ensure an exact container is used: - * `dockerPull: ubuntu@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2` - * *
- */ - - public java.util.Optional getDockerPull() { - return this.dockerPull; - } - - private java.util.Optional dockerLoad; - - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerLoad
- *
- * Specify an HTTP URL from which to download a Docker image using `docker load`. *
- */ - - public java.util.Optional getDockerLoad() { - return this.dockerLoad; - } - - private java.util.Optional dockerFile; - - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerFile
- *
- * Supply the contents of a Dockerfile which will be built using `docker build`. *
- */ - - public java.util.Optional getDockerFile() { - return this.dockerFile; - } - - private java.util.Optional dockerImport; - - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerImport
- *
- * Provide HTTP URL to download and gunzip a Docker images using `docker import. *
- */ - - public java.util.Optional getDockerImport() { - return this.dockerImport; - } - - private java.util.Optional dockerImageId; - - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerImageId
- *
- * The image id that will be used for `docker run`. May be a - * human-readable image name or the image identifier hash. May be skipped - * if `dockerPull` is specified, in which case the `dockerPull` image id - * must be used. - * *
- */ - - public java.util.Optional getDockerImageId() { - return this.dockerImageId; - } - - private java.util.Optional dockerOutputDirectory; - - /** - * Getter for property https://w3id.org/cwl/cwl#DockerRequirement/dockerOutputDirectory
- *
- * Set the designated output directory to a specific location inside the - * Docker container. - * *
- */ - - public java.util.Optional getDockerOutputDirectory() { - return this.dockerOutputDirectory; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of DockerRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public DockerRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("DockerRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - DockerRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_DockerRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional dockerPull; - - if (__doc.containsKey("dockerPull")) { - try { - dockerPull = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("dockerPull"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - dockerPull = null; // won't be used but prevents compiler from complaining. - final String __message = "the `dockerPull` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - dockerPull = null; - } - java.util.Optional dockerLoad; - - if (__doc.containsKey("dockerLoad")) { - try { - dockerLoad = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("dockerLoad"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - dockerLoad = null; // won't be used but prevents compiler from complaining. - final String __message = "the `dockerLoad` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - dockerLoad = null; - } - java.util.Optional dockerFile; - - if (__doc.containsKey("dockerFile")) { - try { - dockerFile = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("dockerFile"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - dockerFile = null; // won't be used but prevents compiler from complaining. - final String __message = "the `dockerFile` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - dockerFile = null; - } - java.util.Optional dockerImport; - - if (__doc.containsKey("dockerImport")) { - try { - dockerImport = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("dockerImport"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - dockerImport = null; // won't be used but prevents compiler from complaining. - final String __message = "the `dockerImport` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - dockerImport = null; - } - java.util.Optional dockerImageId; - - if (__doc.containsKey("dockerImageId")) { - try { - dockerImageId = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("dockerImageId"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - dockerImageId = null; // won't be used but prevents compiler from complaining. - final String __message = "the `dockerImageId` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - dockerImageId = null; - } - java.util.Optional dockerOutputDirectory; - - if (__doc.containsKey("dockerOutputDirectory")) { - try { - dockerOutputDirectory = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("dockerOutputDirectory"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - dockerOutputDirectory = null; // won't be used but prevents compiler from complaining. - final String __message = "the `dockerOutputDirectory` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - dockerOutputDirectory = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (DockerRequirement_class) class_; - this.dockerPull = (java.util.Optional) dockerPull; - this.dockerLoad = (java.util.Optional) dockerLoad; - this.dockerFile = (java.util.Optional) dockerFile; - this.dockerImport = (java.util.Optional) dockerImport; - this.dockerImageId = (java.util.Optional) dockerImageId; - this.dockerOutputDirectory = (java.util.Optional) dockerOutputDirectory; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/DockerRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_2/DockerRequirement_class.java deleted file mode 100644 index b2d07d31..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/DockerRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum DockerRequirement_class { - DOCKERREQUIREMENT("DockerRequirement"); - - private static String[] symbols = new String[] {"DockerRequirement"}; - private String docVal; - - private DockerRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static DockerRequirement_class fromDocumentVal(final String docVal) { - for(final DockerRequirement_class val : DockerRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", DockerRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Documented.java b/src/main/java/org/w3id/cwl/cwl1_2/Documented.java deleted file mode 100644 index 62460ab8..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/Documented.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/salad#Documented
- */ -public interface Documented extends Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/EnumSchema.java b/src/main/java/org/w3id/cwl/cwl1_2/EnumSchema.java deleted file mode 100644 index 20033829..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/EnumSchema.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/salad#EnumSchema
This interface is implemented by {@link EnumSchemaImpl}
- Define an enumerated type. -
- */ -public interface EnumSchema extends Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#EnumSchema/name
- - */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - java.util.List getSymbols(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - Enum_name getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/EnumSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/EnumSchemaImpl.java deleted file mode 100644 index db038b36..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/EnumSchemaImpl.java +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/salad#EnumSchema
- Define an enumerated type. -
- */ -public class EnumSchemaImpl extends SaveableImpl implements EnumSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/salad#EnumSchema/name
- - */ - - public java.util.Optional getName() { - return this.name; - } - - private java.util.List symbols; - - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - public java.util.List getSymbols() { - return this.symbols; - } - - private Enum_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - public Enum_name getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of EnumSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public EnumSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("EnumSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - java.util.List symbols; - try { - symbols = - LoaderInstances - .uri_array_of_StringInstance_True_False_None_None - .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - symbols = null; // won't be used but prevents compiler from complaining. - final String __message = "the `symbols` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Enum_name type; - try { - type = - LoaderInstances - .typedsl_Enum_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.name = (java.util.Optional) name; - this.symbols = (java.util.List) symbols; - this.type = (Enum_name) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Enum_name.java b/src/main/java/org/w3id/cwl/cwl1_2/Enum_name.java deleted file mode 100644 index 09c8b689..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/Enum_name.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum Enum_name { - ENUM("enum"); - - private static String[] symbols = new String[] {"enum"}; - private String docVal; - - private Enum_name(final String docVal) { - this.docVal = docVal; - } - - public static Enum_name fromDocumentVal(final String docVal) { - for(final Enum_name val : Enum_name.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", Enum_name.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/EnvVarRequirement.java b/src/main/java/org/w3id/cwl/cwl1_2/EnvVarRequirement.java deleted file mode 100644 index 197df67d..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/EnvVarRequirement.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#EnvVarRequirement
This interface is implemented by {@link EnvVarRequirementImpl}
- Define a list of environment variables which will be set in the - execution environment of the tool. See `EnvironmentDef` for details. -
- */ -public interface EnvVarRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#EnvVarRequirement/class
- *
- * Always 'EnvVarRequirement' *
- */ - - EnvVarRequirement_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#EnvVarRequirement/envDef
- *
- * The list of environment variables. *
- */ - - java.util.List getEnvDef(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/EnvVarRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/EnvVarRequirementImpl.java deleted file mode 100644 index b43661c9..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/EnvVarRequirementImpl.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#EnvVarRequirement
- Define a list of environment variables which will be set in the - execution environment of the tool. See `EnvironmentDef` for details. -
- */ -public class EnvVarRequirementImpl extends SaveableImpl implements EnvVarRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private EnvVarRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#EnvVarRequirement/class
- *
- * Always 'EnvVarRequirement' *
- */ - - public EnvVarRequirement_class getClass_() { - return this.class_; - } - - private java.util.List envDef; - - /** - * Getter for property https://w3id.org/cwl/cwl#EnvVarRequirement/envDef
- *
- * The list of environment variables. *
- */ - - public java.util.List getEnvDef() { - return this.envDef; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of EnvVarRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public EnvVarRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("EnvVarRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - EnvVarRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_EnvVarRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.List envDef; - try { - envDef = - LoaderInstances - .idmap_envDef_array_of_EnvironmentDef - .loadField(__doc.get("envDef"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - envDef = null; // won't be used but prevents compiler from complaining. - final String __message = "the `envDef` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (EnvVarRequirement_class) class_; - this.envDef = (java.util.List) envDef; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/EnvVarRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_2/EnvVarRequirement_class.java deleted file mode 100644 index 7ae99315..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/EnvVarRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum EnvVarRequirement_class { - ENVVARREQUIREMENT("EnvVarRequirement"); - - private static String[] symbols = new String[] {"EnvVarRequirement"}; - private String docVal; - - private EnvVarRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static EnvVarRequirement_class fromDocumentVal(final String docVal) { - for(final EnvVarRequirement_class val : EnvVarRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", EnvVarRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/EnvironmentDef.java b/src/main/java/org/w3id/cwl/cwl1_2/EnvironmentDef.java deleted file mode 100644 index d3e92f0a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/EnvironmentDef.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#EnvironmentDef
This interface is implemented by {@link EnvironmentDefImpl}
- Define an environment variable that will be set in the runtime environment - by the workflow platform when executing the command line tool. May be the - result of executing an expression, such as getting a parameter from input. -
- */ -public interface EnvironmentDef extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#EnvironmentDef/envName
- *
- * The environment variable name *
- */ - - String getEnvName(); - /** - * Getter for property https://w3id.org/cwl/cwl#EnvironmentDef/envValue
- *
- * The environment variable value *
- */ - - Object getEnvValue(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/EnvironmentDefImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/EnvironmentDefImpl.java deleted file mode 100644 index 8041c98e..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/EnvironmentDefImpl.java +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#EnvironmentDef
- Define an environment variable that will be set in the runtime environment - by the workflow platform when executing the command line tool. May be the - result of executing an expression, such as getting a parameter from input. -
- */ -public class EnvironmentDefImpl extends SaveableImpl implements EnvironmentDef { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private String envName; - - /** - * Getter for property https://w3id.org/cwl/cwl#EnvironmentDef/envName
- *
- * The environment variable name *
- */ - - public String getEnvName() { - return this.envName; - } - - private Object envValue; - - /** - * Getter for property https://w3id.org/cwl/cwl#EnvironmentDef/envValue
- *
- * The environment variable value *
- */ - - public Object getEnvValue() { - return this.envValue; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of EnvironmentDefImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public EnvironmentDefImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("EnvironmentDefImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - String envName; - try { - envName = - LoaderInstances - .StringInstance - .loadField(__doc.get("envName"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - envName = null; // won't be used but prevents compiler from complaining. - final String __message = "the `envName` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Object envValue; - try { - envValue = - LoaderInstances - .union_of_StringInstance_or_ExpressionLoader - .loadField(__doc.get("envValue"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - envValue = null; // won't be used but prevents compiler from complaining. - final String __message = "the `envValue` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.envName = (String) envName; - this.envValue = (Object) envValue; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Expression.java b/src/main/java/org/w3id/cwl/cwl1_2/Expression.java deleted file mode 100644 index 7286535a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/Expression.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum Expression { - EXPRESSIONPLACEHOLDER("ExpressionPlaceholder"); - - private static String[] symbols = new String[] {"ExpressionPlaceholder"}; - private String docVal; - - private Expression(final String docVal) { - this.docVal = docVal; - } - - public static Expression fromDocumentVal(final String docVal) { - for(final Expression val : Expression.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", Expression.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ExpressionTool.java b/src/main/java/org/w3id/cwl/cwl1_2/ExpressionTool.java deleted file mode 100644 index 4a29792f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ExpressionTool.java +++ /dev/null @@ -1,153 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#ExpressionTool
This interface is implemented by {@link ExpressionToolImpl}
- An ExpressionTool is a type of Process object that can be run by itself - or as a Workflow step. It executes a pure Javascript expression that has - access to the same input parameters as a workflow. It is meant to be used - sparingly as a way to isolate complex Javascript expressions that need to - operate on input data and produce some result; perhaps just a - rearrangement of the inputs. No Docker software container is required - or allowed. -
- */ -public interface ExpressionTool extends Process, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Process/id
- *
- * The unique identifier for this object. - * - * Only useful for `$graph` at `Process` level. Should not be exposed - * to users in graphical or terminal user interfaces. - * *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#ExpressionTool/class
- - */ - - ExpressionTool_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#inputs
- *
- * Defines the input parameters of the process. The process is ready to - * run when all required input parameters are associated with concrete - * values. Input parameters include a schema for each parameter which is - * used to validate the input object. It may also be used to build a user - * interface for constructing the input object. - * - * When accepting an input object, all input parameters must have a value. - * If an input parameter is missing from the input object, it must be - * assigned a value of `null` (or the value of `default` for that - * parameter, if provided) for the purposes of validation and evaluation - * of expressions. - * *
- */ - - java.util.List getInputs(); - /** - * Getter for property https://w3id.org/cwl/cwl#outputs
- *
- * Defines the parameters representing the output of the process. May be - * used to generate and/or validate the output object. - * *
- */ - - java.util.List getOutputs(); - /** - * Getter for property https://w3id.org/cwl/cwl#requirements
- *
- * Declares requirements that apply to either the runtime environment or the - * workflow engine that must be met in order to execute this process. If - * an implementation cannot satisfy all requirements, or a requirement is - * listed which is not recognized by the implementation, it is a fatal - * error and the implementation must not attempt to run the process, - * unless overridden at user option. - * *
- */ - - java.util.Optional> getRequirements(); - /** - * Getter for property https://w3id.org/cwl/cwl#hints
- *
- * Declares hints applying to either the runtime environment or the - * workflow engine that may be helpful in executing this process. It is - * not an error if an implementation cannot satisfy all hints, however - * the implementation may report a warning. - * *
- */ - - java.util.Optional> getHints(); - /** - * Getter for property https://w3id.org/cwl/cwl#cwlVersion
- *
- * CWL document version. Always required at the document root. Not - * required for a Process embedded inside another Process. - * *
- */ - - java.util.Optional getCwlVersion(); - /** - * Getter for property https://w3id.org/cwl/cwl#Process/intent
- *
- * An identifier for the type of computational operation, of this Process. - * Especially useful for [`Operation`](Workflow.html#Operation), but can also be used for - * [`CommandLineTool`](CommandLineTool.html#CommandLineTool), - * [`Workflow`](Workflow.html#Workflow), or [ExpressionTool](Workflow.html#ExpressionTool). - * - * If provided, then this must be an IRI of a concept node that - * represents the type of operation, preferably defined within an ontology. - * - * For example, in the domain of bioinformatics, one can use an IRI from - * the EDAM Ontology's [Operation concept nodes](http://edamontology.org/operation_0004), - * like [Alignment](http://edamontology.org/operation_2928), - * or [Clustering](http://edamontology.org/operation_3432); or a more - * specific Operation concept like - * [Split read mapping](http://edamontology.org/operation_3199). - * *
- */ - - java.util.Optional> getIntent(); - /** - * Getter for property https://w3id.org/cwl/cwl#ExpressionTool/expression
- *
- * The expression to execute. The expression must return a plain - * Javascript object which matches the output parameters of the - * ExpressionTool. - * *
- */ - - String getExpression(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ExpressionToolImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/ExpressionToolImpl.java deleted file mode 100644 index e111aed5..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ExpressionToolImpl.java +++ /dev/null @@ -1,441 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#ExpressionTool
- An ExpressionTool is a type of Process object that can be run by itself - or as a Workflow step. It executes a pure Javascript expression that has - access to the same input parameters as a workflow. It is meant to be used - sparingly as a way to isolate complex Javascript expressions that need to - operate on input data and produce some result; perhaps just a - rearrangement of the inputs. No Docker software container is required - or allowed. -
- */ -public class ExpressionToolImpl extends SaveableImpl implements ExpressionTool { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Process/id
- *
- * The unique identifier for this object. - * - * Only useful for `$graph` at `Process` level. Should not be exposed - * to users in graphical or terminal user interfaces. - * *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private ExpressionTool_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#ExpressionTool/class
- - */ - - public ExpressionTool_class getClass_() { - return this.class_; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private java.util.List inputs; - - /** - * Getter for property https://w3id.org/cwl/cwl#inputs
- *
- * Defines the input parameters of the process. The process is ready to - * run when all required input parameters are associated with concrete - * values. Input parameters include a schema for each parameter which is - * used to validate the input object. It may also be used to build a user - * interface for constructing the input object. - * - * When accepting an input object, all input parameters must have a value. - * If an input parameter is missing from the input object, it must be - * assigned a value of `null` (or the value of `default` for that - * parameter, if provided) for the purposes of validation and evaluation - * of expressions. - * *
- */ - - public java.util.List getInputs() { - return this.inputs; - } - - private java.util.List outputs; - - /** - * Getter for property https://w3id.org/cwl/cwl#outputs
- *
- * Defines the parameters representing the output of the process. May be - * used to generate and/or validate the output object. - * *
- */ - - public java.util.List getOutputs() { - return this.outputs; - } - - private java.util.Optional> requirements; - - /** - * Getter for property https://w3id.org/cwl/cwl#requirements
- *
- * Declares requirements that apply to either the runtime environment or the - * workflow engine that must be met in order to execute this process. If - * an implementation cannot satisfy all requirements, or a requirement is - * listed which is not recognized by the implementation, it is a fatal - * error and the implementation must not attempt to run the process, - * unless overridden at user option. - * *
- */ - - public java.util.Optional> getRequirements() { - return this.requirements; - } - - private java.util.Optional> hints; - - /** - * Getter for property https://w3id.org/cwl/cwl#hints
- *
- * Declares hints applying to either the runtime environment or the - * workflow engine that may be helpful in executing this process. It is - * not an error if an implementation cannot satisfy all hints, however - * the implementation may report a warning. - * *
- */ - - public java.util.Optional> getHints() { - return this.hints; - } - - private java.util.Optional cwlVersion; - - /** - * Getter for property https://w3id.org/cwl/cwl#cwlVersion
- *
- * CWL document version. Always required at the document root. Not - * required for a Process embedded inside another Process. - * *
- */ - - public java.util.Optional getCwlVersion() { - return this.cwlVersion; - } - - private java.util.Optional> intent; - - /** - * Getter for property https://w3id.org/cwl/cwl#Process/intent
- *
- * An identifier for the type of computational operation, of this Process. - * Especially useful for [`Operation`](Workflow.html#Operation), but can also be used for - * [`CommandLineTool`](CommandLineTool.html#CommandLineTool), - * [`Workflow`](Workflow.html#Workflow), or [ExpressionTool](Workflow.html#ExpressionTool). - * - * If provided, then this must be an IRI of a concept node that - * represents the type of operation, preferably defined within an ontology. - * - * For example, in the domain of bioinformatics, one can use an IRI from - * the EDAM Ontology's [Operation concept nodes](http://edamontology.org/operation_0004), - * like [Alignment](http://edamontology.org/operation_2928), - * or [Clustering](http://edamontology.org/operation_3432); or a more - * specific Operation concept like - * [Split read mapping](http://edamontology.org/operation_3199). - * *
- */ - - public java.util.Optional> getIntent() { - return this.intent; - } - - private String expression; - - /** - * Getter for property https://w3id.org/cwl/cwl#ExpressionTool/expression
- *
- * The expression to execute. The expression must return a plain - * Javascript object which matches the output parameters of the - * ExpressionTool. - * *
- */ - - public String getExpression() { - return this.expression; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of ExpressionToolImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public ExpressionToolImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("ExpressionToolImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - ExpressionTool_class class_; - try { - class_ = - LoaderInstances - .uri_ExpressionTool_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - java.util.List inputs; - try { - inputs = - LoaderInstances - .idmap_inputs_array_of_WorkflowInputParameter - .loadField(__doc.get("inputs"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputs = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputs` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.List outputs; - try { - outputs = - LoaderInstances - .idmap_outputs_array_of_ExpressionToolOutputParameter - .loadField(__doc.get("outputs"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - outputs = null; // won't be used but prevents compiler from complaining. - final String __message = "the `outputs` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional> requirements; - - if (__doc.containsKey("requirements")) { - try { - requirements = - LoaderInstances - .idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement - .loadField(__doc.get("requirements"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - requirements = null; // won't be used but prevents compiler from complaining. - final String __message = "the `requirements` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - requirements = null; - } - java.util.Optional> hints; - - if (__doc.containsKey("hints")) { - try { - hints = - LoaderInstances - .idmap_hints_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance - .loadField(__doc.get("hints"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - hints = null; // won't be used but prevents compiler from complaining. - final String __message = "the `hints` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - hints = null; - } - java.util.Optional cwlVersion; - - if (__doc.containsKey("cwlVersion")) { - try { - cwlVersion = - LoaderInstances - .uri_optional_CWLVersion_False_True_None_None - .loadField(__doc.get("cwlVersion"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - cwlVersion = null; // won't be used but prevents compiler from complaining. - final String __message = "the `cwlVersion` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - cwlVersion = null; - } - java.util.Optional> intent; - - if (__doc.containsKey("intent")) { - try { - intent = - LoaderInstances - .uri_optional_array_of_StringInstance_True_False_None_None - .loadField(__doc.get("intent"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - intent = null; // won't be used but prevents compiler from complaining. - final String __message = "the `intent` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - intent = null; - } - String expression; - try { - expression = - LoaderInstances - .ExpressionLoader - .loadField(__doc.get("expression"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - expression = null; // won't be used but prevents compiler from complaining. - final String __message = "the `expression` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.id = (java.util.Optional) id; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.inputs = (java.util.List) inputs; - this.outputs = (java.util.List) outputs; - this.requirements = (java.util.Optional>) requirements; - this.hints = (java.util.Optional>) hints; - this.cwlVersion = (java.util.Optional) cwlVersion; - this.intent = (java.util.Optional>) intent; - this.class_ = (ExpressionTool_class) class_; - this.expression = (String) expression; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ExpressionToolOutputParameter.java b/src/main/java/org/w3id/cwl/cwl1_2/ExpressionToolOutputParameter.java deleted file mode 100644 index bca11d27..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ExpressionToolOutputParameter.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#ExpressionToolOutputParameter
This interface is implemented by {@link ExpressionToolOutputParameterImpl}
- */ -public interface ExpressionToolOutputParameter extends OutputParameter, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - Object getFormat(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * Note that this field just acts as a hint, as the outputs of an - * ExpressionTool process are always considered valid. - * *
- */ - - Object getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ExpressionToolOutputParameterImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/ExpressionToolOutputParameterImpl.java deleted file mode 100644 index 7992ab81..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ExpressionToolOutputParameterImpl.java +++ /dev/null @@ -1,340 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#ExpressionToolOutputParameter
- */ -public class ExpressionToolOutputParameterImpl extends SaveableImpl implements ExpressionToolOutputParameter { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional streamable; - - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - public java.util.Optional getStreamable() { - return this.streamable; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - public Object getFormat() { - return this.format; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * Note that this field just acts as a hint, as the outputs of an - * ExpressionTool process are always considered valid. - * *
- */ - - public Object getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of ExpressionToolOutputParameterImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public ExpressionToolOutputParameterImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("ExpressionToolOutputParameterImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional streamable; - - if (__doc.containsKey("streamable")) { - try { - streamable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - streamable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `streamable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - streamable = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - Object type; - try { - type = - LoaderInstances - .typedsl_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.label = (java.util.Optional) label; - this.secondaryFiles = (Object) secondaryFiles; - this.streamable = (java.util.Optional) streamable; - this.doc = (Object) doc; - this.id = (java.util.Optional) id; - this.format = (Object) format; - this.type = (Object) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ExpressionTool_class.java b/src/main/java/org/w3id/cwl/cwl1_2/ExpressionTool_class.java deleted file mode 100644 index 070f921c..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ExpressionTool_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum ExpressionTool_class { - EXPRESSIONTOOL("ExpressionTool"); - - private static String[] symbols = new String[] {"ExpressionTool"}; - private String docVal; - - private ExpressionTool_class(final String docVal) { - this.docVal = docVal; - } - - public static ExpressionTool_class fromDocumentVal(final String docVal) { - for(final ExpressionTool_class val : ExpressionTool_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", ExpressionTool_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/FieldBase.java b/src/main/java/org/w3id/cwl/cwl1_2/FieldBase.java deleted file mode 100644 index 34829126..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/FieldBase.java +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#FieldBase
- */ -public interface FieldBase extends Labeled, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/File.java b/src/main/java/org/w3id/cwl/cwl1_2/File.java deleted file mode 100644 index 01275ca4..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/File.java +++ /dev/null @@ -1,284 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#File
This interface is implemented by {@link FileImpl}
- Represents a file (or group of files when `secondaryFiles` is provided) that - will be accessible by tools using standard POSIX file system call API such as - open(2) and read(2). - - Files are represented as objects with `class` of `File`. File objects have - a number of properties that provide metadata about the file. - - The `location` property of a File is a IRI that uniquely identifies the - file. Implementations must support the `file://` IRI scheme and may support - other schemes such as `http://` and `https://`. The value of `location` may also be a - relative reference, in which case it must be resolved relative to the IRI - of the document it appears in. Alternately to `location`, implementations - must also accept the `path` property on File, which must be a filesystem - path available on the same host as the CWL runner (for inputs) or the - runtime environment of a command line tool execution (for command line tool - outputs). - - If no `location` or `path` is specified, a file object must specify - `contents` with the UTF-8 text content of the file. This is a "file - literal". File literals do not correspond to external resources, but are - created on disk with `contents` with when needed for executing a tool. - Where appropriate, expressions can return file literals to define new files - on a runtime. The maximum size of `contents` is 64 kilobytes. - - The `basename` property defines the filename on disk where the file is - staged. This may differ from the resource name. If not provided, - `basename` must be computed from the last path part of `location` and made - available to expressions. - - The `secondaryFiles` property is a list of File or Directory objects that - must be staged in the same directory as the primary file. It is an error - for file names to be duplicated in `secondaryFiles`. - - The `size` property is the size in bytes of the File. It must be computed - from the resource and made available to expressions. The `checksum` field - contains a cryptographic hash of the file content for use it verifying file - contents. Implementations may, at user option, enable or disable - computation of the `checksum` field for performance or other reasons. - However, the ability to compute output checksums is required to pass the - CWL conformance test suite. - - When executing a CommandLineTool, the files and secondary files may be - staged to an arbitrary directory, but must use the value of `basename` for - the filename. The `path` property must be file path in the context of the - tool execution runtime (local to the compute node, or within the executing - container). All computed properties should be available to expressions. - File literals also must be staged and `path` must be set. - - When collecting CommandLineTool outputs, `glob` matching returns file paths - (with the `path` property) and the derived properties. This can all be - modified by `outputEval`. Alternately, if the file `cwl.output.json` is - present in the output, `outputBinding` is ignored. - - File objects in the output must provide either a `location` IRI or a `path` - property in the context of the tool execution runtime (local to the compute - node, or within the executing container). - - When evaluating an ExpressionTool, file objects must be referenced via - `location` (the expression tool does not have access to files on disk so - `path` is meaningless) or as file literals. It is legal to return a file - object with an existing `location` but a different `basename`. The - `loadContents` field of ExpressionTool inputs behaves the same as on - CommandLineTool inputs, however it is not meaningful on the outputs. - - An ExpressionTool may forward file references from input to output by using - the same value for `location`. -
- */ -public interface File extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#File/class
- *
- * Must be `File` to indicate this object describes a file. *
- */ - - File_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#File/location
- *
- * An IRI that identifies the file resource. This may be a relative - * reference, in which case it must be resolved using the base IRI of the - * document. The location may refer to a local or remote resource; the - * implementation must use the IRI to retrieve file content. If an - * implementation is unable to retrieve the file content stored at a - * remote resource (due to unsupported protocol, access denied, or other - * issue) it must signal an error. - * - * If the `location` field is not provided, the `contents` field must be - * provided. The implementation must assign a unique identifier for - * the `location` field. - * - * If the `path` field is provided but the `location` field is not, an - * implementation may assign the value of the `path` field to `location`, - * then follow the rules above. - * *
- */ - - java.util.Optional getLocation(); - /** - * Getter for property https://w3id.org/cwl/cwl#path
- *
- * The local host path where the File is available when a CommandLineTool is - * executed. This field must be set by the implementation. The final - * path component must match the value of `basename`. This field - * must not be used in any other context. The command line tool being - * executed must be able to access the file at `path` using the POSIX - * `open(2)` syscall. - * - * As a special case, if the `path` field is provided but the `location` - * field is not, an implementation may assign the value of the `path` - * field to `location`, and remove the `path` field. - * - * If the `path` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02) - * (`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`, - * ``, ``, and ``) or characters - * [not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml) - * for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452) - * then implementations may terminate the process with a - * `permanentFailure`. - * *
- */ - - java.util.Optional getPath(); - /** - * Getter for property https://w3id.org/cwl/cwl#File/basename
- *
- * The base name of the file, that is, the name of the file without any - * leading directory path. The base name must not contain a slash `/`. - * - * If not provided, the implementation must set this field based on the - * `location` field by taking the final path component after parsing - * `location` as an IRI. If `basename` is provided, it is not required to - * match the value from `location`. - * - * When this file is made available to a CommandLineTool, it must be named - * with `basename`, i.e. the final component of the `path` field must match - * `basename`. - * *
- */ - - java.util.Optional getBasename(); - /** - * Getter for property https://w3id.org/cwl/cwl#File/dirname
- *
- * The name of the directory containing file, that is, the path leading up - * to the final slash in the path such that `dirname + '/' + basename == - * path`. - * - * The implementation must set this field based on the value of `path` - * prior to evaluating parameter references or expressions in a - * CommandLineTool document. This field must not be used in any other - * context. - * *
- */ - - java.util.Optional getDirname(); - /** - * Getter for property https://w3id.org/cwl/cwl#File/nameroot
- *
- * The basename root such that `nameroot + nameext == basename`, and - * `nameext` is empty or begins with a period and contains at most one - * period. For the purposes of path splitting leading periods on the - * basename are ignored; a basename of `.cshrc` will have a nameroot of - * `.cshrc`. - * - * The implementation must set this field automatically based on the value - * of `basename` prior to evaluating parameter references or expressions. - * *
- */ - - java.util.Optional getNameroot(); - /** - * Getter for property https://w3id.org/cwl/cwl#File/nameext
- *
- * The basename extension such that `nameroot + nameext == basename`, and - * `nameext` is empty or begins with a period and contains at most one - * period. Leading periods on the basename are ignored; a basename of - * `.cshrc` will have an empty `nameext`. - * - * The implementation must set this field automatically based on the value - * of `basename` prior to evaluating parameter references or expressions. - * *
- */ - - java.util.Optional getNameext(); - /** - * Getter for property https://w3id.org/cwl/cwl#File/checksum
- *
- * Optional hash code for validating file integrity. Currently, must be in the form - * "sha1$ + hexadecimal string" using the SHA-1 algorithm. - * *
- */ - - java.util.Optional getChecksum(); - /** - * Getter for property https://w3id.org/cwl/cwl#File/size
- *
- * Optional file size (in bytes) *
- */ - - Object getSize(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * A list of additional files or directories that are associated with the - * primary file and must be transferred alongside the primary file. - * Examples include indexes of the primary file, or external references - * which must be included when loading primary document. A file object - * listed in `secondaryFiles` may itself include `secondaryFiles` for - * which the same rules apply. - * *
- */ - - java.util.Optional> getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * The format of the file: this must be an IRI of a concept node that - * represents the file format, preferably defined within an ontology. - * If no ontology is available, file formats may be tested by exact match. - * - * Reasoning about format compatibility must be done by checking that an - * input file format is the same, `owl:equivalentClass` or - * `rdfs:subClassOf` the format required by the input parameter. - * `owl:equivalentClass` is transitive with `rdfs:subClassOf`, e.g. if - * ` owl:equivalentClass ` and ` owl:subclassOf ` then infer - * ` owl:subclassOf `. - * - * File format ontologies may be provided in the "$schemas" metadata at the - * root of the document. If no ontologies are specified in `$schemas`, the - * runtime may perform exact file format matches. - * *
- */ - - java.util.Optional getFormat(); - /** - * Getter for property https://w3id.org/cwl/cwl#File/contents
- *
- * File contents literal. - * - * If neither `location` nor `path` is provided, `contents` must be - * non-null. The implementation must assign a unique identifier for the - * `location` field. When the file is staged as input to CommandLineTool, - * the value of `contents` must be written to a file. - * - * If `contents` is set as a result of a Javascript expression, - * an `entry` in `InitialWorkDirRequirement`, or read in from - * `cwl.output.json`, there is no specified upper limit on the - * size of `contents`. Implementations may have practical limits - * on the size of `contents` based on memory and storage - * available to the workflow runner or other factors. - * - * If the `loadContents` field of an `InputParameter` or - * `OutputParameter` is true, and the input or output File object - * `location` is valid, the file must be a UTF-8 text file 64 KiB - * or smaller, and the implementation must read the entire - * contents of the file and place it in the `contents` field. If - * the size of the file is greater than 64 KiB, the - * implementation must raise a fatal error. - * *
- */ - - java.util.Optional getContents(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/FileImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/FileImpl.java deleted file mode 100644 index bd0d3003..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/FileImpl.java +++ /dev/null @@ -1,599 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#File
- Represents a file (or group of files when `secondaryFiles` is provided) that - will be accessible by tools using standard POSIX file system call API such as - open(2) and read(2). - - Files are represented as objects with `class` of `File`. File objects have - a number of properties that provide metadata about the file. - - The `location` property of a File is a IRI that uniquely identifies the - file. Implementations must support the `file://` IRI scheme and may support - other schemes such as `http://` and `https://`. The value of `location` may also be a - relative reference, in which case it must be resolved relative to the IRI - of the document it appears in. Alternately to `location`, implementations - must also accept the `path` property on File, which must be a filesystem - path available on the same host as the CWL runner (for inputs) or the - runtime environment of a command line tool execution (for command line tool - outputs). - - If no `location` or `path` is specified, a file object must specify - `contents` with the UTF-8 text content of the file. This is a "file - literal". File literals do not correspond to external resources, but are - created on disk with `contents` with when needed for executing a tool. - Where appropriate, expressions can return file literals to define new files - on a runtime. The maximum size of `contents` is 64 kilobytes. - - The `basename` property defines the filename on disk where the file is - staged. This may differ from the resource name. If not provided, - `basename` must be computed from the last path part of `location` and made - available to expressions. - - The `secondaryFiles` property is a list of File or Directory objects that - must be staged in the same directory as the primary file. It is an error - for file names to be duplicated in `secondaryFiles`. - - The `size` property is the size in bytes of the File. It must be computed - from the resource and made available to expressions. The `checksum` field - contains a cryptographic hash of the file content for use it verifying file - contents. Implementations may, at user option, enable or disable - computation of the `checksum` field for performance or other reasons. - However, the ability to compute output checksums is required to pass the - CWL conformance test suite. - - When executing a CommandLineTool, the files and secondary files may be - staged to an arbitrary directory, but must use the value of `basename` for - the filename. The `path` property must be file path in the context of the - tool execution runtime (local to the compute node, or within the executing - container). All computed properties should be available to expressions. - File literals also must be staged and `path` must be set. - - When collecting CommandLineTool outputs, `glob` matching returns file paths - (with the `path` property) and the derived properties. This can all be - modified by `outputEval`. Alternately, if the file `cwl.output.json` is - present in the output, `outputBinding` is ignored. - - File objects in the output must provide either a `location` IRI or a `path` - property in the context of the tool execution runtime (local to the compute - node, or within the executing container). - - When evaluating an ExpressionTool, file objects must be referenced via - `location` (the expression tool does not have access to files on disk so - `path` is meaningless) or as file literals. It is legal to return a file - object with an existing `location` but a different `basename`. The - `loadContents` field of ExpressionTool inputs behaves the same as on - CommandLineTool inputs, however it is not meaningful on the outputs. - - An ExpressionTool may forward file references from input to output by using - the same value for `location`. -
- */ -public class FileImpl extends SaveableImpl implements File { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private File_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#File/class
- *
- * Must be `File` to indicate this object describes a file. *
- */ - - public File_class getClass_() { - return this.class_; - } - - private java.util.Optional location; - - /** - * Getter for property https://w3id.org/cwl/cwl#File/location
- *
- * An IRI that identifies the file resource. This may be a relative - * reference, in which case it must be resolved using the base IRI of the - * document. The location may refer to a local or remote resource; the - * implementation must use the IRI to retrieve file content. If an - * implementation is unable to retrieve the file content stored at a - * remote resource (due to unsupported protocol, access denied, or other - * issue) it must signal an error. - * - * If the `location` field is not provided, the `contents` field must be - * provided. The implementation must assign a unique identifier for - * the `location` field. - * - * If the `path` field is provided but the `location` field is not, an - * implementation may assign the value of the `path` field to `location`, - * then follow the rules above. - * *
- */ - - public java.util.Optional getLocation() { - return this.location; - } - - private java.util.Optional path; - - /** - * Getter for property https://w3id.org/cwl/cwl#path
- *
- * The local host path where the File is available when a CommandLineTool is - * executed. This field must be set by the implementation. The final - * path component must match the value of `basename`. This field - * must not be used in any other context. The command line tool being - * executed must be able to access the file at `path` using the POSIX - * `open(2)` syscall. - * - * As a special case, if the `path` field is provided but the `location` - * field is not, an implementation may assign the value of the `path` - * field to `location`, and remove the `path` field. - * - * If the `path` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02) - * (`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`, - * ``, ``, and ``) or characters - * [not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml) - * for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452) - * then implementations may terminate the process with a - * `permanentFailure`. - * *
- */ - - public java.util.Optional getPath() { - return this.path; - } - - private java.util.Optional basename; - - /** - * Getter for property https://w3id.org/cwl/cwl#File/basename
- *
- * The base name of the file, that is, the name of the file without any - * leading directory path. The base name must not contain a slash `/`. - * - * If not provided, the implementation must set this field based on the - * `location` field by taking the final path component after parsing - * `location` as an IRI. If `basename` is provided, it is not required to - * match the value from `location`. - * - * When this file is made available to a CommandLineTool, it must be named - * with `basename`, i.e. the final component of the `path` field must match - * `basename`. - * *
- */ - - public java.util.Optional getBasename() { - return this.basename; - } - - private java.util.Optional dirname; - - /** - * Getter for property https://w3id.org/cwl/cwl#File/dirname
- *
- * The name of the directory containing file, that is, the path leading up - * to the final slash in the path such that `dirname + '/' + basename == - * path`. - * - * The implementation must set this field based on the value of `path` - * prior to evaluating parameter references or expressions in a - * CommandLineTool document. This field must not be used in any other - * context. - * *
- */ - - public java.util.Optional getDirname() { - return this.dirname; - } - - private java.util.Optional nameroot; - - /** - * Getter for property https://w3id.org/cwl/cwl#File/nameroot
- *
- * The basename root such that `nameroot + nameext == basename`, and - * `nameext` is empty or begins with a period and contains at most one - * period. For the purposes of path splitting leading periods on the - * basename are ignored; a basename of `.cshrc` will have a nameroot of - * `.cshrc`. - * - * The implementation must set this field automatically based on the value - * of `basename` prior to evaluating parameter references or expressions. - * *
- */ - - public java.util.Optional getNameroot() { - return this.nameroot; - } - - private java.util.Optional nameext; - - /** - * Getter for property https://w3id.org/cwl/cwl#File/nameext
- *
- * The basename extension such that `nameroot + nameext == basename`, and - * `nameext` is empty or begins with a period and contains at most one - * period. Leading periods on the basename are ignored; a basename of - * `.cshrc` will have an empty `nameext`. - * - * The implementation must set this field automatically based on the value - * of `basename` prior to evaluating parameter references or expressions. - * *
- */ - - public java.util.Optional getNameext() { - return this.nameext; - } - - private java.util.Optional checksum; - - /** - * Getter for property https://w3id.org/cwl/cwl#File/checksum
- *
- * Optional hash code for validating file integrity. Currently, must be in the form - * "sha1$ + hexadecimal string" using the SHA-1 algorithm. - * *
- */ - - public java.util.Optional getChecksum() { - return this.checksum; - } - - private Object size; - - /** - * Getter for property https://w3id.org/cwl/cwl#File/size
- *
- * Optional file size (in bytes) *
- */ - - public Object getSize() { - return this.size; - } - - private java.util.Optional> secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * A list of additional files or directories that are associated with the - * primary file and must be transferred alongside the primary file. - * Examples include indexes of the primary file, or external references - * which must be included when loading primary document. A file object - * listed in `secondaryFiles` may itself include `secondaryFiles` for - * which the same rules apply. - * *
- */ - - public java.util.Optional> getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * The format of the file: this must be an IRI of a concept node that - * represents the file format, preferably defined within an ontology. - * If no ontology is available, file formats may be tested by exact match. - * - * Reasoning about format compatibility must be done by checking that an - * input file format is the same, `owl:equivalentClass` or - * `rdfs:subClassOf` the format required by the input parameter. - * `owl:equivalentClass` is transitive with `rdfs:subClassOf`, e.g. if - * ` owl:equivalentClass ` and ` owl:subclassOf ` then infer - * ` owl:subclassOf `. - * - * File format ontologies may be provided in the "$schemas" metadata at the - * root of the document. If no ontologies are specified in `$schemas`, the - * runtime may perform exact file format matches. - * *
- */ - - public java.util.Optional getFormat() { - return this.format; - } - - private java.util.Optional contents; - - /** - * Getter for property https://w3id.org/cwl/cwl#File/contents
- *
- * File contents literal. - * - * If neither `location` nor `path` is provided, `contents` must be - * non-null. The implementation must assign a unique identifier for the - * `location` field. When the file is staged as input to CommandLineTool, - * the value of `contents` must be written to a file. - * - * If `contents` is set as a result of a Javascript expression, - * an `entry` in `InitialWorkDirRequirement`, or read in from - * `cwl.output.json`, there is no specified upper limit on the - * size of `contents`. Implementations may have practical limits - * on the size of `contents` based on memory and storage - * available to the workflow runner or other factors. - * - * If the `loadContents` field of an `InputParameter` or - * `OutputParameter` is true, and the input or output File object - * `location` is valid, the file must be a UTF-8 text file 64 KiB - * or smaller, and the implementation must read the entire - * contents of the file and place it in the `contents` field. If - * the size of the file is greater than 64 KiB, the - * implementation must raise a fatal error. - * *
- */ - - public java.util.Optional getContents() { - return this.contents; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of FileImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public FileImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("FileImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - File_class class_; - try { - class_ = - LoaderInstances - .uri_File_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional location; - - if (__doc.containsKey("location")) { - try { - location = - LoaderInstances - .uri_optional_StringInstance_False_False_None_None - .loadField(__doc.get("location"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - location = null; // won't be used but prevents compiler from complaining. - final String __message = "the `location` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - location = null; - } - java.util.Optional path; - - if (__doc.containsKey("path")) { - try { - path = - LoaderInstances - .uri_optional_StringInstance_False_False_None_None - .loadField(__doc.get("path"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - path = null; // won't be used but prevents compiler from complaining. - final String __message = "the `path` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - path = null; - } - java.util.Optional basename; - - if (__doc.containsKey("basename")) { - try { - basename = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("basename"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - basename = null; // won't be used but prevents compiler from complaining. - final String __message = "the `basename` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - basename = null; - } - java.util.Optional dirname; - - if (__doc.containsKey("dirname")) { - try { - dirname = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("dirname"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - dirname = null; // won't be used but prevents compiler from complaining. - final String __message = "the `dirname` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - dirname = null; - } - java.util.Optional nameroot; - - if (__doc.containsKey("nameroot")) { - try { - nameroot = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("nameroot"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - nameroot = null; // won't be used but prevents compiler from complaining. - final String __message = "the `nameroot` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - nameroot = null; - } - java.util.Optional nameext; - - if (__doc.containsKey("nameext")) { - try { - nameext = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("nameext"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - nameext = null; // won't be used but prevents compiler from complaining. - final String __message = "the `nameext` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - nameext = null; - } - java.util.Optional checksum; - - if (__doc.containsKey("checksum")) { - try { - checksum = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("checksum"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - checksum = null; // won't be used but prevents compiler from complaining. - final String __message = "the `checksum` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - checksum = null; - } - Object size; - - if (__doc.containsKey("size")) { - try { - size = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_LongInstance - .loadField(__doc.get("size"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - size = null; // won't be used but prevents compiler from complaining. - final String __message = "the `size` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - size = null; - } - java.util.Optional> secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_optional_array_of_union_of_File_or_Directory - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_optional_StringInstance_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - java.util.Optional contents; - - if (__doc.containsKey("contents")) { - try { - contents = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("contents"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - contents = null; // won't be used but prevents compiler from complaining. - final String __message = "the `contents` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - contents = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (File_class) class_; - this.location = (java.util.Optional) location; - this.path = (java.util.Optional) path; - this.basename = (java.util.Optional) basename; - this.dirname = (java.util.Optional) dirname; - this.nameroot = (java.util.Optional) nameroot; - this.nameext = (java.util.Optional) nameext; - this.checksum = (java.util.Optional) checksum; - this.size = (Object) size; - this.secondaryFiles = (java.util.Optional>) secondaryFiles; - this.format = (java.util.Optional) format; - this.contents = (java.util.Optional) contents; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/File_class.java b/src/main/java/org/w3id/cwl/cwl1_2/File_class.java deleted file mode 100644 index 0bf42204..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/File_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum File_class { - FILE("File"); - - private static String[] symbols = new String[] {"File"}; - private String docVal; - - private File_class(final String docVal) { - this.docVal = docVal; - } - - public static File_class fromDocumentVal(final String docVal) { - for(final File_class val : File_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", File_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/IOSchema.java b/src/main/java/org/w3id/cwl/cwl1_2/IOSchema.java deleted file mode 100644 index c6324d88..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/IOSchema.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#IOSchema
- */ -public interface IOSchema extends Labeled, Documented, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Identified.java b/src/main/java/org/w3id/cwl/cwl1_2/Identified.java deleted file mode 100644 index 1f28ce96..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/Identified.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#Identified
- */ -public interface Identified extends Saveable { -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InitialWorkDirRequirement.java b/src/main/java/org/w3id/cwl/cwl1_2/InitialWorkDirRequirement.java deleted file mode 100644 index 8d23446b..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InitialWorkDirRequirement.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InitialWorkDirRequirement
This interface is implemented by {@link InitialWorkDirRequirementImpl}
- Define a list of files and subdirectories that must be staged by the workflow platform prior to executing the command line tool. - Normally files are staged within the designated output directory. However, when running inside containers, files may be staged at arbitrary locations, see discussion for [`Dirent.entryname`](#Dirent). Together with `DockerRequirement.dockerOutputDirectory` it is possible to control the locations of both input and output files when running in containers.
- */ -public interface InitialWorkDirRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#InitialWorkDirRequirement/class
- *
- * InitialWorkDirRequirement *
- */ - - InitialWorkDirRequirement_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#listing
- *
- * The list of files or subdirectories that must be staged prior - * to executing the command line tool. - * - * Return type of each expression must validate as `["null", - * File, Directory, Dirent, {type: array, items: [File, - * Directory]}]`. - * - * Each `File` or `Directory` that is returned by an Expression - * must be added to the designated output directory prior to - * executing the tool. - * - * Each `Dirent` record that is listed or returned by an - * expression specifies a file to be created or staged in the - * designated output directory prior to executing the tool. - * - * Expressions may return null, in which case they have no effect. - * - * Files or Directories which are listed in the input parameters - * and appear in the `InitialWorkDirRequirement` listing must - * have their `path` set to their staged location. If the same - * File or Directory appears more than once in the - * `InitialWorkDirRequirement` listing, the implementation must - * choose exactly one value for `path`; how this value is chosen - * is undefined. - * *
- */ - - Object getListing(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InitialWorkDirRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/InitialWorkDirRequirementImpl.java deleted file mode 100644 index 41e0c28d..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InitialWorkDirRequirementImpl.java +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#InitialWorkDirRequirement
- Define a list of files and subdirectories that must be staged by the workflow platform prior to executing the command line tool. - Normally files are staged within the designated output directory. However, when running inside containers, files may be staged at arbitrary locations, see discussion for [`Dirent.entryname`](#Dirent). Together with `DockerRequirement.dockerOutputDirectory` it is possible to control the locations of both input and output files when running in containers.
- */ -public class InitialWorkDirRequirementImpl extends SaveableImpl implements InitialWorkDirRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private InitialWorkDirRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#InitialWorkDirRequirement/class
- *
- * InitialWorkDirRequirement *
- */ - - public InitialWorkDirRequirement_class getClass_() { - return this.class_; - } - - private Object listing; - - /** - * Getter for property https://w3id.org/cwl/cwl#listing
- *
- * The list of files or subdirectories that must be staged prior - * to executing the command line tool. - * - * Return type of each expression must validate as `["null", - * File, Directory, Dirent, {type: array, items: [File, - * Directory]}]`. - * - * Each `File` or `Directory` that is returned by an Expression - * must be added to the designated output directory prior to - * executing the tool. - * - * Each `Dirent` record that is listed or returned by an - * expression specifies a file to be created or staged in the - * designated output directory prior to executing the tool. - * - * Expressions may return null, in which case they have no effect. - * - * Files or Directories which are listed in the input parameters - * and appear in the `InitialWorkDirRequirement` listing must - * have their `path` set to their staged location. If the same - * File or Directory appears more than once in the - * `InitialWorkDirRequirement` listing, the implementation must - * choose exactly one value for `path`; how this value is chosen - * is undefined. - * *
- */ - - public Object getListing() { - return this.listing; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of InitialWorkDirRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public InitialWorkDirRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("InitialWorkDirRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - InitialWorkDirRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_InitialWorkDirRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Object listing; - try { - listing = - LoaderInstances - .union_of_ExpressionLoader_or_array_of_union_of_NullInstance_or_Dirent_or_ExpressionLoader_or_File_or_Directory_or_array_of_union_of_File_or_Directory - .loadField(__doc.get("listing"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - listing = null; // won't be used but prevents compiler from complaining. - final String __message = "the `listing` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (InitialWorkDirRequirement_class) class_; - this.listing = (Object) listing; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InitialWorkDirRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_2/InitialWorkDirRequirement_class.java deleted file mode 100644 index 8f61ec7f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InitialWorkDirRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum InitialWorkDirRequirement_class { - INITIALWORKDIRREQUIREMENT("InitialWorkDirRequirement"); - - private static String[] symbols = new String[] {"InitialWorkDirRequirement"}; - private String docVal; - - private InitialWorkDirRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static InitialWorkDirRequirement_class fromDocumentVal(final String docVal) { - for(final InitialWorkDirRequirement_class val : InitialWorkDirRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", InitialWorkDirRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InlineJavascriptRequirement.java b/src/main/java/org/w3id/cwl/cwl1_2/InlineJavascriptRequirement.java deleted file mode 100644 index b7743b8b..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InlineJavascriptRequirement.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InlineJavascriptRequirement
This interface is implemented by {@link InlineJavascriptRequirementImpl}
- Indicates that the workflow platform must support inline Javascript expressions. - If this requirement is not present, the workflow platform must not perform expression - interpolation. -
- */ -public interface InlineJavascriptRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#InlineJavascriptRequirement/class
- *
- * Always 'InlineJavascriptRequirement' *
- */ - - InlineJavascriptRequirement_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#InlineJavascriptRequirement/expressionLib
- *
- * Additional code fragments that will also be inserted - * before executing the expression code. Allows for function definitions that may - * be called from CWL expressions. - * *
- */ - - java.util.Optional> getExpressionLib(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InlineJavascriptRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/InlineJavascriptRequirementImpl.java deleted file mode 100644 index 4eae1497..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InlineJavascriptRequirementImpl.java +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#InlineJavascriptRequirement
- Indicates that the workflow platform must support inline Javascript expressions. - If this requirement is not present, the workflow platform must not perform expression - interpolation. -
- */ -public class InlineJavascriptRequirementImpl extends SaveableImpl implements InlineJavascriptRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private InlineJavascriptRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#InlineJavascriptRequirement/class
- *
- * Always 'InlineJavascriptRequirement' *
- */ - - public InlineJavascriptRequirement_class getClass_() { - return this.class_; - } - - private java.util.Optional> expressionLib; - - /** - * Getter for property https://w3id.org/cwl/cwl#InlineJavascriptRequirement/expressionLib
- *
- * Additional code fragments that will also be inserted - * before executing the expression code. Allows for function definitions that may - * be called from CWL expressions. - * *
- */ - - public java.util.Optional> getExpressionLib() { - return this.expressionLib; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of InlineJavascriptRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public InlineJavascriptRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("InlineJavascriptRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - InlineJavascriptRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_InlineJavascriptRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional> expressionLib; - - if (__doc.containsKey("expressionLib")) { - try { - expressionLib = - LoaderInstances - .optional_array_of_StringInstance - .loadField(__doc.get("expressionLib"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - expressionLib = null; // won't be used but prevents compiler from complaining. - final String __message = "the `expressionLib` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - expressionLib = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (InlineJavascriptRequirement_class) class_; - this.expressionLib = (java.util.Optional>) expressionLib; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InlineJavascriptRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_2/InlineJavascriptRequirement_class.java deleted file mode 100644 index 15c5fb9a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InlineJavascriptRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum InlineJavascriptRequirement_class { - INLINEJAVASCRIPTREQUIREMENT("InlineJavascriptRequirement"); - - private static String[] symbols = new String[] {"InlineJavascriptRequirement"}; - private String docVal; - - private InlineJavascriptRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static InlineJavascriptRequirement_class fromDocumentVal(final String docVal) { - for(final InlineJavascriptRequirement_class val : InlineJavascriptRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", InlineJavascriptRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InplaceUpdateRequirement.java b/src/main/java/org/w3id/cwl/cwl1_2/InplaceUpdateRequirement.java deleted file mode 100644 index 335bbef9..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InplaceUpdateRequirement.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InplaceUpdateRequirement
This interface is implemented by {@link InplaceUpdateRequirementImpl}
- - If `inplaceUpdate` is true, then an implementation supporting this - feature may permit tools to directly update files with `writable: - true` in InitialWorkDirRequirement. That is, as an optimization, - files may be destructively modified in place as opposed to copied - and updated. - - An implementation must ensure that only one workflow step may - access a writable file at a time. It is an error if a file which - is writable by one workflow step file is accessed (for reading or - writing) by any other workflow step running independently. - However, a file which has been updated in a previous completed - step may be used as input to multiple steps, provided it is - read-only in every step. - - Workflow steps which modify a file must produce the modified file - as output. Downstream steps which further process the file must - use the output of previous steps, and not refer to a common input - (this is necessary for both ordering and correctness). - - Workflow authors should provide this in the `hints` section. The - intent of this feature is that workflows produce the same results - whether or not InplaceUpdateRequirement is supported by the - implementation, and this feature is primarily available as an - optimization for particular environments. - - Users and implementers should be aware that workflows that - destructively modify inputs may not be repeatable or reproducible. - In particular, enabling this feature implies that WorkReuse should - not be enabled. -
- */ -public interface InplaceUpdateRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#InplaceUpdateRequirement/class
- *
- * Always 'InplaceUpdateRequirement' *
- */ - - InplaceUpdateRequirement_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#InplaceUpdateRequirement/inplaceUpdate
- - */ - - Boolean getInplaceUpdate(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InplaceUpdateRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/InplaceUpdateRequirementImpl.java deleted file mode 100644 index 913969a9..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InplaceUpdateRequirementImpl.java +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#InplaceUpdateRequirement
- - If `inplaceUpdate` is true, then an implementation supporting this - feature may permit tools to directly update files with `writable: - true` in InitialWorkDirRequirement. That is, as an optimization, - files may be destructively modified in place as opposed to copied - and updated. - - An implementation must ensure that only one workflow step may - access a writable file at a time. It is an error if a file which - is writable by one workflow step file is accessed (for reading or - writing) by any other workflow step running independently. - However, a file which has been updated in a previous completed - step may be used as input to multiple steps, provided it is - read-only in every step. - - Workflow steps which modify a file must produce the modified file - as output. Downstream steps which further process the file must - use the output of previous steps, and not refer to a common input - (this is necessary for both ordering and correctness). - - Workflow authors should provide this in the `hints` section. The - intent of this feature is that workflows produce the same results - whether or not InplaceUpdateRequirement is supported by the - implementation, and this feature is primarily available as an - optimization for particular environments. - - Users and implementers should be aware that workflows that - destructively modify inputs may not be repeatable or reproducible. - In particular, enabling this feature implies that WorkReuse should - not be enabled. -
- */ -public class InplaceUpdateRequirementImpl extends SaveableImpl implements InplaceUpdateRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private InplaceUpdateRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#InplaceUpdateRequirement/class
- *
- * Always 'InplaceUpdateRequirement' *
- */ - - public InplaceUpdateRequirement_class getClass_() { - return this.class_; - } - - private Boolean inplaceUpdate; - - /** - * Getter for property https://w3id.org/cwl/cwl#InplaceUpdateRequirement/inplaceUpdate
- - */ - - public Boolean getInplaceUpdate() { - return this.inplaceUpdate; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of InplaceUpdateRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public InplaceUpdateRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("InplaceUpdateRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - InplaceUpdateRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_InplaceUpdateRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Boolean inplaceUpdate; - try { - inplaceUpdate = - LoaderInstances - .BooleanInstance - .loadField(__doc.get("inplaceUpdate"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inplaceUpdate = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inplaceUpdate` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (InplaceUpdateRequirement_class) class_; - this.inplaceUpdate = (Boolean) inplaceUpdate; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InplaceUpdateRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_2/InplaceUpdateRequirement_class.java deleted file mode 100644 index f467a741..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InplaceUpdateRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum InplaceUpdateRequirement_class { - INPLACEUPDATEREQUIREMENT("InplaceUpdateRequirement"); - - private static String[] symbols = new String[] {"InplaceUpdateRequirement"}; - private String docVal; - - private InplaceUpdateRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static InplaceUpdateRequirement_class fromDocumentVal(final String docVal) { - for(final InplaceUpdateRequirement_class val : InplaceUpdateRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", InplaceUpdateRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InputArraySchema.java b/src/main/java/org/w3id/cwl/cwl1_2/InputArraySchema.java deleted file mode 100644 index f18c972c..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InputArraySchema.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InputArraySchema
This interface is implemented by {@link InputArraySchemaImpl}
- */ -public interface InputArraySchema extends CWLArraySchema, InputSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - Object getItems(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - Array_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InputArraySchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/InputArraySchemaImpl.java deleted file mode 100644 index bad7ae72..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InputArraySchemaImpl.java +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputArraySchema
- */ -public class InputArraySchemaImpl extends SaveableImpl implements InputArraySchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private Object items; - - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - public Object getItems() { - return this.items; - } - - private Array_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - public Array_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of InputArraySchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public InputArraySchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("InputArraySchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - Object items; - try { - items = - LoaderInstances - .uri_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_False_True_2_None - .loadField(__doc.get("items"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - items = null; // won't be used but prevents compiler from complaining. - final String __message = "the `items` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Array_name type; - try { - type = - LoaderInstances - .typedsl_Array_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.items = (Object) items; - this.type = (Array_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.name = (java.util.Optional) name; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InputBinding.java b/src/main/java/org/w3id/cwl/cwl1_2/InputBinding.java deleted file mode 100644 index 7124d070..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InputBinding.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InputBinding
This interface is implemented by {@link InputBindingImpl}
- */ -public interface InputBinding extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#InputBinding/loadContents
- *
- * Use of `loadContents` in `InputBinding` is deprecated. - * Preserved for v1.0 backwards compatibility. Will be removed in - * CWL v2.0. Use `InputParameter.loadContents` instead. - * *
- */ - - java.util.Optional getLoadContents(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InputBindingImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/InputBindingImpl.java deleted file mode 100644 index 33d651bd..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InputBindingImpl.java +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputBinding
- */ -public class InputBindingImpl extends SaveableImpl implements InputBinding { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional loadContents; - - /** - * Getter for property https://w3id.org/cwl/cwl#InputBinding/loadContents
- *
- * Use of `loadContents` in `InputBinding` is deprecated. - * Preserved for v1.0 backwards compatibility. Will be removed in - * CWL v2.0. Use `InputParameter.loadContents` instead. - * *
- */ - - public java.util.Optional getLoadContents() { - return this.loadContents; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of InputBindingImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public InputBindingImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("InputBindingImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional loadContents; - - if (__doc.containsKey("loadContents")) { - try { - loadContents = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadContents = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadContents` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadContents = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.loadContents = (java.util.Optional) loadContents; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InputEnumSchema.java b/src/main/java/org/w3id/cwl/cwl1_2/InputEnumSchema.java deleted file mode 100644 index 9fbf9b58..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InputEnumSchema.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InputEnumSchema
This interface is implemented by {@link InputEnumSchemaImpl}
- */ -public interface InputEnumSchema extends EnumSchema, InputSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - java.util.List getSymbols(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - Enum_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InputEnumSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/InputEnumSchemaImpl.java deleted file mode 100644 index 6a4a7bae..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InputEnumSchemaImpl.java +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputEnumSchema
- */ -public class InputEnumSchemaImpl extends SaveableImpl implements InputEnumSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private java.util.List symbols; - - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - public java.util.List getSymbols() { - return this.symbols; - } - - private Enum_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - public Enum_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of InputEnumSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public InputEnumSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("InputEnumSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - java.util.List symbols; - try { - symbols = - LoaderInstances - .uri_array_of_StringInstance_True_False_None_None - .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - symbols = null; // won't be used but prevents compiler from complaining. - final String __message = "the `symbols` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Enum_name type; - try { - type = - LoaderInstances - .typedsl_Enum_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.name = (java.util.Optional) name; - this.symbols = (java.util.List) symbols; - this.type = (Enum_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InputFormat.java b/src/main/java/org/w3id/cwl/cwl1_2/InputFormat.java deleted file mode 100644 index 6990e448..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InputFormat.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InputFormat
- */ -public interface InputFormat extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - Object getFormat(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InputParameter.java b/src/main/java/org/w3id/cwl/cwl1_2/InputParameter.java deleted file mode 100644 index f0a737c9..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InputParameter.java +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InputParameter
- */ -public interface InputParameter extends Parameter, InputFormat, LoadContents, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - Object getFormat(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * If true, the file (or each file in the array) must be a UTF-8 - * text file 64 KiB or smaller, and the implementation must read - * the entire contents of the file (or file array) and place it - * in the `contents` field of the File object for use by - * expressions. If the size of the file is greater than 64 KiB, - * the implementation must raise a fatal error. - * *
- */ - - java.util.Optional getLoadContents(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - java.util.Optional getLoadListing(); - /** - * Getter for property https://w3id.org/cwl/salad#default
- *
- * The default value to use for this parameter if the parameter is missing - * from the input object, or if the value of the parameter in the input - * object is `null`. Default values are applied before evaluating expressions - * (e.g. dependent `valueFrom` fields). - * *
- */ - - java.util.Optional getDefault(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InputRecordField.java b/src/main/java/org/w3id/cwl/cwl1_2/InputRecordField.java deleted file mode 100644 index 23fcfef2..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InputRecordField.java +++ /dev/null @@ -1,159 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InputRecordField
This interface is implemented by {@link InputRecordFieldImpl}
- */ -public interface InputRecordField extends CWLRecordField, FieldBase, InputFormat, LoadContents, Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - String getName(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - Object getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - Object getFormat(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * If true, the file (or each file in the array) must be a UTF-8 - * text file 64 KiB or smaller, and the implementation must read - * the entire contents of the file (or file array) and place it - * in the `contents` field of the File object for use by - * expressions. If the size of the file is greater than 64 KiB, - * the implementation must raise a fatal error. - * *
- */ - - java.util.Optional getLoadContents(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - java.util.Optional getLoadListing(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InputRecordFieldImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/InputRecordFieldImpl.java deleted file mode 100644 index 14a965d0..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InputRecordFieldImpl.java +++ /dev/null @@ -1,414 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputRecordField
- */ -public class InputRecordFieldImpl extends SaveableImpl implements InputRecordField { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private String name; - - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - public String getName() { - return this.name; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - public Object getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional streamable; - - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - public java.util.Optional getStreamable() { - return this.streamable; - } - - private Object format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - public Object getFormat() { - return this.format; - } - - private java.util.Optional loadContents; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * If true, the file (or each file in the array) must be a UTF-8 - * text file 64 KiB or smaller, and the implementation must read - * the entire contents of the file (or file array) and place it - * in the `contents` field of the File object for use by - * expressions. If the size of the file is greater than 64 KiB, - * the implementation must raise a fatal error. - * *
- */ - - public java.util.Optional getLoadContents() { - return this.loadContents; - } - - private java.util.Optional loadListing; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - public java.util.Optional getLoadListing() { - return this.loadListing; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of InputRecordFieldImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public InputRecordFieldImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("InputRecordFieldImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - String name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - if (name == null) { - if (__docRoot != null) { - name = __docRoot; - } else { - throw new ValidationException("Missing name"); - } - } - __baseUri = (String) name; - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object type; - try { - type = - LoaderInstances - .typedsl_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional streamable; - - if (__doc.containsKey("streamable")) { - try { - streamable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - streamable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `streamable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - streamable = null; - } - Object format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - java.util.Optional loadContents; - - if (__doc.containsKey("loadContents")) { - try { - loadContents = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadContents = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadContents` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadContents = null; - } - java.util.Optional loadListing; - - if (__doc.containsKey("loadListing")) { - try { - loadListing = - LoaderInstances - .optional_LoadListingEnum - .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadListing = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadListing` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadListing = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.doc = (Object) doc; - this.name = (String) name; - this.type = (Object) type; - this.label = (java.util.Optional) label; - this.secondaryFiles = (Object) secondaryFiles; - this.streamable = (java.util.Optional) streamable; - this.format = (Object) format; - this.loadContents = (java.util.Optional) loadContents; - this.loadListing = (java.util.Optional) loadListing; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InputRecordSchema.java b/src/main/java/org/w3id/cwl/cwl1_2/InputRecordSchema.java deleted file mode 100644 index 815d6b68..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InputRecordSchema.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InputRecordSchema
This interface is implemented by {@link InputRecordSchemaImpl}
- */ -public interface InputRecordSchema extends CWLRecordSchema, InputSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - java.util.Optional> getFields(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - Record_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InputRecordSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/InputRecordSchemaImpl.java deleted file mode 100644 index edc5181b..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InputRecordSchemaImpl.java +++ /dev/null @@ -1,226 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#InputRecordSchema
- */ -public class InputRecordSchemaImpl extends SaveableImpl implements InputRecordSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private java.util.Optional> fields; - - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - public java.util.Optional> getFields() { - return this.fields; - } - - private Record_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - public Record_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of InputRecordSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public InputRecordSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("InputRecordSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - java.util.Optional> fields; - - if (__doc.containsKey("fields")) { - try { - fields = - LoaderInstances - .idmap_fields_optional_array_of_InputRecordField - .loadField(__doc.get("fields"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - fields = null; // won't be used but prevents compiler from complaining. - final String __message = "the `fields` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - fields = null; - } - Record_name type; - try { - type = - LoaderInstances - .typedsl_Record_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.fields = (java.util.Optional>) fields; - this.type = (Record_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.name = (java.util.Optional) name; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/InputSchema.java b/src/main/java/org/w3id/cwl/cwl1_2/InputSchema.java deleted file mode 100644 index f06ff5be..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/InputSchema.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#InputSchema
- */ -public interface InputSchema extends IOSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Labeled.java b/src/main/java/org/w3id/cwl/cwl1_2/Labeled.java deleted file mode 100644 index c0dd6254..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/Labeled.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#Labeled
- */ -public interface Labeled extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/LinkMergeMethod.java b/src/main/java/org/w3id/cwl/cwl1_2/LinkMergeMethod.java deleted file mode 100644 index 12aad297..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/LinkMergeMethod.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum LinkMergeMethod { - MERGE_NESTED("merge_nested"), - MERGE_FLATTENED("merge_flattened"); - - private static String[] symbols = new String[] {"merge_nested", "merge_flattened"}; - private String docVal; - - private LinkMergeMethod(final String docVal) { - this.docVal = docVal; - } - - public static LinkMergeMethod fromDocumentVal(final String docVal) { - for(final LinkMergeMethod val : LinkMergeMethod.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", LinkMergeMethod.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/LoadContents.java b/src/main/java/org/w3id/cwl/cwl1_2/LoadContents.java deleted file mode 100644 index cb979739..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/LoadContents.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#LoadContents
- */ -public interface LoadContents extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * If true, the file (or each file in the array) must be a UTF-8 - * text file 64 KiB or smaller, and the implementation must read - * the entire contents of the file (or file array) and place it - * in the `contents` field of the File object for use by - * expressions. If the size of the file is greater than 64 KiB, - * the implementation must raise a fatal error. - * *
- */ - - java.util.Optional getLoadContents(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - java.util.Optional getLoadListing(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/LoadListingEnum.java b/src/main/java/org/w3id/cwl/cwl1_2/LoadListingEnum.java deleted file mode 100644 index 6b2f5a62..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/LoadListingEnum.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum LoadListingEnum { - NO_LISTING("no_listing"), - SHALLOW_LISTING("shallow_listing"), - DEEP_LISTING("deep_listing"); - - private static String[] symbols = new String[] {"no_listing", "shallow_listing", "deep_listing"}; - private String docVal; - - private LoadListingEnum(final String docVal) { - this.docVal = docVal; - } - - public static LoadListingEnum fromDocumentVal(final String docVal) { - for(final LoadListingEnum val : LoadListingEnum.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", LoadListingEnum.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/LoadListingRequirement.java b/src/main/java/org/w3id/cwl/cwl1_2/LoadListingRequirement.java deleted file mode 100644 index 2a73589f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/LoadListingRequirement.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#LoadListingRequirement
This interface is implemented by {@link LoadListingRequirementImpl}
- Specify the desired behavior for loading the `listing` field of - a Directory object for use by expressions. -
- */ -public interface LoadListingRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#LoadListingRequirement/class
- *
- * Always 'LoadListingRequirement' *
- */ - - LoadListingRequirement_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadListingRequirement/loadListing
- - */ - - java.util.Optional getLoadListing(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/LoadListingRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/LoadListingRequirementImpl.java deleted file mode 100644 index 8c777ca6..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/LoadListingRequirementImpl.java +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#LoadListingRequirement
- Specify the desired behavior for loading the `listing` field of - a Directory object for use by expressions. -
- */ -public class LoadListingRequirementImpl extends SaveableImpl implements LoadListingRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private LoadListingRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadListingRequirement/class
- *
- * Always 'LoadListingRequirement' *
- */ - - public LoadListingRequirement_class getClass_() { - return this.class_; - } - - private java.util.Optional loadListing; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadListingRequirement/loadListing
- - */ - - public java.util.Optional getLoadListing() { - return this.loadListing; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of LoadListingRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public LoadListingRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("LoadListingRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - LoadListingRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_LoadListingRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional loadListing; - - if (__doc.containsKey("loadListing")) { - try { - loadListing = - LoaderInstances - .optional_LoadListingEnum - .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadListing = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadListing` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadListing = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (LoadListingRequirement_class) class_; - this.loadListing = (java.util.Optional) loadListing; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/LoadListingRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_2/LoadListingRequirement_class.java deleted file mode 100644 index c44623bd..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/LoadListingRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum LoadListingRequirement_class { - LOADLISTINGREQUIREMENT("LoadListingRequirement"); - - private static String[] symbols = new String[] {"LoadListingRequirement"}; - private String docVal; - - private LoadListingRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static LoadListingRequirement_class fromDocumentVal(final String docVal) { - for(final LoadListingRequirement_class val : LoadListingRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", LoadListingRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/MapSchema.java b/src/main/java/org/w3id/cwl/cwl1_2/MapSchema.java deleted file mode 100644 index 2d6bbbbd..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/MapSchema.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/salad#MapSchema
This interface is implemented by {@link MapSchemaImpl}
- */ -public interface MapSchema extends Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `map` *
- */ - - Map_name getType(); - /** - * Getter for property https://w3id.org/cwl/salad#values
- *
- * Defines the type of the map elements. *
- */ - - Object getValues(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/MapSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/MapSchemaImpl.java deleted file mode 100644 index 20735048..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/MapSchemaImpl.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/salad#MapSchema
- */ -public class MapSchemaImpl extends SaveableImpl implements MapSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private Map_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `map` *
- */ - - public Map_name getType() { - return this.type; - } - - private Object values; - - /** - * Getter for property https://w3id.org/cwl/salad#values
- *
- * Defines the type of the map elements. *
- */ - - public Object getValues() { - return this.values; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of MapSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public MapSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("MapSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - Map_name type; - try { - type = - LoaderInstances - .typedsl_Map_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Object values; - try { - values = - LoaderInstances - .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 - .loadField(__doc.get("values"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - values = null; // won't be used but prevents compiler from complaining. - final String __message = "the `values` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.type = (Map_name) type; - this.values = (Object) values; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Map_name.java b/src/main/java/org/w3id/cwl/cwl1_2/Map_name.java deleted file mode 100644 index 7672c11a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/Map_name.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum Map_name { - MAP("map"); - - private static String[] symbols = new String[] {"map"}; - private String docVal; - - private Map_name(final String docVal) { - this.docVal = docVal; - } - - public static Map_name fromDocumentVal(final String docVal) { - for(final Map_name val : Map_name.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", Map_name.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/MultipleInputFeatureRequirement.java b/src/main/java/org/w3id/cwl/cwl1_2/MultipleInputFeatureRequirement.java deleted file mode 100644 index 28d19fe5..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/MultipleInputFeatureRequirement.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#MultipleInputFeatureRequirement
This interface is implemented by {@link MultipleInputFeatureRequirementImpl}
- Indicates that the workflow platform must support multiple inbound data links - listed in the `source` field of [WorkflowStepInput](#WorkflowStepInput). -
- */ -public interface MultipleInputFeatureRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#MultipleInputFeatureRequirement/class
- *
- * Always 'MultipleInputFeatureRequirement' *
- */ - - MultipleInputFeatureRequirement_class getClass_(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/MultipleInputFeatureRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/MultipleInputFeatureRequirementImpl.java deleted file mode 100644 index de44f4e3..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/MultipleInputFeatureRequirementImpl.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#MultipleInputFeatureRequirement
- Indicates that the workflow platform must support multiple inbound data links - listed in the `source` field of [WorkflowStepInput](#WorkflowStepInput). -
- */ -public class MultipleInputFeatureRequirementImpl extends SaveableImpl implements MultipleInputFeatureRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private MultipleInputFeatureRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#MultipleInputFeatureRequirement/class
- *
- * Always 'MultipleInputFeatureRequirement' *
- */ - - public MultipleInputFeatureRequirement_class getClass_() { - return this.class_; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of MultipleInputFeatureRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public MultipleInputFeatureRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("MultipleInputFeatureRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - MultipleInputFeatureRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_MultipleInputFeatureRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (MultipleInputFeatureRequirement_class) class_; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/MultipleInputFeatureRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_2/MultipleInputFeatureRequirement_class.java deleted file mode 100644 index 5f7b8559..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/MultipleInputFeatureRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum MultipleInputFeatureRequirement_class { - MULTIPLEINPUTFEATUREREQUIREMENT("MultipleInputFeatureRequirement"); - - private static String[] symbols = new String[] {"MultipleInputFeatureRequirement"}; - private String docVal; - - private MultipleInputFeatureRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static MultipleInputFeatureRequirement_class fromDocumentVal(final String docVal) { - for(final MultipleInputFeatureRequirement_class val : MultipleInputFeatureRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", MultipleInputFeatureRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/NetworkAccess.java b/src/main/java/org/w3id/cwl/cwl1_2/NetworkAccess.java deleted file mode 100644 index 58ae572f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/NetworkAccess.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#NetworkAccess
This interface is implemented by {@link NetworkAccessImpl}
- Indicate whether a process requires outgoing IPv4/IPv6 network - access. Choice of IPv4 or IPv6 is implementation and site - specific, correct tools must support both. - - If `networkAccess` is false or not specified, tools must not - assume network access, except for localhost (the loopback device). - - If `networkAccess` is true, the tool must be able to make outgoing - connections to network resources. Resources may be on a private - subnet or the public Internet. However, implementations and sites - may apply their own security policies to restrict what is - accessible by the tool. - - Enabling network access does not imply a publicly routable IP - address or the ability to accept inbound connections. -
- */ -public interface NetworkAccess extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#NetworkAccess/class
- *
- * Always 'NetworkAccess' *
- */ - - NetworkAccess_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#NetworkAccess/networkAccess
- - */ - - Object getNetworkAccess(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/NetworkAccessImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/NetworkAccessImpl.java deleted file mode 100644 index 5a5a179d..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/NetworkAccessImpl.java +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#NetworkAccess
- Indicate whether a process requires outgoing IPv4/IPv6 network - access. Choice of IPv4 or IPv6 is implementation and site - specific, correct tools must support both. - - If `networkAccess` is false or not specified, tools must not - assume network access, except for localhost (the loopback device). - - If `networkAccess` is true, the tool must be able to make outgoing - connections to network resources. Resources may be on a private - subnet or the public Internet. However, implementations and sites - may apply their own security policies to restrict what is - accessible by the tool. - - Enabling network access does not imply a publicly routable IP - address or the ability to accept inbound connections. -
- */ -public class NetworkAccessImpl extends SaveableImpl implements NetworkAccess { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private NetworkAccess_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#NetworkAccess/class
- *
- * Always 'NetworkAccess' *
- */ - - public NetworkAccess_class getClass_() { - return this.class_; - } - - private Object networkAccess; - - /** - * Getter for property https://w3id.org/cwl/cwl#NetworkAccess/networkAccess
- - */ - - public Object getNetworkAccess() { - return this.networkAccess; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of NetworkAccessImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public NetworkAccessImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("NetworkAccessImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - NetworkAccess_class class_; - try { - class_ = - LoaderInstances - .uri_NetworkAccess_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Object networkAccess; - try { - networkAccess = - LoaderInstances - .union_of_BooleanInstance_or_ExpressionLoader - .loadField(__doc.get("networkAccess"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - networkAccess = null; // won't be used but prevents compiler from complaining. - final String __message = "the `networkAccess` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (NetworkAccess_class) class_; - this.networkAccess = (Object) networkAccess; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/NetworkAccess_class.java b/src/main/java/org/w3id/cwl/cwl1_2/NetworkAccess_class.java deleted file mode 100644 index 093243c5..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/NetworkAccess_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum NetworkAccess_class { - NETWORKACCESS("NetworkAccess"); - - private static String[] symbols = new String[] {"NetworkAccess"}; - private String docVal; - - private NetworkAccess_class(final String docVal) { - this.docVal = docVal; - } - - public static NetworkAccess_class fromDocumentVal(final String docVal) { - for(final NetworkAccess_class val : NetworkAccess_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", NetworkAccess_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/OutputArraySchema.java b/src/main/java/org/w3id/cwl/cwl1_2/OutputArraySchema.java deleted file mode 100644 index 1370e744..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/OutputArraySchema.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#OutputArraySchema
This interface is implemented by {@link OutputArraySchemaImpl}
- */ -public interface OutputArraySchema extends CWLArraySchema, OutputSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - Object getItems(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - Array_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/OutputArraySchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/OutputArraySchemaImpl.java deleted file mode 100644 index ab24a3d3..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/OutputArraySchemaImpl.java +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#OutputArraySchema
- */ -public class OutputArraySchemaImpl extends SaveableImpl implements OutputArraySchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private Object items; - - /** - * Getter for property https://w3id.org/cwl/salad#items
- *
- * Defines the type of the array elements. *
- */ - - public Object getItems() { - return this.items; - } - - private Array_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `array` *
- */ - - public Array_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of OutputArraySchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public OutputArraySchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("OutputArraySchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - Object items; - try { - items = - LoaderInstances - .uri_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_False_True_2_None - .loadField(__doc.get("items"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - items = null; // won't be used but prevents compiler from complaining. - final String __message = "the `items` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Array_name type; - try { - type = - LoaderInstances - .typedsl_Array_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.items = (Object) items; - this.type = (Array_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.name = (java.util.Optional) name; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/OutputEnumSchema.java b/src/main/java/org/w3id/cwl/cwl1_2/OutputEnumSchema.java deleted file mode 100644 index 9eb2a423..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/OutputEnumSchema.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#OutputEnumSchema
This interface is implemented by {@link OutputEnumSchemaImpl}
- */ -public interface OutputEnumSchema extends EnumSchema, OutputSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - java.util.List getSymbols(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - Enum_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/OutputEnumSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/OutputEnumSchemaImpl.java deleted file mode 100644 index 8b6aa288..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/OutputEnumSchemaImpl.java +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#OutputEnumSchema
- */ -public class OutputEnumSchemaImpl extends SaveableImpl implements OutputEnumSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private java.util.List symbols; - - /** - * Getter for property https://w3id.org/cwl/salad#symbols
- *
- * Defines the set of valid symbols. *
- */ - - public java.util.List getSymbols() { - return this.symbols; - } - - private Enum_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `enum` *
- */ - - public Enum_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of OutputEnumSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public OutputEnumSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("OutputEnumSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - java.util.List symbols; - try { - symbols = - LoaderInstances - .uri_array_of_StringInstance_True_False_None_None - .loadField(__doc.get("symbols"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - symbols = null; // won't be used but prevents compiler from complaining. - final String __message = "the `symbols` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Enum_name type; - try { - type = - LoaderInstances - .typedsl_Enum_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.name = (java.util.Optional) name; - this.symbols = (java.util.List) symbols; - this.type = (Enum_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/OutputFormat.java b/src/main/java/org/w3id/cwl/cwl1_2/OutputFormat.java deleted file mode 100644 index 327ba843..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/OutputFormat.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#OutputFormat
- */ -public interface OutputFormat extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - Object getFormat(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/OutputParameter.java b/src/main/java/org/w3id/cwl/cwl1_2/OutputParameter.java deleted file mode 100644 index 269ca014..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/OutputParameter.java +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#OutputParameter
- */ -public interface OutputParameter extends Parameter, OutputFormat, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - Object getFormat(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/OutputRecordField.java b/src/main/java/org/w3id/cwl/cwl1_2/OutputRecordField.java deleted file mode 100644 index 30250e7e..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/OutputRecordField.java +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#OutputRecordField
This interface is implemented by {@link OutputRecordFieldImpl}
- */ -public interface OutputRecordField extends CWLRecordField, FieldBase, OutputFormat, Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - String getName(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - Object getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - Object getFormat(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/OutputRecordFieldImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/OutputRecordFieldImpl.java deleted file mode 100644 index 669993ae..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/OutputRecordFieldImpl.java +++ /dev/null @@ -1,334 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#OutputRecordField
- */ -public class OutputRecordFieldImpl extends SaveableImpl implements OutputRecordField { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private String name; - - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - public String getName() { - return this.name; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type - * *
- */ - - public Object getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional streamable; - - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - public java.util.Optional getStreamable() { - return this.streamable; - } - - private Object format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - public Object getFormat() { - return this.format; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of OutputRecordFieldImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public OutputRecordFieldImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("OutputRecordFieldImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - String name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - if (name == null) { - if (__docRoot != null) { - name = __docRoot; - } else { - throw new ValidationException("Missing name"); - } - } - __baseUri = (String) name; - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object type; - try { - type = - LoaderInstances - .typedsl_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional streamable; - - if (__doc.containsKey("streamable")) { - try { - streamable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - streamable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `streamable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - streamable = null; - } - Object format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.doc = (Object) doc; - this.name = (String) name; - this.type = (Object) type; - this.label = (java.util.Optional) label; - this.secondaryFiles = (Object) secondaryFiles; - this.streamable = (java.util.Optional) streamable; - this.format = (Object) format; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/OutputRecordSchema.java b/src/main/java/org/w3id/cwl/cwl1_2/OutputRecordSchema.java deleted file mode 100644 index b20c6242..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/OutputRecordSchema.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#OutputRecordSchema
This interface is implemented by {@link OutputRecordSchemaImpl}
- */ -public interface OutputRecordSchema extends CWLRecordSchema, OutputSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - java.util.Optional getName(); - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - java.util.Optional> getFields(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - Record_name getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/OutputRecordSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/OutputRecordSchemaImpl.java deleted file mode 100644 index 94a3c789..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/OutputRecordSchemaImpl.java +++ /dev/null @@ -1,226 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#OutputRecordSchema
- */ -public class OutputRecordSchemaImpl extends SaveableImpl implements OutputRecordSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional name; - - /** - * Getter for property https://w3id.org/cwl/cwl#IOSchema/name
- *
- * The identifier for this type *
- */ - - public java.util.Optional getName() { - return this.name; - } - - private java.util.Optional> fields; - - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - public java.util.Optional> getFields() { - return this.fields; - } - - private Record_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - public Record_name getType() { - return this.type; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of OutputRecordSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public OutputRecordSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("OutputRecordSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - Boolean __original_is_null = name == null; - if (name == null) { - if (__docRoot != null) { - name = java.util.Optional.of(__docRoot); - } else { - name = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) name.orElse(null); - } - java.util.Optional> fields; - - if (__doc.containsKey("fields")) { - try { - fields = - LoaderInstances - .idmap_fields_optional_array_of_OutputRecordField - .loadField(__doc.get("fields"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - fields = null; // won't be used but prevents compiler from complaining. - final String __message = "the `fields` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - fields = null; - } - Record_name type; - try { - type = - LoaderInstances - .typedsl_Record_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.fields = (java.util.Optional>) fields; - this.type = (Record_name) type; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.name = (java.util.Optional) name; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/OutputSchema.java b/src/main/java/org/w3id/cwl/cwl1_2/OutputSchema.java deleted file mode 100644 index c13b40f2..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/OutputSchema.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#OutputSchema
- */ -public interface OutputSchema extends IOSchema, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Parameter.java b/src/main/java/org/w3id/cwl/cwl1_2/Parameter.java deleted file mode 100644 index b8f4fb48..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/Parameter.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#Parameter
- Define an input or output parameter to a process. -
- */ -public interface Parameter extends FieldBase, Documented, Identified, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/PrimitiveType.java b/src/main/java/org/w3id/cwl/cwl1_2/PrimitiveType.java deleted file mode 100644 index 3a2f174a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/PrimitiveType.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum PrimitiveType { - NULL("null"), - BOOLEAN("boolean"), - INT("int"), - LONG("long"), - FLOAT("float"), - DOUBLE("double"), - STRING("string"); - - private static String[] symbols = new String[] {"null", "boolean", "int", "long", "float", "double", "string"}; - private String docVal; - - private PrimitiveType(final String docVal) { - this.docVal = docVal; - } - - public static PrimitiveType fromDocumentVal(final String docVal) { - for(final PrimitiveType val : PrimitiveType.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", PrimitiveType.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Process.java b/src/main/java/org/w3id/cwl/cwl1_2/Process.java deleted file mode 100644 index fe7af3ca..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/Process.java +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#Process
- - The base executable type in CWL is the `Process` object defined by the - document. Note that the `Process` object is abstract and cannot be - directly executed. -
- */ -public interface Process extends Identified, Labeled, Documented, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#inputs
- *
- * Defines the input parameters of the process. The process is ready to - * run when all required input parameters are associated with concrete - * values. Input parameters include a schema for each parameter which is - * used to validate the input object. It may also be used to build a user - * interface for constructing the input object. - * - * When accepting an input object, all input parameters must have a value. - * If an input parameter is missing from the input object, it must be - * assigned a value of `null` (or the value of `default` for that - * parameter, if provided) for the purposes of validation and evaluation - * of expressions. - * *
- */ - - java.util.List getInputs(); - /** - * Getter for property https://w3id.org/cwl/cwl#outputs
- *
- * Defines the parameters representing the output of the process. May be - * used to generate and/or validate the output object. - * *
- */ - - java.util.List getOutputs(); - /** - * Getter for property https://w3id.org/cwl/cwl#requirements
- *
- * Declares requirements that apply to either the runtime environment or the - * workflow engine that must be met in order to execute this process. If - * an implementation cannot satisfy all requirements, or a requirement is - * listed which is not recognized by the implementation, it is a fatal - * error and the implementation must not attempt to run the process, - * unless overridden at user option. - * *
- */ - - java.util.Optional> getRequirements(); - /** - * Getter for property https://w3id.org/cwl/cwl#hints
- *
- * Declares hints applying to either the runtime environment or the - * workflow engine that may be helpful in executing this process. It is - * not an error if an implementation cannot satisfy all hints, however - * the implementation may report a warning. - * *
- */ - - java.util.Optional> getHints(); - /** - * Getter for property https://w3id.org/cwl/cwl#cwlVersion
- *
- * CWL document version. Always required at the document root. Not - * required for a Process embedded inside another Process. - * *
- */ - - java.util.Optional getCwlVersion(); - /** - * Getter for property https://w3id.org/cwl/cwl#Process/intent
- *
- * An identifier for the type of computational operation, of this Process. - * Especially useful for [`Operation`](Workflow.html#Operation), but can also be used for - * [`CommandLineTool`](CommandLineTool.html#CommandLineTool), - * [`Workflow`](Workflow.html#Workflow), or [ExpressionTool](Workflow.html#ExpressionTool). - * - * If provided, then this must be an IRI of a concept node that - * represents the type of operation, preferably defined within an ontology. - * - * For example, in the domain of bioinformatics, one can use an IRI from - * the EDAM Ontology's [Operation concept nodes](http://edamontology.org/operation_0004), - * like [Alignment](http://edamontology.org/operation_2928), - * or [Clustering](http://edamontology.org/operation_3432); or a more - * specific Operation concept like - * [Split read mapping](http://edamontology.org/operation_3199). - * *
- */ - - java.util.Optional> getIntent(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ProcessRequirement.java b/src/main/java/org/w3id/cwl/cwl1_2/ProcessRequirement.java deleted file mode 100644 index b49aa64e..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ProcessRequirement.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#ProcessRequirement
- A process requirement declares a prerequisite that may or must be fulfilled - before executing a process. See [`Process.hints`](#process) and - [`Process.requirements`](#process). - - Process requirements are the primary mechanism for specifying extensions to - the CWL core specification. -
- */ -public interface ProcessRequirement extends Saveable { -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/RecordField.java b/src/main/java/org/w3id/cwl/cwl1_2/RecordField.java deleted file mode 100644 index 9dcbac90..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/RecordField.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/salad#RecordField
This interface is implemented by {@link RecordFieldImpl}
- A field of a record.
- */ -public interface RecordField extends Documented, Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - String getName(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type. If it is an array, it indicates - * that the field type is a union type of its elements. - * Its elements may be duplicated. - * *
- */ - - Object getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/RecordFieldImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/RecordFieldImpl.java deleted file mode 100644 index 7239d267..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/RecordFieldImpl.java +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/salad#RecordField
- A field of a record.
- */ -public class RecordFieldImpl extends SaveableImpl implements RecordField { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private String name; - - /** - * Getter for property https://w3id.org/cwl/salad#RecordField/name
- *
- * The name of the field - * *
- */ - - public String getName() { - return this.name; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * The field type. If it is an array, it indicates - * that the field type is a union type of its elements. - * Its elements may be duplicated. - * *
- */ - - public Object getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of RecordFieldImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public RecordFieldImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("RecordFieldImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - String name; - - if (__doc.containsKey("name")) { - try { - name = - LoaderInstances - .uri_StringInstance_True_False_None_None - .loadField(__doc.get("name"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - name = null; // won't be used but prevents compiler from complaining. - final String __message = "the `name` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - name = null; - } - - if (name == null) { - if (__docRoot != null) { - name = __docRoot; - } else { - throw new ValidationException("Missing name"); - } - } - __baseUri = (String) name; - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object type; - try { - type = - LoaderInstances - .typedsl_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_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.doc = (Object) doc; - this.name = (String) name; - this.type = (Object) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/RecordSchema.java b/src/main/java/org/w3id/cwl/cwl1_2/RecordSchema.java deleted file mode 100644 index 95e56e6c..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/RecordSchema.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/salad#RecordSchema
This interface is implemented by {@link RecordSchemaImpl}
- */ -public interface RecordSchema extends Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - java.util.Optional> getFields(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - Record_name getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/RecordSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/RecordSchemaImpl.java deleted file mode 100644 index 44ebe908..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/RecordSchemaImpl.java +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/salad#RecordSchema
- */ -public class RecordSchemaImpl extends SaveableImpl implements RecordSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional> fields; - - /** - * Getter for property https://w3id.org/cwl/salad#fields
- *
- * Defines the fields of the record. *
- */ - - public java.util.Optional> getFields() { - return this.fields; - } - - private Record_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `record` *
- */ - - public Record_name getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of RecordSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public RecordSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("RecordSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional> fields; - - if (__doc.containsKey("fields")) { - try { - fields = - LoaderInstances - .idmap_fields_optional_array_of_RecordField - .loadField(__doc.get("fields"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - fields = null; // won't be used but prevents compiler from complaining. - final String __message = "the `fields` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - fields = null; - } - Record_name type; - try { - type = - LoaderInstances - .typedsl_Record_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.fields = (java.util.Optional>) fields; - this.type = (Record_name) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Record_name.java b/src/main/java/org/w3id/cwl/cwl1_2/Record_name.java deleted file mode 100644 index 82fd14c9..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/Record_name.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum Record_name { - RECORD("record"); - - private static String[] symbols = new String[] {"record"}; - private String docVal; - - private Record_name(final String docVal) { - this.docVal = docVal; - } - - public static Record_name fromDocumentVal(final String docVal) { - for(final Record_name val : Record_name.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", Record_name.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ResourceRequirement.java b/src/main/java/org/w3id/cwl/cwl1_2/ResourceRequirement.java deleted file mode 100644 index ea8801d1..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ResourceRequirement.java +++ /dev/null @@ -1,170 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#ResourceRequirement
This interface is implemented by {@link ResourceRequirementImpl}
- Specify basic hardware resource requirements. - - "min" is the minimum amount of a resource that must be reserved to - schedule a job. If "min" cannot be satisfied, the job should not - be run. - - "max" is the maximum amount of a resource that the job shall be - allocated. If a node has sufficient resources, multiple jobs may - be scheduled on a single node provided each job's "max" resource - requirements are met. If a job attempts to exceed its resource - allocation, an implementation may deny additional resources, which - may result in job failure. - - If both "min" and "max" are specified, an implementation may - choose to allocate any amount between "min" and "max", with the - actual allocation provided in the `runtime` object. - - If "min" is specified but "max" is not, then "max" == "min" - If "max" is specified by "min" is not, then "min" == "max". - - It is an error if max < min. - - It is an error if the value of any of these fields is negative. - - If neither "min" nor "max" is specified for a resource, use the default values below. -
- */ -public interface ResourceRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/class
- *
- * Always 'ResourceRequirement' *
- */ - - ResourceRequirement_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/coresMin
- *
- * Minimum reserved number of CPU cores (default is 1). - * - * May be a fractional value to indicate to a scheduling - * algorithm that one core can be allocated to multiple - * jobs. For example, a value of 0.25 indicates that up to 4 - * jobs may run in parallel on 1 core. A value of 1.25 means - * that up to 3 jobs can run on a 4 core system (4/1.25 ≈ 3). - * - * Processes can only share a core allocation if the sum of each - * of their `ramMax`, `tmpdirMax`, and `outdirMax` requests also - * do not exceed the capacity of the node. - * - * Processes sharing a core must have the same level of isolation - * (typically a container or VM) that they would normally have. - * - * The reported number of CPU cores reserved for the process, - * which is available to expressions on the CommandLineTool as - * `runtime.cores`, must be a non-zero integer, and may be - * calculated by rounding up the cores request to the next whole - * number. - * - * Scheduling systems may allocate fractional CPU resources by - * setting quotas or scheduling weights. Scheduling systems that - * do not support fractional CPUs may round up the request to the - * next whole number. - * *
- */ - - Object getCoresMin(); - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/coresMax
- *
- * Maximum reserved number of CPU cores. - * - * See `coresMin` for discussion about fractional CPU requests. - * *
- */ - - Object getCoresMax(); - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/ramMin
- *
- * Minimum reserved RAM in mebibytes (2**20) (default is 256) - * - * May be a fractional value. If so, the actual RAM request must - * be rounded up to the next whole number. The reported amount of - * RAM reserved for the process, which is available to - * expressions on the CommandLineTool as `runtime.ram`, must be a - * non-zero integer. - * *
- */ - - Object getRamMin(); - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/ramMax
- *
- * Maximum reserved RAM in mebibytes (2**20) - * - * See `ramMin` for discussion about fractional RAM requests. - * *
- */ - - Object getRamMax(); - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/tmpdirMin
- *
- * Minimum reserved filesystem based storage for the designated temporary directory, in mebibytes (2**20) (default is 1024) - * - * May be a fractional value. If so, the actual storage request - * must be rounded up to the next whole number. The reported - * amount of storage reserved for the process, which is available - * to expressions on the CommandLineTool as `runtime.tmpdirSize`, - * must be a non-zero integer. - * *
- */ - - Object getTmpdirMin(); - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/tmpdirMax
- *
- * Maximum reserved filesystem based storage for the designated temporary directory, in mebibytes (2**20) - * - * See `tmpdirMin` for discussion about fractional storage requests. - * *
- */ - - Object getTmpdirMax(); - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/outdirMin
- *
- * Minimum reserved filesystem based storage for the designated output directory, in mebibytes (2**20) (default is 1024) - * - * May be a fractional value. If so, the actual storage request - * must be rounded up to the next whole number. The reported - * amount of storage reserved for the process, which is available - * to expressions on the CommandLineTool as `runtime.outdirSize`, - * must be a non-zero integer. - * *
- */ - - Object getOutdirMin(); - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/outdirMax
- *
- * Maximum reserved filesystem based storage for the designated output directory, in mebibytes (2**20) - * - * See `outdirMin` for discussion about fractional storage requests. - * *
- */ - - Object getOutdirMax(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ResourceRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/ResourceRequirementImpl.java deleted file mode 100644 index f3e072cf..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ResourceRequirementImpl.java +++ /dev/null @@ -1,416 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#ResourceRequirement
- Specify basic hardware resource requirements. - - "min" is the minimum amount of a resource that must be reserved to - schedule a job. If "min" cannot be satisfied, the job should not - be run. - - "max" is the maximum amount of a resource that the job shall be - allocated. If a node has sufficient resources, multiple jobs may - be scheduled on a single node provided each job's "max" resource - requirements are met. If a job attempts to exceed its resource - allocation, an implementation may deny additional resources, which - may result in job failure. - - If both "min" and "max" are specified, an implementation may - choose to allocate any amount between "min" and "max", with the - actual allocation provided in the `runtime` object. - - If "min" is specified but "max" is not, then "max" == "min" - If "max" is specified by "min" is not, then "min" == "max". - - It is an error if max < min. - - It is an error if the value of any of these fields is negative. - - If neither "min" nor "max" is specified for a resource, use the default values below. -
- */ -public class ResourceRequirementImpl extends SaveableImpl implements ResourceRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private ResourceRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/class
- *
- * Always 'ResourceRequirement' *
- */ - - public ResourceRequirement_class getClass_() { - return this.class_; - } - - private Object coresMin; - - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/coresMin
- *
- * Minimum reserved number of CPU cores (default is 1). - * - * May be a fractional value to indicate to a scheduling - * algorithm that one core can be allocated to multiple - * jobs. For example, a value of 0.25 indicates that up to 4 - * jobs may run in parallel on 1 core. A value of 1.25 means - * that up to 3 jobs can run on a 4 core system (4/1.25 ≈ 3). - * - * Processes can only share a core allocation if the sum of each - * of their `ramMax`, `tmpdirMax`, and `outdirMax` requests also - * do not exceed the capacity of the node. - * - * Processes sharing a core must have the same level of isolation - * (typically a container or VM) that they would normally have. - * - * The reported number of CPU cores reserved for the process, - * which is available to expressions on the CommandLineTool as - * `runtime.cores`, must be a non-zero integer, and may be - * calculated by rounding up the cores request to the next whole - * number. - * - * Scheduling systems may allocate fractional CPU resources by - * setting quotas or scheduling weights. Scheduling systems that - * do not support fractional CPUs may round up the request to the - * next whole number. - * *
- */ - - public Object getCoresMin() { - return this.coresMin; - } - - private Object coresMax; - - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/coresMax
- *
- * Maximum reserved number of CPU cores. - * - * See `coresMin` for discussion about fractional CPU requests. - * *
- */ - - public Object getCoresMax() { - return this.coresMax; - } - - private Object ramMin; - - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/ramMin
- *
- * Minimum reserved RAM in mebibytes (2**20) (default is 256) - * - * May be a fractional value. If so, the actual RAM request must - * be rounded up to the next whole number. The reported amount of - * RAM reserved for the process, which is available to - * expressions on the CommandLineTool as `runtime.ram`, must be a - * non-zero integer. - * *
- */ - - public Object getRamMin() { - return this.ramMin; - } - - private Object ramMax; - - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/ramMax
- *
- * Maximum reserved RAM in mebibytes (2**20) - * - * See `ramMin` for discussion about fractional RAM requests. - * *
- */ - - public Object getRamMax() { - return this.ramMax; - } - - private Object tmpdirMin; - - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/tmpdirMin
- *
- * Minimum reserved filesystem based storage for the designated temporary directory, in mebibytes (2**20) (default is 1024) - * - * May be a fractional value. If so, the actual storage request - * must be rounded up to the next whole number. The reported - * amount of storage reserved for the process, which is available - * to expressions on the CommandLineTool as `runtime.tmpdirSize`, - * must be a non-zero integer. - * *
- */ - - public Object getTmpdirMin() { - return this.tmpdirMin; - } - - private Object tmpdirMax; - - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/tmpdirMax
- *
- * Maximum reserved filesystem based storage for the designated temporary directory, in mebibytes (2**20) - * - * See `tmpdirMin` for discussion about fractional storage requests. - * *
- */ - - public Object getTmpdirMax() { - return this.tmpdirMax; - } - - private Object outdirMin; - - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/outdirMin
- *
- * Minimum reserved filesystem based storage for the designated output directory, in mebibytes (2**20) (default is 1024) - * - * May be a fractional value. If so, the actual storage request - * must be rounded up to the next whole number. The reported - * amount of storage reserved for the process, which is available - * to expressions on the CommandLineTool as `runtime.outdirSize`, - * must be a non-zero integer. - * *
- */ - - public Object getOutdirMin() { - return this.outdirMin; - } - - private Object outdirMax; - - /** - * Getter for property https://w3id.org/cwl/cwl#ResourceRequirement/outdirMax
- *
- * Maximum reserved filesystem based storage for the designated output directory, in mebibytes (2**20) - * - * See `outdirMin` for discussion about fractional storage requests. - * *
- */ - - public Object getOutdirMax() { - return this.outdirMax; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of ResourceRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public ResourceRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("ResourceRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - ResourceRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_ResourceRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Object coresMin; - - if (__doc.containsKey("coresMin")) { - try { - coresMin = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_DoubleInstance_or_ExpressionLoader - .loadField(__doc.get("coresMin"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - coresMin = null; // won't be used but prevents compiler from complaining. - final String __message = "the `coresMin` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - coresMin = null; - } - Object coresMax; - - if (__doc.containsKey("coresMax")) { - try { - coresMax = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_DoubleInstance_or_ExpressionLoader - .loadField(__doc.get("coresMax"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - coresMax = null; // won't be used but prevents compiler from complaining. - final String __message = "the `coresMax` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - coresMax = null; - } - Object ramMin; - - if (__doc.containsKey("ramMin")) { - try { - ramMin = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_DoubleInstance_or_ExpressionLoader - .loadField(__doc.get("ramMin"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - ramMin = null; // won't be used but prevents compiler from complaining. - final String __message = "the `ramMin` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - ramMin = null; - } - Object ramMax; - - if (__doc.containsKey("ramMax")) { - try { - ramMax = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_DoubleInstance_or_ExpressionLoader - .loadField(__doc.get("ramMax"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - ramMax = null; // won't be used but prevents compiler from complaining. - final String __message = "the `ramMax` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - ramMax = null; - } - Object tmpdirMin; - - if (__doc.containsKey("tmpdirMin")) { - try { - tmpdirMin = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_DoubleInstance_or_ExpressionLoader - .loadField(__doc.get("tmpdirMin"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - tmpdirMin = null; // won't be used but prevents compiler from complaining. - final String __message = "the `tmpdirMin` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - tmpdirMin = null; - } - Object tmpdirMax; - - if (__doc.containsKey("tmpdirMax")) { - try { - tmpdirMax = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_DoubleInstance_or_ExpressionLoader - .loadField(__doc.get("tmpdirMax"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - tmpdirMax = null; // won't be used but prevents compiler from complaining. - final String __message = "the `tmpdirMax` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - tmpdirMax = null; - } - Object outdirMin; - - if (__doc.containsKey("outdirMin")) { - try { - outdirMin = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_DoubleInstance_or_ExpressionLoader - .loadField(__doc.get("outdirMin"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - outdirMin = null; // won't be used but prevents compiler from complaining. - final String __message = "the `outdirMin` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - outdirMin = null; - } - Object outdirMax; - - if (__doc.containsKey("outdirMax")) { - try { - outdirMax = - LoaderInstances - .union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_DoubleInstance_or_ExpressionLoader - .loadField(__doc.get("outdirMax"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - outdirMax = null; // won't be used but prevents compiler from complaining. - final String __message = "the `outdirMax` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - outdirMax = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (ResourceRequirement_class) class_; - this.coresMin = (Object) coresMin; - this.coresMax = (Object) coresMax; - this.ramMin = (Object) ramMin; - this.ramMax = (Object) ramMax; - this.tmpdirMin = (Object) tmpdirMin; - this.tmpdirMax = (Object) tmpdirMax; - this.outdirMin = (Object) outdirMin; - this.outdirMax = (Object) outdirMax; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ResourceRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_2/ResourceRequirement_class.java deleted file mode 100644 index 9158206c..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ResourceRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum ResourceRequirement_class { - RESOURCEREQUIREMENT("ResourceRequirement"); - - private static String[] symbols = new String[] {"ResourceRequirement"}; - private String docVal; - - private ResourceRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static ResourceRequirement_class fromDocumentVal(final String docVal) { - for(final ResourceRequirement_class val : ResourceRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", ResourceRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ScatterFeatureRequirement.java b/src/main/java/org/w3id/cwl/cwl1_2/ScatterFeatureRequirement.java deleted file mode 100644 index d323e050..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ScatterFeatureRequirement.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#ScatterFeatureRequirement
This interface is implemented by {@link ScatterFeatureRequirementImpl}
- Indicates that the workflow platform must support the `scatter` and - `scatterMethod` fields of [WorkflowStep](#WorkflowStep). -
- */ -public interface ScatterFeatureRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#ScatterFeatureRequirement/class
- *
- * Always 'ScatterFeatureRequirement' *
- */ - - ScatterFeatureRequirement_class getClass_(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ScatterFeatureRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/ScatterFeatureRequirementImpl.java deleted file mode 100644 index c144faff..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ScatterFeatureRequirementImpl.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#ScatterFeatureRequirement
- Indicates that the workflow platform must support the `scatter` and - `scatterMethod` fields of [WorkflowStep](#WorkflowStep). -
- */ -public class ScatterFeatureRequirementImpl extends SaveableImpl implements ScatterFeatureRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private ScatterFeatureRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#ScatterFeatureRequirement/class
- *
- * Always 'ScatterFeatureRequirement' *
- */ - - public ScatterFeatureRequirement_class getClass_() { - return this.class_; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of ScatterFeatureRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public ScatterFeatureRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("ScatterFeatureRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - ScatterFeatureRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_ScatterFeatureRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (ScatterFeatureRequirement_class) class_; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ScatterFeatureRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_2/ScatterFeatureRequirement_class.java deleted file mode 100644 index 6e10bf96..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ScatterFeatureRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum ScatterFeatureRequirement_class { - SCATTERFEATUREREQUIREMENT("ScatterFeatureRequirement"); - - private static String[] symbols = new String[] {"ScatterFeatureRequirement"}; - private String docVal; - - private ScatterFeatureRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static ScatterFeatureRequirement_class fromDocumentVal(final String docVal) { - for(final ScatterFeatureRequirement_class val : ScatterFeatureRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", ScatterFeatureRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ScatterMethod.java b/src/main/java/org/w3id/cwl/cwl1_2/ScatterMethod.java deleted file mode 100644 index b6442a04..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ScatterMethod.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum ScatterMethod { - DOTPRODUCT("dotproduct"), - NESTED_CROSSPRODUCT("nested_crossproduct"), - FLAT_CROSSPRODUCT("flat_crossproduct"); - - private static String[] symbols = new String[] {"dotproduct", "nested_crossproduct", "flat_crossproduct"}; - private String docVal; - - private ScatterMethod(final String docVal) { - this.docVal = docVal; - } - - public static ScatterMethod fromDocumentVal(final String docVal) { - for(final ScatterMethod val : ScatterMethod.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", ScatterMethod.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/SchemaDefRequirement.java b/src/main/java/org/w3id/cwl/cwl1_2/SchemaDefRequirement.java deleted file mode 100644 index 43868fa1..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/SchemaDefRequirement.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#SchemaDefRequirement
This interface is implemented by {@link SchemaDefRequirementImpl}
- This field consists of an array of type definitions which must be used when - interpreting the `inputs` and `outputs` fields. When a `type` field - contains a IRI, the implementation must check if the type is defined in - `schemaDefs` and use that definition. If the type is not found in - `schemaDefs`, it is an error. The entries in `schemaDefs` must be - processed in the order listed such that later schema definitions may refer - to earlier schema definitions. - - - **Type definitions are allowed for `enum` and `record` types only.** - - Type definitions may be shared by defining them in a file and then - `$include`-ing them in the `types` field. - - A file can contain a list of type definitions -
- */ -public interface SchemaDefRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#SchemaDefRequirement/class
- *
- * Always 'SchemaDefRequirement' *
- */ - - SchemaDefRequirement_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#SchemaDefRequirement/types
- *
- * The list of type definitions. *
- */ - - java.util.List getTypes(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/SchemaDefRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/SchemaDefRequirementImpl.java deleted file mode 100644 index 742e92d8..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/SchemaDefRequirementImpl.java +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#SchemaDefRequirement
- This field consists of an array of type definitions which must be used when - interpreting the `inputs` and `outputs` fields. When a `type` field - contains a IRI, the implementation must check if the type is defined in - `schemaDefs` and use that definition. If the type is not found in - `schemaDefs`, it is an error. The entries in `schemaDefs` must be - processed in the order listed such that later schema definitions may refer - to earlier schema definitions. - - - **Type definitions are allowed for `enum` and `record` types only.** - - Type definitions may be shared by defining them in a file and then - `$include`-ing them in the `types` field. - - A file can contain a list of type definitions -
- */ -public class SchemaDefRequirementImpl extends SaveableImpl implements SchemaDefRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private SchemaDefRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#SchemaDefRequirement/class
- *
- * Always 'SchemaDefRequirement' *
- */ - - public SchemaDefRequirement_class getClass_() { - return this.class_; - } - - private java.util.List types; - - /** - * Getter for property https://w3id.org/cwl/cwl#SchemaDefRequirement/types
- *
- * The list of type definitions. *
- */ - - public java.util.List getTypes() { - return this.types; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of SchemaDefRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public SchemaDefRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("SchemaDefRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - SchemaDefRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_SchemaDefRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.List types; - try { - types = - LoaderInstances - .array_of_union_of_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema - .loadField(__doc.get("types"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - types = null; // won't be used but prevents compiler from complaining. - final String __message = "the `types` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (SchemaDefRequirement_class) class_; - this.types = (java.util.List) types; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/SchemaDefRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_2/SchemaDefRequirement_class.java deleted file mode 100644 index 0b714476..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/SchemaDefRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum SchemaDefRequirement_class { - SCHEMADEFREQUIREMENT("SchemaDefRequirement"); - - private static String[] symbols = new String[] {"SchemaDefRequirement"}; - private String docVal; - - private SchemaDefRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static SchemaDefRequirement_class fromDocumentVal(final String docVal) { - for(final SchemaDefRequirement_class val : SchemaDefRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", SchemaDefRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/SecondaryFileSchema.java b/src/main/java/org/w3id/cwl/cwl1_2/SecondaryFileSchema.java deleted file mode 100644 index c08ed21f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/SecondaryFileSchema.java +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#SecondaryFileSchema
This interface is implemented by {@link SecondaryFileSchemaImpl}
- Secondary files are specified using the following micro-DSL for secondary files: - - * If the value is a string, it is transformed to an object with two fields - `pattern` and `required` - * By default, the value of `required` is `null` - (this indicates default behavior, which may be based on the context) - * If the value ends with a question mark `?` the question mark is - stripped off and the value of the field `required` is set to `False` - * The remaining value is assigned to the field `pattern` - - For implementation details and examples, please see - [this section](SchemaSalad.html#Domain_Specific_Language_for_secondary_files) - in the Schema Salad specification. -
- */ -public interface SecondaryFileSchema extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#SecondaryFileSchema/pattern
- *
- * Provides a pattern or expression specifying files or directories that - * should be included alongside the primary file. - * - * If the value is an expression, the value of `self` in the - * expression must be the primary input or output File object to - * which this binding applies. The `basename`, `nameroot` and - * `nameext` fields must be present in `self`. For - * `CommandLineTool` inputs the `location` field must also be - * present. For `CommandLineTool` outputs the `path` field must - * also be present. If secondary files were included on an input - * File object as part of the Process invocation, they must also - * be present in `secondaryFiles` on `self`. - * - * The expression must return either: a filename string relative - * to the path to the primary File, a File or Directory object - * (`class: File` or `class: Directory`) with either `location` - * (for inputs) or `path` (for outputs) and `basename` fields - * set, or an array consisting of strings or File or Directory - * objects as previously described. - * - * It is legal to use `location` from a File or Directory object - * passed in as input, including `location` from secondary files - * on `self`. If an expression returns a File object with the - * same `location` but a different `basename` as a secondary file - * that was passed in, the expression result takes precedence. - * Setting the basename with an expression this way affects the - * `path` where the secondary file will be staged to in the - * CommandLineTool. - * - * The expression may return "null" in which case there is no - * secondary file from that expression. - * - * To work on non-filename-preserving storage systems, portable - * tool descriptions should treat `location` as an - * [opaque identifier](#opaque-strings) and avoid constructing new - * values from `location`, but should construct relative references - * using `basename` or `nameroot` instead, or propagate `location` - * from defined inputs. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getPattern(); - /** - * Getter for property https://w3id.org/cwl/cwl#SecondaryFileSchema/required
- *
- * An implementation must not fail workflow execution if `required` is - * set to `false` and the expected secondary file does not exist. - * Default value for `required` field is `true` for secondary files on - * input and `false` for secondary files on output. - * *
- */ - - Object getRequired(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/SecondaryFileSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/SecondaryFileSchemaImpl.java deleted file mode 100644 index da495ee9..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/SecondaryFileSchemaImpl.java +++ /dev/null @@ -1,190 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#SecondaryFileSchema
- Secondary files are specified using the following micro-DSL for secondary files: - - * If the value is a string, it is transformed to an object with two fields - `pattern` and `required` - * By default, the value of `required` is `null` - (this indicates default behavior, which may be based on the context) - * If the value ends with a question mark `?` the question mark is - stripped off and the value of the field `required` is set to `False` - * The remaining value is assigned to the field `pattern` - - For implementation details and examples, please see - [this section](SchemaSalad.html#Domain_Specific_Language_for_secondary_files) - in the Schema Salad specification. -
- */ -public class SecondaryFileSchemaImpl extends SaveableImpl implements SecondaryFileSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private Object pattern; - - /** - * Getter for property https://w3id.org/cwl/cwl#SecondaryFileSchema/pattern
- *
- * Provides a pattern or expression specifying files or directories that - * should be included alongside the primary file. - * - * If the value is an expression, the value of `self` in the - * expression must be the primary input or output File object to - * which this binding applies. The `basename`, `nameroot` and - * `nameext` fields must be present in `self`. For - * `CommandLineTool` inputs the `location` field must also be - * present. For `CommandLineTool` outputs the `path` field must - * also be present. If secondary files were included on an input - * File object as part of the Process invocation, they must also - * be present in `secondaryFiles` on `self`. - * - * The expression must return either: a filename string relative - * to the path to the primary File, a File or Directory object - * (`class: File` or `class: Directory`) with either `location` - * (for inputs) or `path` (for outputs) and `basename` fields - * set, or an array consisting of strings or File or Directory - * objects as previously described. - * - * It is legal to use `location` from a File or Directory object - * passed in as input, including `location` from secondary files - * on `self`. If an expression returns a File object with the - * same `location` but a different `basename` as a secondary file - * that was passed in, the expression result takes precedence. - * Setting the basename with an expression this way affects the - * `path` where the secondary file will be staged to in the - * CommandLineTool. - * - * The expression may return "null" in which case there is no - * secondary file from that expression. - * - * To work on non-filename-preserving storage systems, portable - * tool descriptions should treat `location` as an - * [opaque identifier](#opaque-strings) and avoid constructing new - * values from `location`, but should construct relative references - * using `basename` or `nameroot` instead, or propagate `location` - * from defined inputs. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getPattern() { - return this.pattern; - } - - private Object required; - - /** - * Getter for property https://w3id.org/cwl/cwl#SecondaryFileSchema/required
- *
- * An implementation must not fail workflow execution if `required` is - * set to `false` and the expected secondary file does not exist. - * Default value for `required` field is `true` for secondary files on - * input and `false` for secondary files on output. - * *
- */ - - public Object getRequired() { - return this.required; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of SecondaryFileSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public SecondaryFileSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("SecondaryFileSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - Object pattern; - try { - pattern = - LoaderInstances - .union_of_StringInstance_or_ExpressionLoader - .loadField(__doc.get("pattern"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - pattern = null; // won't be used but prevents compiler from complaining. - final String __message = "the `pattern` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Object required; - - if (__doc.containsKey("required")) { - try { - required = - LoaderInstances - .union_of_NullInstance_or_BooleanInstance_or_ExpressionLoader - .loadField(__doc.get("required"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - required = null; // won't be used but prevents compiler from complaining. - final String __message = "the `required` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - required = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.pattern = (Object) pattern; - this.required = (Object) required; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ShellCommandRequirement.java b/src/main/java/org/w3id/cwl/cwl1_2/ShellCommandRequirement.java deleted file mode 100644 index fff3ffbd..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ShellCommandRequirement.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#ShellCommandRequirement
This interface is implemented by {@link ShellCommandRequirementImpl}
- Modify the behavior of CommandLineTool to generate a single string - containing a shell command line. Each item in the `arguments` list must - be joined into a string separated by single spaces and quoted to prevent - interpretation by the shell, unless `CommandLineBinding` for that argument - contains `shellQuote: false`. If `shellQuote: false` is specified, the - argument is joined into the command string without quoting, which allows - the use of shell metacharacters such as `|` for pipes. -
- */ -public interface ShellCommandRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#ShellCommandRequirement/class
- *
- * Always 'ShellCommandRequirement' *
- */ - - ShellCommandRequirement_class getClass_(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ShellCommandRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/ShellCommandRequirementImpl.java deleted file mode 100644 index 0a85660a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ShellCommandRequirementImpl.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#ShellCommandRequirement
- Modify the behavior of CommandLineTool to generate a single string - containing a shell command line. Each item in the `arguments` list must - be joined into a string separated by single spaces and quoted to prevent - interpretation by the shell, unless `CommandLineBinding` for that argument - contains `shellQuote: false`. If `shellQuote: false` is specified, the - argument is joined into the command string without quoting, which allows - the use of shell metacharacters such as `|` for pipes. -
- */ -public class ShellCommandRequirementImpl extends SaveableImpl implements ShellCommandRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private ShellCommandRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#ShellCommandRequirement/class
- *
- * Always 'ShellCommandRequirement' *
- */ - - public ShellCommandRequirement_class getClass_() { - return this.class_; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of ShellCommandRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public ShellCommandRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("ShellCommandRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - ShellCommandRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_ShellCommandRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (ShellCommandRequirement_class) class_; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ShellCommandRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_2/ShellCommandRequirement_class.java deleted file mode 100644 index ec6148d8..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ShellCommandRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum ShellCommandRequirement_class { - SHELLCOMMANDREQUIREMENT("ShellCommandRequirement"); - - private static String[] symbols = new String[] {"ShellCommandRequirement"}; - private String docVal; - - private ShellCommandRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static ShellCommandRequirement_class fromDocumentVal(final String docVal) { - for(final ShellCommandRequirement_class val : ShellCommandRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", ShellCommandRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Sink.java b/src/main/java/org/w3id/cwl/cwl1_2/Sink.java deleted file mode 100644 index 26e1c054..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/Sink.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#Sink
- */ -public interface Sink extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#source
- *
- * Specifies one or more workflow parameters that will provide input to - * the underlying step parameter. - * *
- */ - - Object getSource(); - /** - * Getter for property https://w3id.org/cwl/cwl#Sink/linkMerge
- *
- * The method to use to merge multiple inbound links into a single array. - * If not specified, the default method is "merge_nested". - * *
- */ - - java.util.Optional getLinkMerge(); - /** - * Getter for property https://w3id.org/cwl/cwl#Sink/pickValue
- *
- * The method to use to choose non-null elements among multiple sources. - * *
- */ - - java.util.Optional getPickValue(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/SoftwarePackage.java b/src/main/java/org/w3id/cwl/cwl1_2/SoftwarePackage.java deleted file mode 100644 index 9578da50..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/SoftwarePackage.java +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#SoftwarePackage
This interface is implemented by {@link SoftwarePackageImpl}
- */ -public interface SoftwarePackage extends Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/package
- *
- * The name of the software to be made available. If the name is - * common, inconsistent, or otherwise ambiguous it should be combined with - * one or more identifiers in the `specs` field. - * *
- */ - - String getPackage(); - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/version
- *
- * The (optional) versions of the software that are known to be - * compatible. - * *
- */ - - java.util.Optional> getVersion(); - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/specs
- *
- * One or more [IRI](https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier)s - * identifying resources for installing or enabling the software named in - * the `package` field. Implementations may provide resolvers which map - * these software identifier IRIs to some configuration action; or they can - * use only the name from the `package` field on a best effort basis. - * - * For example, the IRI https://packages.debian.org/bowtie could - * be resolved with `apt-get install bowtie`. The IRI - * https://anaconda.org/bioconda/bowtie could be resolved with `conda - * install -c bioconda bowtie`. - * - * IRIs can also be system independent and used to map to a specific - * software installation or selection mechanism. - * Using [RRID](https://www.identifiers.org/rrid/) as an example: - * https://identifiers.org/rrid/RRID:SCR_005476 - * could be fulfilled using the above-mentioned Debian or bioconda - * package, a local installation managed by [Environment Modules](https://modules.sourceforge.net/), - * or any other mechanism the platform chooses. IRIs can also be from - * identifier sources that are discipline specific yet still system - * independent. As an example, the equivalent [ELIXIR Tools and Data - * Service Registry](https://bio.tools) IRI to the previous RRID example is - * https://bio.tools/tool/bowtie2/version/2.2.8. - * If supported by a given registry, implementations are encouraged to - * query these system independent software identifier IRIs directly for - * links to packaging systems. - * - * A site specific IRI can be listed as well. For example, an academic - * computing cluster using Environment Modules could list the IRI - * `https://hpc.example.edu/modules/bowtie-tbb/1.22` to indicate that - * `module load bowtie-tbb/1.1.2` should be executed to make available - * `bowtie` version 1.1.2 compiled with the TBB library prior to running - * the accompanying Workflow or CommandLineTool. Note that the example IRI - * is specific to a particular institution and computing environment as - * the Environment Modules system does not have a common namespace or - * standardized naming convention. - * - * This last example is the least portable and should only be used if - * mechanisms based off of the `package` field or more generic IRIs are - * unavailable or unsuitable. While harmless to other sites, site specific - * software IRIs should be left out of shared CWL descriptions to avoid - * clutter. - * *
- */ - - java.util.Optional> getSpecs(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/SoftwarePackageImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/SoftwarePackageImpl.java deleted file mode 100644 index 431c19ee..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/SoftwarePackageImpl.java +++ /dev/null @@ -1,198 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#SoftwarePackage
- */ -public class SoftwarePackageImpl extends SaveableImpl implements SoftwarePackage { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private String package_; - - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/package
- *
- * The name of the software to be made available. If the name is - * common, inconsistent, or otherwise ambiguous it should be combined with - * one or more identifiers in the `specs` field. - * *
- */ - - public String getPackage() { - return this.package_; - } - - private java.util.Optional> version; - - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/version
- *
- * The (optional) versions of the software that are known to be - * compatible. - * *
- */ - - public java.util.Optional> getVersion() { - return this.version; - } - - private java.util.Optional> specs; - - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwarePackage/specs
- *
- * One or more [IRI](https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier)s - * identifying resources for installing or enabling the software named in - * the `package` field. Implementations may provide resolvers which map - * these software identifier IRIs to some configuration action; or they can - * use only the name from the `package` field on a best effort basis. - * - * For example, the IRI https://packages.debian.org/bowtie could - * be resolved with `apt-get install bowtie`. The IRI - * https://anaconda.org/bioconda/bowtie could be resolved with `conda - * install -c bioconda bowtie`. - * - * IRIs can also be system independent and used to map to a specific - * software installation or selection mechanism. - * Using [RRID](https://www.identifiers.org/rrid/) as an example: - * https://identifiers.org/rrid/RRID:SCR_005476 - * could be fulfilled using the above-mentioned Debian or bioconda - * package, a local installation managed by [Environment Modules](https://modules.sourceforge.net/), - * or any other mechanism the platform chooses. IRIs can also be from - * identifier sources that are discipline specific yet still system - * independent. As an example, the equivalent [ELIXIR Tools and Data - * Service Registry](https://bio.tools) IRI to the previous RRID example is - * https://bio.tools/tool/bowtie2/version/2.2.8. - * If supported by a given registry, implementations are encouraged to - * query these system independent software identifier IRIs directly for - * links to packaging systems. - * - * A site specific IRI can be listed as well. For example, an academic - * computing cluster using Environment Modules could list the IRI - * `https://hpc.example.edu/modules/bowtie-tbb/1.22` to indicate that - * `module load bowtie-tbb/1.1.2` should be executed to make available - * `bowtie` version 1.1.2 compiled with the TBB library prior to running - * the accompanying Workflow or CommandLineTool. Note that the example IRI - * is specific to a particular institution and computing environment as - * the Environment Modules system does not have a common namespace or - * standardized naming convention. - * - * This last example is the least portable and should only be used if - * mechanisms based off of the `package` field or more generic IRIs are - * unavailable or unsuitable. While harmless to other sites, site specific - * software IRIs should be left out of shared CWL descriptions to avoid - * clutter. - * *
- */ - - public java.util.Optional> getSpecs() { - return this.specs; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of SoftwarePackageImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public SoftwarePackageImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("SoftwarePackageImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - String package_; - try { - package_ = - LoaderInstances - .StringInstance - .loadField(__doc.get("package"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - package_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `package` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional> version; - - if (__doc.containsKey("version")) { - try { - version = - LoaderInstances - .optional_array_of_StringInstance - .loadField(__doc.get("version"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - version = null; // won't be used but prevents compiler from complaining. - final String __message = "the `version` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - version = null; - } - java.util.Optional> specs; - - if (__doc.containsKey("specs")) { - try { - specs = - LoaderInstances - .uri_optional_array_of_StringInstance_False_False_None_True - .loadField(__doc.get("specs"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - specs = null; // won't be used but prevents compiler from complaining. - final String __message = "the `specs` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - specs = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.package_ = (String) package_; - this.version = (java.util.Optional>) version; - this.specs = (java.util.Optional>) specs; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/SoftwareRequirement.java b/src/main/java/org/w3id/cwl/cwl1_2/SoftwareRequirement.java deleted file mode 100644 index baac3388..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/SoftwareRequirement.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#SoftwareRequirement
This interface is implemented by {@link SoftwareRequirementImpl}
- A list of software packages that should be configured in the environment of - the defined process. -
- */ -public interface SoftwareRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwareRequirement/class
- *
- * Always 'SoftwareRequirement' *
- */ - - SoftwareRequirement_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwareRequirement/packages
- *
- * The list of software to be configured. *
- */ - - java.util.List getPackages(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/SoftwareRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/SoftwareRequirementImpl.java deleted file mode 100644 index 5fb6a59b..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/SoftwareRequirementImpl.java +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#SoftwareRequirement
- A list of software packages that should be configured in the environment of - the defined process. -
- */ -public class SoftwareRequirementImpl extends SaveableImpl implements SoftwareRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private SoftwareRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwareRequirement/class
- *
- * Always 'SoftwareRequirement' *
- */ - - public SoftwareRequirement_class getClass_() { - return this.class_; - } - - private java.util.List packages; - - /** - * Getter for property https://w3id.org/cwl/cwl#SoftwareRequirement/packages
- *
- * The list of software to be configured. *
- */ - - public java.util.List getPackages() { - return this.packages; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of SoftwareRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public SoftwareRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("SoftwareRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - SoftwareRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_SoftwareRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.List packages; - try { - packages = - LoaderInstances - .idmap_packages_array_of_SoftwarePackage - .loadField(__doc.get("packages"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - packages = null; // won't be used but prevents compiler from complaining. - final String __message = "the `packages` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (SoftwareRequirement_class) class_; - this.packages = (java.util.List) packages; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/SoftwareRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_2/SoftwareRequirement_class.java deleted file mode 100644 index f3c58f85..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/SoftwareRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum SoftwareRequirement_class { - SOFTWAREREQUIREMENT("SoftwareRequirement"); - - private static String[] symbols = new String[] {"SoftwareRequirement"}; - private String docVal; - - private SoftwareRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static SoftwareRequirement_class fromDocumentVal(final String docVal) { - for(final SoftwareRequirement_class val : SoftwareRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", SoftwareRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/StepInputExpressionRequirement.java b/src/main/java/org/w3id/cwl/cwl1_2/StepInputExpressionRequirement.java deleted file mode 100644 index f5ed04d5..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/StepInputExpressionRequirement.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#StepInputExpressionRequirement
This interface is implemented by {@link StepInputExpressionRequirementImpl}
- Indicate that the workflow platform must support the `valueFrom` field - of [WorkflowStepInput](#WorkflowStepInput). -
- */ -public interface StepInputExpressionRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#StepInputExpressionRequirement/class
- *
- * Always 'StepInputExpressionRequirement' *
- */ - - StepInputExpressionRequirement_class getClass_(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/StepInputExpressionRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/StepInputExpressionRequirementImpl.java deleted file mode 100644 index 05543012..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/StepInputExpressionRequirementImpl.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#StepInputExpressionRequirement
- Indicate that the workflow platform must support the `valueFrom` field - of [WorkflowStepInput](#WorkflowStepInput). -
- */ -public class StepInputExpressionRequirementImpl extends SaveableImpl implements StepInputExpressionRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private StepInputExpressionRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#StepInputExpressionRequirement/class
- *
- * Always 'StepInputExpressionRequirement' *
- */ - - public StepInputExpressionRequirement_class getClass_() { - return this.class_; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of StepInputExpressionRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public StepInputExpressionRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("StepInputExpressionRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - StepInputExpressionRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_StepInputExpressionRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (StepInputExpressionRequirement_class) class_; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/StepInputExpressionRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_2/StepInputExpressionRequirement_class.java deleted file mode 100644 index 555e616b..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/StepInputExpressionRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum StepInputExpressionRequirement_class { - STEPINPUTEXPRESSIONREQUIREMENT("StepInputExpressionRequirement"); - - private static String[] symbols = new String[] {"StepInputExpressionRequirement"}; - private String docVal; - - private StepInputExpressionRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static StepInputExpressionRequirement_class fromDocumentVal(final String docVal) { - for(final StepInputExpressionRequirement_class val : StepInputExpressionRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", StepInputExpressionRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/SubworkflowFeatureRequirement.java b/src/main/java/org/w3id/cwl/cwl1_2/SubworkflowFeatureRequirement.java deleted file mode 100644 index 9cdbb840..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/SubworkflowFeatureRequirement.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#SubworkflowFeatureRequirement
This interface is implemented by {@link SubworkflowFeatureRequirementImpl}
- Indicates that the workflow platform must support nested workflows in - the `run` field of [WorkflowStep](#WorkflowStep). -
- */ -public interface SubworkflowFeatureRequirement extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#SubworkflowFeatureRequirement/class
- *
- * Always 'SubworkflowFeatureRequirement' *
- */ - - SubworkflowFeatureRequirement_class getClass_(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/SubworkflowFeatureRequirementImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/SubworkflowFeatureRequirementImpl.java deleted file mode 100644 index b87028b7..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/SubworkflowFeatureRequirementImpl.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#SubworkflowFeatureRequirement
- Indicates that the workflow platform must support nested workflows in - the `run` field of [WorkflowStep](#WorkflowStep). -
- */ -public class SubworkflowFeatureRequirementImpl extends SaveableImpl implements SubworkflowFeatureRequirement { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private SubworkflowFeatureRequirement_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#SubworkflowFeatureRequirement/class
- *
- * Always 'SubworkflowFeatureRequirement' *
- */ - - public SubworkflowFeatureRequirement_class getClass_() { - return this.class_; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of SubworkflowFeatureRequirementImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public SubworkflowFeatureRequirementImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("SubworkflowFeatureRequirementImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - SubworkflowFeatureRequirement_class class_; - try { - class_ = - LoaderInstances - .uri_SubworkflowFeatureRequirement_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (SubworkflowFeatureRequirement_class) class_; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/SubworkflowFeatureRequirement_class.java b/src/main/java/org/w3id/cwl/cwl1_2/SubworkflowFeatureRequirement_class.java deleted file mode 100644 index 94d01c88..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/SubworkflowFeatureRequirement_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum SubworkflowFeatureRequirement_class { - SUBWORKFLOWFEATUREREQUIREMENT("SubworkflowFeatureRequirement"); - - private static String[] symbols = new String[] {"SubworkflowFeatureRequirement"}; - private String docVal; - - private SubworkflowFeatureRequirement_class(final String docVal) { - this.docVal = docVal; - } - - public static SubworkflowFeatureRequirement_class fromDocumentVal(final String docVal) { - for(final SubworkflowFeatureRequirement_class val : SubworkflowFeatureRequirement_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", SubworkflowFeatureRequirement_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ToolTimeLimit.java b/src/main/java/org/w3id/cwl/cwl1_2/ToolTimeLimit.java deleted file mode 100644 index b47df0b4..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ToolTimeLimit.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#ToolTimeLimit
This interface is implemented by {@link ToolTimeLimitImpl}
- Set an upper limit on the execution time of a CommandLineTool. - A CommandLineTool whose execution duration exceeds the time - limit may be preemptively terminated and considered failed. - May also be used by batch systems to make scheduling decisions. - The execution duration excludes external operations, such as - staging of files, pulling a docker image etc, and only counts - wall-time for the execution of the command line itself. -
- */ -public interface ToolTimeLimit extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#ToolTimeLimit/class
- *
- * Always 'ToolTimeLimit' *
- */ - - ToolTimeLimit_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#ToolTimeLimit/timelimit
- *
- * The time limit, in seconds. A time limit of zero means no - * time limit. Negative time limits are an error. - * *
- */ - - Object getTimelimit(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ToolTimeLimitImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/ToolTimeLimitImpl.java deleted file mode 100644 index b2ea528f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ToolTimeLimitImpl.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#ToolTimeLimit
- Set an upper limit on the execution time of a CommandLineTool. - A CommandLineTool whose execution duration exceeds the time - limit may be preemptively terminated and considered failed. - May also be used by batch systems to make scheduling decisions. - The execution duration excludes external operations, such as - staging of files, pulling a docker image etc, and only counts - wall-time for the execution of the command line itself. -
- */ -public class ToolTimeLimitImpl extends SaveableImpl implements ToolTimeLimit { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private ToolTimeLimit_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#ToolTimeLimit/class
- *
- * Always 'ToolTimeLimit' *
- */ - - public ToolTimeLimit_class getClass_() { - return this.class_; - } - - private Object timelimit; - - /** - * Getter for property https://w3id.org/cwl/cwl#ToolTimeLimit/timelimit
- *
- * The time limit, in seconds. A time limit of zero means no - * time limit. Negative time limits are an error. - * *
- */ - - public Object getTimelimit() { - return this.timelimit; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of ToolTimeLimitImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public ToolTimeLimitImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("ToolTimeLimitImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - ToolTimeLimit_class class_; - try { - class_ = - LoaderInstances - .uri_ToolTimeLimit_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Object timelimit; - try { - timelimit = - LoaderInstances - .union_of_IntegerInstance_or_LongInstance_or_ExpressionLoader - .loadField(__doc.get("timelimit"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - timelimit = null; // won't be used but prevents compiler from complaining. - final String __message = "the `timelimit` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (ToolTimeLimit_class) class_; - this.timelimit = (Object) timelimit; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/ToolTimeLimit_class.java b/src/main/java/org/w3id/cwl/cwl1_2/ToolTimeLimit_class.java deleted file mode 100644 index 987f0659..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/ToolTimeLimit_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum ToolTimeLimit_class { - TOOLTIMELIMIT("ToolTimeLimit"); - - private static String[] symbols = new String[] {"ToolTimeLimit"}; - private String docVal; - - private ToolTimeLimit_class(final String docVal) { - this.docVal = docVal; - } - - public static ToolTimeLimit_class fromDocumentVal(final String docVal) { - for(final ToolTimeLimit_class val : ToolTimeLimit_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", ToolTimeLimit_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/UnionSchema.java b/src/main/java/org/w3id/cwl/cwl1_2/UnionSchema.java deleted file mode 100644 index 42011267..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/UnionSchema.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/salad#UnionSchema
This interface is implemented by {@link UnionSchemaImpl}
- */ -public interface UnionSchema extends Saveable { - /** - * Getter for property https://w3id.org/cwl/salad#names
- *
- * Defines the type of the union elements. *
- */ - - Object getNames(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `union` *
- */ - - Union_name getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/UnionSchemaImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/UnionSchemaImpl.java deleted file mode 100644 index d4b7ced8..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/UnionSchemaImpl.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/salad#UnionSchema
- */ -public class UnionSchemaImpl extends SaveableImpl implements UnionSchema { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private Object names; - - /** - * Getter for property https://w3id.org/cwl/salad#names
- *
- * Defines the type of the union elements. *
- */ - - public Object getNames() { - return this.names; - } - - private Union_name type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Must be `union` *
- */ - - public Union_name getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of UnionSchemaImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public UnionSchemaImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("UnionSchemaImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - Object names; - try { - names = - LoaderInstances - .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 - .loadField(__doc.get("names"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - names = null; // won't be used but prevents compiler from complaining. - final String __message = "the `names` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Union_name type; - try { - type = - LoaderInstances - .typedsl_Union_name_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.names = (Object) names; - this.type = (Union_name) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Union_name.java b/src/main/java/org/w3id/cwl/cwl1_2/Union_name.java deleted file mode 100644 index e64be468..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/Union_name.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum Union_name { - UNION("union"); - - private static String[] symbols = new String[] {"union"}; - private String docVal; - - private Union_name(final String docVal) { - this.docVal = docVal; - } - - public static Union_name fromDocumentVal(final String docVal) { - for(final Union_name val : Union_name.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", Union_name.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/WorkReuse.java b/src/main/java/org/w3id/cwl/cwl1_2/WorkReuse.java deleted file mode 100644 index 3f70b297..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/WorkReuse.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#WorkReuse
This interface is implemented by {@link WorkReuseImpl}
- For implementations that support reusing output from past work (on - the assumption that same code and same input produce same - results), control whether to enable or disable the reuse behavior - for a particular tool or step (to accommodate situations where that - assumption is incorrect). A reused step is not executed but - instead returns the same output as the original execution. - - If `WorkReuse` is not specified, correct tools should assume it - is enabled by default. -
- */ -public interface WorkReuse extends ProcessRequirement, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#WorkReuse/class
- *
- * Always 'WorkReuse' *
- */ - - WorkReuse_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#WorkReuse/enableReuse
- - */ - - Object getEnableReuse(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/WorkReuseImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/WorkReuseImpl.java deleted file mode 100644 index cee719e0..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/WorkReuseImpl.java +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkReuse
- For implementations that support reusing output from past work (on - the assumption that same code and same input produce same - results), control whether to enable or disable the reuse behavior - for a particular tool or step (to accommodate situations where that - assumption is incorrect). A reused step is not executed but - instead returns the same output as the original execution. - - If `WorkReuse` is not specified, correct tools should assume it - is enabled by default. -
- */ -public class WorkReuseImpl extends SaveableImpl implements WorkReuse { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private WorkReuse_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#WorkReuse/class
- *
- * Always 'WorkReuse' *
- */ - - public WorkReuse_class getClass_() { - return this.class_; - } - - private Object enableReuse; - - /** - * Getter for property https://w3id.org/cwl/cwl#WorkReuse/enableReuse
- - */ - - public Object getEnableReuse() { - return this.enableReuse; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of WorkReuseImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public WorkReuseImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("WorkReuseImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - WorkReuse_class class_; - try { - class_ = - LoaderInstances - .uri_WorkReuse_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - Object enableReuse; - try { - enableReuse = - LoaderInstances - .union_of_BooleanInstance_or_ExpressionLoader - .loadField(__doc.get("enableReuse"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - enableReuse = null; // won't be used but prevents compiler from complaining. - final String __message = "the `enableReuse` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.class_ = (WorkReuse_class) class_; - this.enableReuse = (Object) enableReuse; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/WorkReuse_class.java b/src/main/java/org/w3id/cwl/cwl1_2/WorkReuse_class.java deleted file mode 100644 index 2da8c3b2..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/WorkReuse_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum WorkReuse_class { - WORKREUSE("WorkReuse"); - - private static String[] symbols = new String[] {"WorkReuse"}; - private String docVal; - - private WorkReuse_class(final String docVal) { - this.docVal = docVal; - } - - public static WorkReuse_class fromDocumentVal(final String docVal) { - for(final WorkReuse_class val : WorkReuse_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", WorkReuse_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Workflow.java b/src/main/java/org/w3id/cwl/cwl1_2/Workflow.java deleted file mode 100644 index 86979c04..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/Workflow.java +++ /dev/null @@ -1,198 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#Workflow
This interface is implemented by {@link WorkflowImpl}
- A workflow describes a set of **steps** and the **dependencies** between - those steps. When a step produces output that will be consumed by a - second step, the first step is a dependency of the second step. - - When there is a dependency, the workflow engine must execute the preceding - step and wait for it to successfully produce output before executing the - dependent step. If two steps are defined in the workflow graph that - are not directly or indirectly dependent, these steps are **independent**, - and may execute in any order or execute concurrently. A workflow is - complete when all steps have been executed. - - Dependencies between parameters are expressed using the `source` - field on [workflow step input parameters](#WorkflowStepInput) and - `outputSource` field on [workflow output - parameters](#WorkflowOutputParameter). - - The `source` field on each workflow step input parameter expresses - the data links that contribute to the value of the step input - parameter (the "sink"). A workflow step can only begin execution - when every data link connected to a step has been fulfilled. - - The `outputSource` field on each workflow step input parameter - expresses the data links that contribute to the value of the - workflow output parameter (the "sink"). Workflow execution cannot - complete successfully until every data link connected to an output - parameter has been fulfilled. - - ## Workflow success and failure - - A completed step must result in one of `success`, `temporaryFailure` or - `permanentFailure` states. An implementation may choose to retry a step - execution which resulted in `temporaryFailure`. An implementation may - choose to either continue running other steps of a workflow, or terminate - immediately upon `permanentFailure`. - - * If any step of a workflow execution results in `permanentFailure`, then - the workflow status is `permanentFailure`. - - * If one or more steps result in `temporaryFailure` and all other steps - complete `success` or are not executed, then the workflow status is - `temporaryFailure`. - - * If all workflow steps are executed and complete with `success`, then the - workflow status is `success`. - - # Extensions - - [ScatterFeatureRequirement](#ScatterFeatureRequirement) and - [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) are - available as standard [extensions](#Extensions_and_Metadata) to core - workflow semantics. -
- */ -public interface Workflow extends Process, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Process/id
- *
- * The unique identifier for this object. - * - * Only useful for `$graph` at `Process` level. Should not be exposed - * to users in graphical or terminal user interfaces. - * *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#Workflow/class
- - */ - - Workflow_class getClass_(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#inputs
- *
- * Defines the input parameters of the process. The process is ready to - * run when all required input parameters are associated with concrete - * values. Input parameters include a schema for each parameter which is - * used to validate the input object. It may also be used to build a user - * interface for constructing the input object. - * - * When accepting an input object, all input parameters must have a value. - * If an input parameter is missing from the input object, it must be - * assigned a value of `null` (or the value of `default` for that - * parameter, if provided) for the purposes of validation and evaluation - * of expressions. - * *
- */ - - java.util.List getInputs(); - /** - * Getter for property https://w3id.org/cwl/cwl#outputs
- *
- * Defines the parameters representing the output of the process. May be - * used to generate and/or validate the output object. - * *
- */ - - java.util.List getOutputs(); - /** - * Getter for property https://w3id.org/cwl/cwl#requirements
- *
- * Declares requirements that apply to either the runtime environment or the - * workflow engine that must be met in order to execute this process. If - * an implementation cannot satisfy all requirements, or a requirement is - * listed which is not recognized by the implementation, it is a fatal - * error and the implementation must not attempt to run the process, - * unless overridden at user option. - * *
- */ - - java.util.Optional> getRequirements(); - /** - * Getter for property https://w3id.org/cwl/cwl#hints
- *
- * Declares hints applying to either the runtime environment or the - * workflow engine that may be helpful in executing this process. It is - * not an error if an implementation cannot satisfy all hints, however - * the implementation may report a warning. - * *
- */ - - java.util.Optional> getHints(); - /** - * Getter for property https://w3id.org/cwl/cwl#cwlVersion
- *
- * CWL document version. Always required at the document root. Not - * required for a Process embedded inside another Process. - * *
- */ - - java.util.Optional getCwlVersion(); - /** - * Getter for property https://w3id.org/cwl/cwl#Process/intent
- *
- * An identifier for the type of computational operation, of this Process. - * Especially useful for [`Operation`](Workflow.html#Operation), but can also be used for - * [`CommandLineTool`](CommandLineTool.html#CommandLineTool), - * [`Workflow`](Workflow.html#Workflow), or [ExpressionTool](Workflow.html#ExpressionTool). - * - * If provided, then this must be an IRI of a concept node that - * represents the type of operation, preferably defined within an ontology. - * - * For example, in the domain of bioinformatics, one can use an IRI from - * the EDAM Ontology's [Operation concept nodes](http://edamontology.org/operation_0004), - * like [Alignment](http://edamontology.org/operation_2928), - * or [Clustering](http://edamontology.org/operation_3432); or a more - * specific Operation concept like - * [Split read mapping](http://edamontology.org/operation_3199). - * *
- */ - - java.util.Optional> getIntent(); - /** - * Getter for property https://w3id.org/cwl/cwl#Workflow/steps
- *
- * The individual steps that make up the workflow. Each step is executed when all of its - * input data links are fulfilled. An implementation may choose to execute - * the steps in a different order than listed and/or execute steps - * concurrently, provided that dependencies between steps are met. - * *
- */ - - java.util.List getSteps(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/WorkflowImpl.java deleted file mode 100644 index bb9fc43a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowImpl.java +++ /dev/null @@ -1,486 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#Workflow
- A workflow describes a set of **steps** and the **dependencies** between - those steps. When a step produces output that will be consumed by a - second step, the first step is a dependency of the second step. - - When there is a dependency, the workflow engine must execute the preceding - step and wait for it to successfully produce output before executing the - dependent step. If two steps are defined in the workflow graph that - are not directly or indirectly dependent, these steps are **independent**, - and may execute in any order or execute concurrently. A workflow is - complete when all steps have been executed. - - Dependencies between parameters are expressed using the `source` - field on [workflow step input parameters](#WorkflowStepInput) and - `outputSource` field on [workflow output - parameters](#WorkflowOutputParameter). - - The `source` field on each workflow step input parameter expresses - the data links that contribute to the value of the step input - parameter (the "sink"). A workflow step can only begin execution - when every data link connected to a step has been fulfilled. - - The `outputSource` field on each workflow step input parameter - expresses the data links that contribute to the value of the - workflow output parameter (the "sink"). Workflow execution cannot - complete successfully until every data link connected to an output - parameter has been fulfilled. - - ## Workflow success and failure - - A completed step must result in one of `success`, `temporaryFailure` or - `permanentFailure` states. An implementation may choose to retry a step - execution which resulted in `temporaryFailure`. An implementation may - choose to either continue running other steps of a workflow, or terminate - immediately upon `permanentFailure`. - - * If any step of a workflow execution results in `permanentFailure`, then - the workflow status is `permanentFailure`. - - * If one or more steps result in `temporaryFailure` and all other steps - complete `success` or are not executed, then the workflow status is - `temporaryFailure`. - - * If all workflow steps are executed and complete with `success`, then the - workflow status is `success`. - - # Extensions - - [ScatterFeatureRequirement](#ScatterFeatureRequirement) and - [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) are - available as standard [extensions](#Extensions_and_Metadata) to core - workflow semantics. -
- */ -public class WorkflowImpl extends SaveableImpl implements Workflow { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Process/id
- *
- * The unique identifier for this object. - * - * Only useful for `$graph` at `Process` level. Should not be exposed - * to users in graphical or terminal user interfaces. - * *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private Workflow_class class_; - - /** - * Getter for property https://w3id.org/cwl/cwl#Workflow/class
- - */ - - public Workflow_class getClass_() { - return this.class_; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private java.util.List inputs; - - /** - * Getter for property https://w3id.org/cwl/cwl#inputs
- *
- * Defines the input parameters of the process. The process is ready to - * run when all required input parameters are associated with concrete - * values. Input parameters include a schema for each parameter which is - * used to validate the input object. It may also be used to build a user - * interface for constructing the input object. - * - * When accepting an input object, all input parameters must have a value. - * If an input parameter is missing from the input object, it must be - * assigned a value of `null` (or the value of `default` for that - * parameter, if provided) for the purposes of validation and evaluation - * of expressions. - * *
- */ - - public java.util.List getInputs() { - return this.inputs; - } - - private java.util.List outputs; - - /** - * Getter for property https://w3id.org/cwl/cwl#outputs
- *
- * Defines the parameters representing the output of the process. May be - * used to generate and/or validate the output object. - * *
- */ - - public java.util.List getOutputs() { - return this.outputs; - } - - private java.util.Optional> requirements; - - /** - * Getter for property https://w3id.org/cwl/cwl#requirements
- *
- * Declares requirements that apply to either the runtime environment or the - * workflow engine that must be met in order to execute this process. If - * an implementation cannot satisfy all requirements, or a requirement is - * listed which is not recognized by the implementation, it is a fatal - * error and the implementation must not attempt to run the process, - * unless overridden at user option. - * *
- */ - - public java.util.Optional> getRequirements() { - return this.requirements; - } - - private java.util.Optional> hints; - - /** - * Getter for property https://w3id.org/cwl/cwl#hints
- *
- * Declares hints applying to either the runtime environment or the - * workflow engine that may be helpful in executing this process. It is - * not an error if an implementation cannot satisfy all hints, however - * the implementation may report a warning. - * *
- */ - - public java.util.Optional> getHints() { - return this.hints; - } - - private java.util.Optional cwlVersion; - - /** - * Getter for property https://w3id.org/cwl/cwl#cwlVersion
- *
- * CWL document version. Always required at the document root. Not - * required for a Process embedded inside another Process. - * *
- */ - - public java.util.Optional getCwlVersion() { - return this.cwlVersion; - } - - private java.util.Optional> intent; - - /** - * Getter for property https://w3id.org/cwl/cwl#Process/intent
- *
- * An identifier for the type of computational operation, of this Process. - * Especially useful for [`Operation`](Workflow.html#Operation), but can also be used for - * [`CommandLineTool`](CommandLineTool.html#CommandLineTool), - * [`Workflow`](Workflow.html#Workflow), or [ExpressionTool](Workflow.html#ExpressionTool). - * - * If provided, then this must be an IRI of a concept node that - * represents the type of operation, preferably defined within an ontology. - * - * For example, in the domain of bioinformatics, one can use an IRI from - * the EDAM Ontology's [Operation concept nodes](http://edamontology.org/operation_0004), - * like [Alignment](http://edamontology.org/operation_2928), - * or [Clustering](http://edamontology.org/operation_3432); or a more - * specific Operation concept like - * [Split read mapping](http://edamontology.org/operation_3199). - * *
- */ - - public java.util.Optional> getIntent() { - return this.intent; - } - - private java.util.List steps; - - /** - * Getter for property https://w3id.org/cwl/cwl#Workflow/steps
- *
- * The individual steps that make up the workflow. Each step is executed when all of its - * input data links are fulfilled. An implementation may choose to execute - * the steps in a different order than listed and/or execute steps - * concurrently, provided that dependencies between steps are met. - * *
- */ - - public java.util.List getSteps() { - return this.steps; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of WorkflowImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public WorkflowImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("WorkflowImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - Workflow_class class_; - try { - class_ = - LoaderInstances - .uri_Workflow_class_False_True_None_None - .loadField(__doc.get("class"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - class_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `class` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - java.util.List inputs; - try { - inputs = - LoaderInstances - .idmap_inputs_array_of_WorkflowInputParameter - .loadField(__doc.get("inputs"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputs = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputs` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.List outputs; - try { - outputs = - LoaderInstances - .idmap_outputs_array_of_WorkflowOutputParameter - .loadField(__doc.get("outputs"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - outputs = null; // won't be used but prevents compiler from complaining. - final String __message = "the `outputs` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional> requirements; - - if (__doc.containsKey("requirements")) { - try { - requirements = - LoaderInstances - .idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement - .loadField(__doc.get("requirements"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - requirements = null; // won't be used but prevents compiler from complaining. - final String __message = "the `requirements` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - requirements = null; - } - java.util.Optional> hints; - - if (__doc.containsKey("hints")) { - try { - hints = - LoaderInstances - .idmap_hints_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance - .loadField(__doc.get("hints"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - hints = null; // won't be used but prevents compiler from complaining. - final String __message = "the `hints` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - hints = null; - } - java.util.Optional cwlVersion; - - if (__doc.containsKey("cwlVersion")) { - try { - cwlVersion = - LoaderInstances - .uri_optional_CWLVersion_False_True_None_None - .loadField(__doc.get("cwlVersion"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - cwlVersion = null; // won't be used but prevents compiler from complaining. - final String __message = "the `cwlVersion` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - cwlVersion = null; - } - java.util.Optional> intent; - - if (__doc.containsKey("intent")) { - try { - intent = - LoaderInstances - .uri_optional_array_of_StringInstance_True_False_None_None - .loadField(__doc.get("intent"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - intent = null; // won't be used but prevents compiler from complaining. - final String __message = "the `intent` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - intent = null; - } - java.util.List steps; - try { - steps = - LoaderInstances - .idmap_steps_array_of_WorkflowStep - .loadField(__doc.get("steps"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - steps = null; // won't be used but prevents compiler from complaining. - final String __message = "the `steps` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.id = (java.util.Optional) id; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.inputs = (java.util.List) inputs; - this.outputs = (java.util.List) outputs; - this.requirements = (java.util.Optional>) requirements; - this.hints = (java.util.Optional>) hints; - this.cwlVersion = (java.util.Optional) cwlVersion; - this.intent = (java.util.Optional>) intent; - this.class_ = (Workflow_class) class_; - this.steps = (java.util.List) steps; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowInputParameter.java b/src/main/java/org/w3id/cwl/cwl1_2/WorkflowInputParameter.java deleted file mode 100644 index 2683dcba..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowInputParameter.java +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowInputParameter
This interface is implemented by {@link WorkflowInputParameterImpl}
- */ -public interface WorkflowInputParameter extends InputParameter, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - Object getFormat(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * If true, the file (or each file in the array) must be a UTF-8 - * text file 64 KiB or smaller, and the implementation must read - * the entire contents of the file (or file array) and place it - * in the `contents` field of the File object for use by - * expressions. If the size of the file is greater than 64 KiB, - * the implementation must raise a fatal error. - * *
- */ - - java.util.Optional getLoadContents(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - java.util.Optional getLoadListing(); - /** - * Getter for property https://w3id.org/cwl/salad#default
- *
- * The default value to use for this parameter if the parameter is missing - * from the input object, or if the value of the parameter in the input - * object is `null`. Default values are applied before evaluating expressions - * (e.g. dependent `valueFrom` fields). - * *
- */ - - java.util.Optional getDefault(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * *
- */ - - Object getType(); - /** - * Getter for property https://w3id.org/cwl/cwl#WorkflowInputParameter/inputBinding
- *
- * Deprecated. Preserved for v1.0 backwards compatibility. Will be removed in - * CWL v2.0. Use `WorkflowInputParameter.loadContents` instead. - * *
- */ - - java.util.Optional getInputBinding(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowInputParameterImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/WorkflowInputParameterImpl.java deleted file mode 100644 index e60192b7..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowInputParameterImpl.java +++ /dev/null @@ -1,484 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowInputParameter
- */ -public class WorkflowInputParameterImpl extends SaveableImpl implements WorkflowInputParameter { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional streamable; - - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - public java.util.Optional getStreamable() { - return this.streamable; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This must be one or more IRIs of concept nodes - * that represents file formats which are allowed as input to this - * parameter, preferably defined within an ontology. If no ontology is - * available, file formats may be tested by exact match. - * *
- */ - - public Object getFormat() { - return this.format; - } - - private java.util.Optional loadContents; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * If true, the file (or each file in the array) must be a UTF-8 - * text file 64 KiB or smaller, and the implementation must read - * the entire contents of the file (or file array) and place it - * in the `contents` field of the File object for use by - * expressions. If the size of the file is greater than 64 KiB, - * the implementation must raise a fatal error. - * *
- */ - - public java.util.Optional getLoadContents() { - return this.loadContents; - } - - private java.util.Optional loadListing; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - public java.util.Optional getLoadListing() { - return this.loadListing; - } - - private java.util.Optional default_; - - /** - * Getter for property https://w3id.org/cwl/salad#default
- *
- * The default value to use for this parameter if the parameter is missing - * from the input object, or if the value of the parameter in the input - * object is `null`. Default values are applied before evaluating expressions - * (e.g. dependent `valueFrom` fields). - * *
- */ - - public java.util.Optional getDefault() { - return this.default_; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * *
- */ - - public Object getType() { - return this.type; - } - - private java.util.Optional inputBinding; - - /** - * Getter for property https://w3id.org/cwl/cwl#WorkflowInputParameter/inputBinding
- *
- * Deprecated. Preserved for v1.0 backwards compatibility. Will be removed in - * CWL v2.0. Use `WorkflowInputParameter.loadContents` instead. - * *
- */ - - public java.util.Optional getInputBinding() { - return this.inputBinding; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of WorkflowInputParameterImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public WorkflowInputParameterImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("WorkflowInputParameterImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional streamable; - - if (__doc.containsKey("streamable")) { - try { - streamable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - streamable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `streamable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - streamable = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - java.util.Optional loadContents; - - if (__doc.containsKey("loadContents")) { - try { - loadContents = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadContents = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadContents` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadContents = null; - } - java.util.Optional loadListing; - - if (__doc.containsKey("loadListing")) { - try { - loadListing = - LoaderInstances - .optional_LoadListingEnum - .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadListing = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadListing` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadListing = null; - } - java.util.Optional default_; - - if (__doc.containsKey("default")) { - try { - default_ = - LoaderInstances - .optional_CWLObjectType - .loadField(__doc.get("default"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - default_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `default` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - default_ = null; - } - Object type; - try { - type = - LoaderInstances - .typedsl_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional inputBinding; - - if (__doc.containsKey("inputBinding")) { - try { - inputBinding = - LoaderInstances - .optional_InputBinding - .loadField(__doc.get("inputBinding"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - inputBinding = null; // won't be used but prevents compiler from complaining. - final String __message = "the `inputBinding` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - inputBinding = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.label = (java.util.Optional) label; - this.secondaryFiles = (Object) secondaryFiles; - this.streamable = (java.util.Optional) streamable; - this.doc = (Object) doc; - this.id = (java.util.Optional) id; - this.format = (Object) format; - this.loadContents = (java.util.Optional) loadContents; - this.loadListing = (java.util.Optional) loadListing; - this.default_ = (java.util.Optional) default_; - this.type = (Object) type; - this.inputBinding = (java.util.Optional) inputBinding; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowOutputParameter.java b/src/main/java/org/w3id/cwl/cwl1_2/WorkflowOutputParameter.java deleted file mode 100644 index 000cff33..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowOutputParameter.java +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowOutputParameter
This interface is implemented by {@link WorkflowOutputParameterImpl}
- Describe an output parameter of a workflow. The parameter must be - connected to one or more parameters defined in the workflow that - will provide the value of the output parameter. It is legal to - connect a WorkflowInputParameter to a WorkflowOutputParameter. - - See [WorkflowStepInput](#WorkflowStepInput) for discussion of - `linkMerge` and `pickValue`. -
- */ -public interface WorkflowOutputParameter extends OutputParameter, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - Object getSecondaryFiles(); - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - java.util.Optional getStreamable(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - Object getFormat(); - /** - * Getter for property https://w3id.org/cwl/cwl#outputSource
- *
- * Specifies one or more names of an output from a workflow step (in the form - * `step_name/output_name` with a `/` separator`), or a workflow input name, - * that supply their value(s) to the output parameter. - * the output parameter. It is valid to reference workflow level inputs - * here. - * *
- */ - - Object getOutputSource(); - /** - * Getter for property https://w3id.org/cwl/cwl#WorkflowOutputParameter/linkMerge
- *
- * The method to use to merge multiple sources into a single array. - * If not specified, the default method is "merge_nested". - * *
- */ - - java.util.Optional getLinkMerge(); - /** - * Getter for property https://w3id.org/cwl/cwl#WorkflowOutputParameter/pickValue
- *
- * The method to use to choose non-null elements among multiple sources. - * *
- */ - - java.util.Optional getPickValue(); - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * *
- */ - - Object getType(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowOutputParameterImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/WorkflowOutputParameterImpl.java deleted file mode 100644 index 80f9eb03..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowOutputParameterImpl.java +++ /dev/null @@ -1,444 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowOutputParameter
- Describe an output parameter of a workflow. The parameter must be - connected to one or more parameters defined in the workflow that - will provide the value of the output parameter. It is legal to - connect a WorkflowInputParameter to a WorkflowOutputParameter. - - See [WorkflowStepInput](#WorkflowStepInput) for discussion of - `linkMerge` and `pickValue`. -
- */ -public class WorkflowOutputParameterImpl extends SaveableImpl implements WorkflowOutputParameter { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object secondaryFiles; - - /** - * Getter for property https://w3id.org/cwl/cwl#secondaryFiles
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * Provides a pattern or expression specifying files or - * directories that should be included alongside the primary - * file. Secondary files may be required or optional. When not - * explicitly specified, secondary files specified for `inputs` - * are required and `outputs` are optional. An implementation - * must include matching Files and Directories in the - * `secondaryFiles` property of the primary file. These Files - * and Directories must be transferred and staged alongside the - * primary file. An implementation may fail workflow execution - * if a required secondary file does not exist. - * - * If the value is an expression, the value of `self` in the expression - * must be the primary input or output File object to which this binding - * applies. The `basename`, `nameroot` and `nameext` fields must be - * present in `self`. For `CommandLineTool` outputs the `path` field must - * also be present. The expression must return a filename string relative - * to the path to the primary File, a File or Directory object with either - * `path` or `location` and `basename` fields set, or an array consisting - * of strings or File or Directory objects. It is legal to reference an - * unchanged File or Directory object taken from input as a secondaryFile. - * The expression may return "null" in which case there is no secondaryFile - * from that expression. - * - * To work on non-filename-preserving storage systems, portable tool - * descriptions should avoid constructing new values from `location`, but - * should construct relative references using `basename` or `nameroot` - * instead. - * - * If a value in `secondaryFiles` is a string that is not an expression, - * it specifies that the following pattern should be applied to the path - * of the primary file to yield a filename relative to the primary File: - * - * 1. If string ends with `?` character, remove the last `?` and mark - * the resulting secondary file as optional. - * 2. If string begins with one or more caret `^` characters, for each - * caret, remove the last file extension from the path (the last - * period `.` and all following characters). If there are no file - * extensions, the path is unchanged. - * 3. Append the remainder of the string to the end of the file path. - * *
- */ - - public Object getSecondaryFiles() { - return this.secondaryFiles; - } - - private java.util.Optional streamable; - - /** - * Getter for property https://w3id.org/cwl/cwl#FieldBase/streamable
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * A value of `true` indicates that the file is read or written - * sequentially without seeking. An implementation may use this flag to - * indicate whether it is valid to stream file contents using a named - * pipe. Default: `false`. - * *
- */ - - public java.util.Optional getStreamable() { - return this.streamable; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private Object format; - - /** - * Getter for property https://w3id.org/cwl/cwl#format
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * This is the file format that will be assigned to the output - * File object. - * *
- */ - - public Object getFormat() { - return this.format; - } - - private Object outputSource; - - /** - * Getter for property https://w3id.org/cwl/cwl#outputSource
- *
- * Specifies one or more names of an output from a workflow step (in the form - * `step_name/output_name` with a `/` separator`), or a workflow input name, - * that supply their value(s) to the output parameter. - * the output parameter. It is valid to reference workflow level inputs - * here. - * *
- */ - - public Object getOutputSource() { - return this.outputSource; - } - - private java.util.Optional linkMerge; - - /** - * Getter for property https://w3id.org/cwl/cwl#WorkflowOutputParameter/linkMerge
- *
- * The method to use to merge multiple sources into a single array. - * If not specified, the default method is "merge_nested". - * *
- */ - - public java.util.Optional getLinkMerge() { - return this.linkMerge; - } - - private java.util.Optional pickValue; - - /** - * Getter for property https://w3id.org/cwl/cwl#WorkflowOutputParameter/pickValue
- *
- * The method to use to choose non-null elements among multiple sources. - * *
- */ - - public java.util.Optional getPickValue() { - return this.pickValue; - } - - private Object type; - - /** - * Getter for property https://w3id.org/cwl/salad#type
- *
- * Specify valid types of data that may be assigned to this parameter. - * *
- */ - - public Object getType() { - return this.type; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of WorkflowOutputParameterImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public WorkflowOutputParameterImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("WorkflowOutputParameterImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object secondaryFiles; - - if (__doc.containsKey("secondaryFiles")) { - try { - secondaryFiles = - LoaderInstances - .secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema - .loadField(__doc.get("secondaryFiles"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - secondaryFiles = null; // won't be used but prevents compiler from complaining. - final String __message = "the `secondaryFiles` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - secondaryFiles = null; - } - java.util.Optional streamable; - - if (__doc.containsKey("streamable")) { - try { - streamable = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("streamable"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - streamable = null; // won't be used but prevents compiler from complaining. - final String __message = "the `streamable` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - streamable = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - Object format; - - if (__doc.containsKey("format")) { - try { - format = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True - .loadField(__doc.get("format"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - format = null; // won't be used but prevents compiler from complaining. - final String __message = "the `format` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - format = null; - } - Object outputSource; - - if (__doc.containsKey("outputSource")) { - try { - outputSource = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_1_None - .loadField(__doc.get("outputSource"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - outputSource = null; // won't be used but prevents compiler from complaining. - final String __message = "the `outputSource` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - outputSource = null; - } - java.util.Optional linkMerge; - - if (__doc.containsKey("linkMerge")) { - try { - linkMerge = - LoaderInstances - .optional_LinkMergeMethod - .loadField(__doc.get("linkMerge"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - linkMerge = null; // won't be used but prevents compiler from complaining. - final String __message = "the `linkMerge` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - linkMerge = null; - } - java.util.Optional pickValue; - - if (__doc.containsKey("pickValue")) { - try { - pickValue = - LoaderInstances - .optional_PickValueMethod - .loadField(__doc.get("pickValue"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - pickValue = null; // won't be used but prevents compiler from complaining. - final String __message = "the `pickValue` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - pickValue = null; - } - Object type; - try { - type = - LoaderInstances - .typedsl_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_2 - .loadField(__doc.get("type"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - type = null; // won't be used but prevents compiler from complaining. - final String __message = "the `type` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.label = (java.util.Optional) label; - this.secondaryFiles = (Object) secondaryFiles; - this.streamable = (java.util.Optional) streamable; - this.doc = (Object) doc; - this.id = (java.util.Optional) id; - this.format = (Object) format; - this.outputSource = (Object) outputSource; - this.linkMerge = (java.util.Optional) linkMerge; - this.pickValue = (java.util.Optional) pickValue; - this.type = (Object) type; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowStep.java b/src/main/java/org/w3id/cwl/cwl1_2/WorkflowStep.java deleted file mode 100644 index eef67a6b..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowStep.java +++ /dev/null @@ -1,202 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowStep
This interface is implemented by {@link WorkflowStepImpl}
- A workflow step is an executable element of a workflow. It specifies the - underlying process implementation (such as `CommandLineTool` or another - `Workflow`) in the `run` field and connects the input and output parameters - of the underlying process to workflow parameters. - - # Scatter/gather - - To use scatter/gather, - [ScatterFeatureRequirement](#ScatterFeatureRequirement) must be specified - in the workflow or workflow step requirements. - - A "scatter" operation specifies that the associated workflow step or - subworkflow should execute separately over a list of input elements. Each - job making up a scatter operation is independent and may be executed - concurrently. - - The `scatter` field specifies one or more input parameters which will be - scattered. An input parameter may be listed more than once. The declared - type of each input parameter implicitly becomes an array of items of the - input parameter type. If a parameter is listed more than once, it becomes - a nested array. As a result, upstream parameters which are connected to - scattered parameters must be arrays. - - All output parameter types are also implicitly wrapped in arrays. Each job - in the scatter results in an entry in the output array. - - If any scattered parameter runtime value is an empty array, all outputs are - set to empty arrays and no work is done for the step, according to - applicable scattering rules. - - If `scatter` declares more than one input parameter, `scatterMethod` - describes how to decompose the input into a discrete set of jobs. - - * **dotproduct** specifies that each of the input arrays are aligned and one - element taken from each array to construct each job. It is an error - if all input arrays are not the same length. - - * **nested_crossproduct** specifies the Cartesian product of the inputs, - producing a job for every combination of the scattered inputs. The - output must be nested arrays for each level of scattering, in the - order that the input arrays are listed in the `scatter` field. - - * **flat_crossproduct** specifies the Cartesian product of the inputs, - producing a job for every combination of the scattered inputs. The - output arrays must be flattened to a single level, but otherwise listed in the - order that the input arrays are listed in the `scatter` field. - - # Conditional execution (Optional) - - Conditional execution makes execution of a step conditional on an - expression. A step that is not executed is "skipped". A skipped - step produces `null` for all output parameters. - - The condition is evaluated after `scatter`, using the input object - of each individual scatter job. This means over a set of scatter - jobs, some may be executed and some may be skipped. When the - results are gathered, skipped steps must be `null` in the output - arrays. - - The `when` field controls conditional execution. This is an - expression that must be evaluated with `inputs` bound to the step - input object (or individual scatter job), and returns a boolean - value. It is an error if this expression returns a value other - than `true` or `false`. - - Conditionals in CWL are an optional feature and are not required - to be implemented by all consumers of CWL documents. An - implementation that does not support conditionals must return a - fatal error when attempting to execute a workflow that uses - conditional constructs the implementation does not support. - - # Subworkflows - - To specify a nested workflow as part of a workflow step, - [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) must be - specified in the workflow or workflow step requirements. - - It is a fatal error if a workflow directly or indirectly invokes itself as - a subworkflow (recursive workflows are not allowed). -
- */ -public interface WorkflowStep extends Identified, Labeled, Documented, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - Object getDoc(); - /** - * Getter for property https://w3id.org/cwl/cwl#in
- *
- * Defines the input parameters of the workflow step. The process is ready to - * run when all required input parameters are associated with concrete - * values. Input parameters include a schema for each parameter which is - * used to validate the input object. It may also be used build a user - * interface for constructing the input object. - * *
- */ - - java.util.List getIn(); - /** - * Getter for property https://w3id.org/cwl/cwl#out
- *
- * Defines the parameters representing the output of the process. May be - * used to generate and/or validate the output object. - * *
- */ - - java.util.List getOut(); - /** - * Getter for property https://w3id.org/cwl/cwl#requirements
- *
- * Declares requirements that apply to either the runtime environment or the - * workflow engine that must be met in order to execute this workflow step. If - * an implementation cannot satisfy all requirements, or a requirement is - * listed which is not recognized by the implementation, it is a fatal - * error and the implementation must not attempt to run the process, - * unless overridden at user option. - * *
- */ - - java.util.Optional> getRequirements(); - /** - * Getter for property https://w3id.org/cwl/cwl#hints
- *
- * Declares hints applying to either the runtime environment or the - * workflow engine that may be helpful in executing this workflow step. It is - * not an error if an implementation cannot satisfy all hints, however - * the implementation may report a warning. - * *
- */ - - java.util.Optional> getHints(); - /** - * Getter for property https://w3id.org/cwl/cwl#run
- *
- * Specifies the process to run. If `run` is a string, it must be an absolute IRI - * or a relative path from the primary document. - * *
- */ - - Object getRun(); - /** - * Getter for property https://w3id.org/cwl/cwl#WorkflowStep/when
- *
- * If defined, only run the step when the expression evaluates to - * `true`. If `false` the step is skipped. A skipped step - * produces a `null` on each output. - * *
- */ - - java.util.Optional getWhen(); - /** - * Getter for property https://w3id.org/cwl/cwl#scatter
- - */ - - Object getScatter(); - /** - * Getter for property https://w3id.org/cwl/cwl#scatterMethod
- *
- * Required if `scatter` is an array of more than one element. - * *
- */ - - java.util.Optional getScatterMethod(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowStepImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/WorkflowStepImpl.java deleted file mode 100644 index a6bfc040..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowStepImpl.java +++ /dev/null @@ -1,496 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowStep
- A workflow step is an executable element of a workflow. It specifies the - underlying process implementation (such as `CommandLineTool` or another - `Workflow`) in the `run` field and connects the input and output parameters - of the underlying process to workflow parameters. - - # Scatter/gather - - To use scatter/gather, - [ScatterFeatureRequirement](#ScatterFeatureRequirement) must be specified - in the workflow or workflow step requirements. - - A "scatter" operation specifies that the associated workflow step or - subworkflow should execute separately over a list of input elements. Each - job making up a scatter operation is independent and may be executed - concurrently. - - The `scatter` field specifies one or more input parameters which will be - scattered. An input parameter may be listed more than once. The declared - type of each input parameter implicitly becomes an array of items of the - input parameter type. If a parameter is listed more than once, it becomes - a nested array. As a result, upstream parameters which are connected to - scattered parameters must be arrays. - - All output parameter types are also implicitly wrapped in arrays. Each job - in the scatter results in an entry in the output array. - - If any scattered parameter runtime value is an empty array, all outputs are - set to empty arrays and no work is done for the step, according to - applicable scattering rules. - - If `scatter` declares more than one input parameter, `scatterMethod` - describes how to decompose the input into a discrete set of jobs. - - * **dotproduct** specifies that each of the input arrays are aligned and one - element taken from each array to construct each job. It is an error - if all input arrays are not the same length. - - * **nested_crossproduct** specifies the Cartesian product of the inputs, - producing a job for every combination of the scattered inputs. The - output must be nested arrays for each level of scattering, in the - order that the input arrays are listed in the `scatter` field. - - * **flat_crossproduct** specifies the Cartesian product of the inputs, - producing a job for every combination of the scattered inputs. The - output arrays must be flattened to a single level, but otherwise listed in the - order that the input arrays are listed in the `scatter` field. - - # Conditional execution (Optional) - - Conditional execution makes execution of a step conditional on an - expression. A step that is not executed is "skipped". A skipped - step produces `null` for all output parameters. - - The condition is evaluated after `scatter`, using the input object - of each individual scatter job. This means over a set of scatter - jobs, some may be executed and some may be skipped. When the - results are gathered, skipped steps must be `null` in the output - arrays. - - The `when` field controls conditional execution. This is an - expression that must be evaluated with `inputs` bound to the step - input object (or individual scatter job), and returns a boolean - value. It is an error if this expression returns a value other - than `true` or `false`. - - Conditionals in CWL are an optional feature and are not required - to be implemented by all consumers of CWL documents. An - implementation that does not support conditionals must return a - fatal error when attempting to execute a workflow that uses - conditional constructs the implementation does not support. - - # Subworkflows - - To specify a nested workflow as part of a workflow step, - [SubworkflowFeatureRequirement](#SubworkflowFeatureRequirement) must be - specified in the workflow or workflow step requirements. - - It is a fatal error if a workflow directly or indirectly invokes itself as - a subworkflow (recursive workflows are not allowed). -
- */ -public class WorkflowStepImpl extends SaveableImpl implements WorkflowStep { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private Object doc; - - /** - * Getter for property https://w3id.org/cwl/salad#Documented/doc
- *
- * A documentation string for this object, or an array of strings which should be concatenated. *
- */ - - public Object getDoc() { - return this.doc; - } - - private java.util.List in; - - /** - * Getter for property https://w3id.org/cwl/cwl#in
- *
- * Defines the input parameters of the workflow step. The process is ready to - * run when all required input parameters are associated with concrete - * values. Input parameters include a schema for each parameter which is - * used to validate the input object. It may also be used build a user - * interface for constructing the input object. - * *
- */ - - public java.util.List getIn() { - return this.in; - } - - private java.util.List out; - - /** - * Getter for property https://w3id.org/cwl/cwl#out
- *
- * Defines the parameters representing the output of the process. May be - * used to generate and/or validate the output object. - * *
- */ - - public java.util.List getOut() { - return this.out; - } - - private java.util.Optional> requirements; - - /** - * Getter for property https://w3id.org/cwl/cwl#requirements
- *
- * Declares requirements that apply to either the runtime environment or the - * workflow engine that must be met in order to execute this workflow step. If - * an implementation cannot satisfy all requirements, or a requirement is - * listed which is not recognized by the implementation, it is a fatal - * error and the implementation must not attempt to run the process, - * unless overridden at user option. - * *
- */ - - public java.util.Optional> getRequirements() { - return this.requirements; - } - - private java.util.Optional> hints; - - /** - * Getter for property https://w3id.org/cwl/cwl#hints
- *
- * Declares hints applying to either the runtime environment or the - * workflow engine that may be helpful in executing this workflow step. It is - * not an error if an implementation cannot satisfy all hints, however - * the implementation may report a warning. - * *
- */ - - public java.util.Optional> getHints() { - return this.hints; - } - - private Object run; - - /** - * Getter for property https://w3id.org/cwl/cwl#run
- *
- * Specifies the process to run. If `run` is a string, it must be an absolute IRI - * or a relative path from the primary document. - * *
- */ - - public Object getRun() { - return this.run; - } - - private java.util.Optional when; - - /** - * Getter for property https://w3id.org/cwl/cwl#WorkflowStep/when
- *
- * If defined, only run the step when the expression evaluates to - * `true`. If `false` the step is skipped. A skipped step - * produces a `null` on each output. - * *
- */ - - public java.util.Optional getWhen() { - return this.when; - } - - private Object scatter; - - /** - * Getter for property https://w3id.org/cwl/cwl#scatter
- - */ - - public Object getScatter() { - return this.scatter; - } - - private java.util.Optional scatterMethod; - - /** - * Getter for property https://w3id.org/cwl/cwl#scatterMethod
- *
- * Required if `scatter` is an array of more than one element. - * *
- */ - - public java.util.Optional getScatterMethod() { - return this.scatterMethod; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of WorkflowStepImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public WorkflowStepImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("WorkflowStepImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - Object doc; - - if (__doc.containsKey("doc")) { - try { - doc = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_array_of_StringInstance - .loadField(__doc.get("doc"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - doc = null; // won't be used but prevents compiler from complaining. - final String __message = "the `doc` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - doc = null; - } - java.util.List in; - try { - in = - LoaderInstances - .idmap_in_array_of_WorkflowStepInput - .loadField(__doc.get("in"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - in = null; // won't be used but prevents compiler from complaining. - final String __message = "the `in` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.List out; - try { - out = - LoaderInstances - .uri_array_of_union_of_StringInstance_or_WorkflowStepOutput_True_False_None_None - .loadField(__doc.get("out"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - out = null; // won't be used but prevents compiler from complaining. - final String __message = "the `out` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional> requirements; - - if (__doc.containsKey("requirements")) { - try { - requirements = - LoaderInstances - .idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement - .loadField(__doc.get("requirements"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - requirements = null; // won't be used but prevents compiler from complaining. - final String __message = "the `requirements` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - requirements = null; - } - java.util.Optional> hints; - - if (__doc.containsKey("hints")) { - try { - hints = - LoaderInstances - .idmap_hints_optional_array_of_AnyInstance - .loadField(__doc.get("hints"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - hints = null; // won't be used but prevents compiler from complaining. - final String __message = "the `hints` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - hints = null; - } - Object run; - try { - run = - LoaderInstances - .uri_union_of_StringInstance_or_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation_False_False_None_None - .loadField(__doc.get("run"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - run = null; // won't be used but prevents compiler from complaining. - final String __message = "the `run` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - java.util.Optional when; - - if (__doc.containsKey("when")) { - try { - when = - LoaderInstances - .optional_ExpressionLoader - .loadField(__doc.get("when"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - when = null; // won't be used but prevents compiler from complaining. - final String __message = "the `when` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - when = null; - } - Object scatter; - - if (__doc.containsKey("scatter")) { - try { - scatter = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_0_None - .loadField(__doc.get("scatter"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - scatter = null; // won't be used but prevents compiler from complaining. - final String __message = "the `scatter` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - scatter = null; - } - java.util.Optional scatterMethod; - - if (__doc.containsKey("scatterMethod")) { - try { - scatterMethod = - LoaderInstances - .uri_optional_ScatterMethod_False_True_None_None - .loadField(__doc.get("scatterMethod"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - scatterMethod = null; // won't be used but prevents compiler from complaining. - final String __message = "the `scatterMethod` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - scatterMethod = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.id = (java.util.Optional) id; - this.label = (java.util.Optional) label; - this.doc = (Object) doc; - this.in = (java.util.List) in; - this.out = (java.util.List) out; - this.requirements = (java.util.Optional>) requirements; - this.hints = (java.util.Optional>) hints; - this.run = (Object) run; - this.when = (java.util.Optional) when; - this.scatter = (Object) scatter; - this.scatterMethod = (java.util.Optional) scatterMethod; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowStepInput.java b/src/main/java/org/w3id/cwl/cwl1_2/WorkflowStepInput.java deleted file mode 100644 index ee182895..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowStepInput.java +++ /dev/null @@ -1,243 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowStepInput
This interface is implemented by {@link WorkflowStepInputImpl}
- The input of a workflow step connects an upstream parameter (from the - workflow inputs, or the outputs of other workflows steps) with the input - parameters of the process specified by the `run` field. Only input parameters - declared by the target process will be passed through at runtime to the process - though additional parameters may be specified (for use within `valueFrom` - expressions for instance) - unconnected or unused parameters do not represent an - error condition. - - # Input object - - A WorkflowStepInput object must contain an `id` field in the form - `#fieldname` or `#prefix/fieldname`. When the `id` field contains a slash - `/` the field name consists of the characters following the final slash - (the prefix portion may contain one or more slashes to indicate scope). - This defines a field of the workflow step input object with the value of - the `source` parameter(s). - - # Merging multiple inbound data links - - To merge multiple inbound data links, - [MultipleInputFeatureRequirement](#MultipleInputFeatureRequirement) must be specified - in the workflow or workflow step requirements. - - If the sink parameter is an array, or named in a [workflow - scatter](#WorkflowStep) operation, there may be multiple inbound - data links listed in the `source` field. The values from the - input links are merged depending on the method specified in the - `linkMerge` field. If both `linkMerge` and `pickValue` are null - or not specified, and there is more than one element in the - `source` array, the default method is "merge_nested". - - If both `linkMerge` and `pickValue` are null or not specified, and - there is only a single element in the `source`, then the input - parameter takes the scalar value from the single input link (it is - *not* wrapped in a single-list). - - * **merge_nested** - - The input must be an array consisting of exactly one entry for each - input link. If "merge_nested" is specified with a single link, the value - from the link must be wrapped in a single-item list. - - * **merge_flattened** - - 1. The source and sink parameters must be compatible types, or the source - type must be compatible with single element from the "items" type of - the destination array parameter. - 2. Source parameters which are arrays are concatenated. - Source parameters which are single element types are appended as - single elements. - - # Picking non-null values among inbound data links - - If present, `pickValue` specifies how to pick non-null values among inbound data links. - - `pickValue` is evaluated - 1. Once all source values from upstream step or parameters are available. - 2. After `linkMerge`. - 3. Before `scatter` or `valueFrom`. - - This is specifically intended to be useful in combination with - [conditional execution](#WorkflowStep), where several upstream - steps may be connected to a single input (`source` is a list), and - skipped steps produce null values. - - Static type checkers should check for type consistency after inferring what the type - will be after `pickValue` is applied, just as they do currently for `linkMerge`. - - * **first_non_null** - - For the first level of a list input, pick the first non-null element. The result is a scalar. - It is an error if there is no non-null element. Examples: - * `[null, x, null, y] -> x` - * `[null, [null], null, y] -> [null]` - * `[null, null, null] -> Runtime Error` - - *Intended use case*: If-else pattern where the - value comes either from a conditional step or from a default or - fallback value. The conditional step(s) should be placed first in - the list. - - * **the_only_non_null** - - For the first level of a list input, pick the single non-null element. The result is a scalar. - It is an error if there is more than one non-null element. Examples: - - * `[null, x, null] -> x` - * `[null, x, null, y] -> Runtime Error` - * `[null, [null], null] -> [null]` - * `[null, null, null] -> Runtime Error` - - *Intended use case*: Switch type patterns where developer considers - more than one active code path as a workflow error - (possibly indicating an error in writing `when` condition expressions). - - * **all_non_null** - - For the first level of a list input, pick all non-null values. - The result is a list, which may be empty. Examples: - - * `[null, x, null] -> [x]` - * `[x, null, y] -> [x, y]` - * `[null, [x], [null]] -> [[x], [null]]` - * `[null, null, null] -> []` - - *Intended use case*: It is valid to have more than one source, but - sources are conditional, so null sources (from skipped steps) - should be filtered out. -
- */ -public interface WorkflowStepInput extends Identified, Sink, LoadContents, Labeled, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); - /** - * Getter for property https://w3id.org/cwl/cwl#source
- *
- * Specifies one or more workflow parameters that will provide input to - * the underlying step parameter. - * *
- */ - - Object getSource(); - /** - * Getter for property https://w3id.org/cwl/cwl#Sink/linkMerge
- *
- * The method to use to merge multiple inbound links into a single array. - * If not specified, the default method is "merge_nested". - * *
- */ - - java.util.Optional getLinkMerge(); - /** - * Getter for property https://w3id.org/cwl/cwl#Sink/pickValue
- *
- * The method to use to choose non-null elements among multiple sources. - * *
- */ - - java.util.Optional getPickValue(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * If true, the file (or each file in the array) must be a UTF-8 - * text file 64 KiB or smaller, and the implementation must read - * the entire contents of the file (or file array) and place it - * in the `contents` field of the File object for use by - * expressions. If the size of the file is greater than 64 KiB, - * the implementation must raise a fatal error. - * *
- */ - - java.util.Optional getLoadContents(); - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - java.util.Optional getLoadListing(); - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - java.util.Optional getLabel(); - /** - * Getter for property https://w3id.org/cwl/salad#default
- *
- * The default value for this parameter to use if either there is no - * `source` field, or the value produced by the `source` is `null`. The - * default must be applied prior to scattering or evaluating `valueFrom`. - * *
- */ - - java.util.Optional getDefault(); - /** - * Getter for property https://w3id.org/cwl/cwl#WorkflowStepInput/valueFrom
- *
- * To use valueFrom, [StepInputExpressionRequirement](#StepInputExpressionRequirement) must - * be specified in the workflow or workflow step requirements. - * - * If `valueFrom` is a constant string value, use this as the value for - * this input parameter. - * - * If `valueFrom` is a parameter reference or expression, it must be - * evaluated to yield the actual value to be assigned to the input field. - * - * The `self` value in the parameter reference or expression must be - * 1. `null` if there is no `source` field - * 2. the value of the parameter(s) specified in the `source` field when this - * workflow input parameter **is not** specified in this workflow step's `scatter` field. - * 3. an element of the parameter specified in the `source` field when this workflow input - * parameter **is** specified in this workflow step's `scatter` field. - * - * The value of `inputs` in the parameter reference or expression must be - * the input object to the workflow step after assigning the `source` - * values, applying `default`, and then scattering. The order of - * evaluating `valueFrom` among step input parameters is undefined and the - * result of evaluating `valueFrom` on a parameter must not be visible to - * evaluation of `valueFrom` on other parameters. - * *
- */ - - Object getValueFrom(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowStepInputImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/WorkflowStepInputImpl.java deleted file mode 100644 index c09d49a5..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowStepInputImpl.java +++ /dev/null @@ -1,509 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowStepInput
- The input of a workflow step connects an upstream parameter (from the - workflow inputs, or the outputs of other workflows steps) with the input - parameters of the process specified by the `run` field. Only input parameters - declared by the target process will be passed through at runtime to the process - though additional parameters may be specified (for use within `valueFrom` - expressions for instance) - unconnected or unused parameters do not represent an - error condition. - - # Input object - - A WorkflowStepInput object must contain an `id` field in the form - `#fieldname` or `#prefix/fieldname`. When the `id` field contains a slash - `/` the field name consists of the characters following the final slash - (the prefix portion may contain one or more slashes to indicate scope). - This defines a field of the workflow step input object with the value of - the `source` parameter(s). - - # Merging multiple inbound data links - - To merge multiple inbound data links, - [MultipleInputFeatureRequirement](#MultipleInputFeatureRequirement) must be specified - in the workflow or workflow step requirements. - - If the sink parameter is an array, or named in a [workflow - scatter](#WorkflowStep) operation, there may be multiple inbound - data links listed in the `source` field. The values from the - input links are merged depending on the method specified in the - `linkMerge` field. If both `linkMerge` and `pickValue` are null - or not specified, and there is more than one element in the - `source` array, the default method is "merge_nested". - - If both `linkMerge` and `pickValue` are null or not specified, and - there is only a single element in the `source`, then the input - parameter takes the scalar value from the single input link (it is - *not* wrapped in a single-list). - - * **merge_nested** - - The input must be an array consisting of exactly one entry for each - input link. If "merge_nested" is specified with a single link, the value - from the link must be wrapped in a single-item list. - - * **merge_flattened** - - 1. The source and sink parameters must be compatible types, or the source - type must be compatible with single element from the "items" type of - the destination array parameter. - 2. Source parameters which are arrays are concatenated. - Source parameters which are single element types are appended as - single elements. - - # Picking non-null values among inbound data links - - If present, `pickValue` specifies how to pick non-null values among inbound data links. - - `pickValue` is evaluated - 1. Once all source values from upstream step or parameters are available. - 2. After `linkMerge`. - 3. Before `scatter` or `valueFrom`. - - This is specifically intended to be useful in combination with - [conditional execution](#WorkflowStep), where several upstream - steps may be connected to a single input (`source` is a list), and - skipped steps produce null values. - - Static type checkers should check for type consistency after inferring what the type - will be after `pickValue` is applied, just as they do currently for `linkMerge`. - - * **first_non_null** - - For the first level of a list input, pick the first non-null element. The result is a scalar. - It is an error if there is no non-null element. Examples: - * `[null, x, null, y] -> x` - * `[null, [null], null, y] -> [null]` - * `[null, null, null] -> Runtime Error` - - *Intended use case*: If-else pattern where the - value comes either from a conditional step or from a default or - fallback value. The conditional step(s) should be placed first in - the list. - - * **the_only_non_null** - - For the first level of a list input, pick the single non-null element. The result is a scalar. - It is an error if there is more than one non-null element. Examples: - - * `[null, x, null] -> x` - * `[null, x, null, y] -> Runtime Error` - * `[null, [null], null] -> [null]` - * `[null, null, null] -> Runtime Error` - - *Intended use case*: Switch type patterns where developer considers - more than one active code path as a workflow error - (possibly indicating an error in writing `when` condition expressions). - - * **all_non_null** - - For the first level of a list input, pick all non-null values. - The result is a list, which may be empty. Examples: - - * `[null, x, null] -> [x]` - * `[x, null, y] -> [x, y]` - * `[null, [x], [null]] -> [[x], [null]]` - * `[null, null, null] -> []` - - *Intended use case*: It is valid to have more than one source, but - sources are conditional, so null sources (from skipped steps) - should be filtered out. -
- */ -public class WorkflowStepInputImpl extends SaveableImpl implements WorkflowStepInput { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - private Object source; - - /** - * Getter for property https://w3id.org/cwl/cwl#source
- *
- * Specifies one or more workflow parameters that will provide input to - * the underlying step parameter. - * *
- */ - - public Object getSource() { - return this.source; - } - - private java.util.Optional linkMerge; - - /** - * Getter for property https://w3id.org/cwl/cwl#Sink/linkMerge
- *
- * The method to use to merge multiple inbound links into a single array. - * If not specified, the default method is "merge_nested". - * *
- */ - - public java.util.Optional getLinkMerge() { - return this.linkMerge; - } - - private java.util.Optional pickValue; - - /** - * Getter for property https://w3id.org/cwl/cwl#Sink/pickValue
- *
- * The method to use to choose non-null elements among multiple sources. - * *
- */ - - public java.util.Optional getPickValue() { - return this.pickValue; - } - - private java.util.Optional loadContents; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadContents
- *
- * Only valid when `type: File` or is an array of `items: File`. - * - * If true, the file (or each file in the array) must be a UTF-8 - * text file 64 KiB or smaller, and the implementation must read - * the entire contents of the file (or file array) and place it - * in the `contents` field of the File object for use by - * expressions. If the size of the file is greater than 64 KiB, - * the implementation must raise a fatal error. - * *
- */ - - public java.util.Optional getLoadContents() { - return this.loadContents; - } - - private java.util.Optional loadListing; - - /** - * Getter for property https://w3id.org/cwl/cwl#LoadContents/loadListing
- *
- * Only valid when `type: Directory` or is an array of `items: Directory`. - * - * Specify the desired behavior for loading the `listing` field of - * a Directory object for use by expressions. - * - * The order of precedence for loadListing is: - * - * 1. `loadListing` on an individual parameter - * 2. Inherited from `LoadListingRequirement` - * 3. By default: `no_listing` - * *
- */ - - public java.util.Optional getLoadListing() { - return this.loadListing; - } - - private java.util.Optional label; - - /** - * Getter for property https://w3id.org/cwl/cwl#Labeled/label
- *
- * A short, human-readable label of this object. *
- */ - - public java.util.Optional getLabel() { - return this.label; - } - - private java.util.Optional default_; - - /** - * Getter for property https://w3id.org/cwl/salad#default
- *
- * The default value for this parameter to use if either there is no - * `source` field, or the value produced by the `source` is `null`. The - * default must be applied prior to scattering or evaluating `valueFrom`. - * *
- */ - - public java.util.Optional getDefault() { - return this.default_; - } - - private Object valueFrom; - - /** - * Getter for property https://w3id.org/cwl/cwl#WorkflowStepInput/valueFrom
- *
- * To use valueFrom, [StepInputExpressionRequirement](#StepInputExpressionRequirement) must - * be specified in the workflow or workflow step requirements. - * - * If `valueFrom` is a constant string value, use this as the value for - * this input parameter. - * - * If `valueFrom` is a parameter reference or expression, it must be - * evaluated to yield the actual value to be assigned to the input field. - * - * The `self` value in the parameter reference or expression must be - * 1. `null` if there is no `source` field - * 2. the value of the parameter(s) specified in the `source` field when this - * workflow input parameter **is not** specified in this workflow step's `scatter` field. - * 3. an element of the parameter specified in the `source` field when this workflow input - * parameter **is** specified in this workflow step's `scatter` field. - * - * The value of `inputs` in the parameter reference or expression must be - * the input object to the workflow step after assigning the `source` - * values, applying `default`, and then scattering. The order of - * evaluating `valueFrom` among step input parameters is undefined and the - * result of evaluating `valueFrom` on a parameter must not be visible to - * evaluation of `valueFrom` on other parameters. - * *
- */ - - public Object getValueFrom() { - return this.valueFrom; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of WorkflowStepInputImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public WorkflowStepInputImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("WorkflowStepInputImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - Object source; - - if (__doc.containsKey("source")) { - try { - source = - LoaderInstances - .uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_2_None - .loadField(__doc.get("source"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - source = null; // won't be used but prevents compiler from complaining. - final String __message = "the `source` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - source = null; - } - java.util.Optional linkMerge; - - if (__doc.containsKey("linkMerge")) { - try { - linkMerge = - LoaderInstances - .optional_LinkMergeMethod - .loadField(__doc.get("linkMerge"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - linkMerge = null; // won't be used but prevents compiler from complaining. - final String __message = "the `linkMerge` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - linkMerge = null; - } - java.util.Optional pickValue; - - if (__doc.containsKey("pickValue")) { - try { - pickValue = - LoaderInstances - .optional_PickValueMethod - .loadField(__doc.get("pickValue"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - pickValue = null; // won't be used but prevents compiler from complaining. - final String __message = "the `pickValue` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - pickValue = null; - } - java.util.Optional loadContents; - - if (__doc.containsKey("loadContents")) { - try { - loadContents = - LoaderInstances - .optional_BooleanInstance - .loadField(__doc.get("loadContents"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadContents = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadContents` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadContents = null; - } - java.util.Optional loadListing; - - if (__doc.containsKey("loadListing")) { - try { - loadListing = - LoaderInstances - .optional_LoadListingEnum - .loadField(__doc.get("loadListing"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - loadListing = null; // won't be used but prevents compiler from complaining. - final String __message = "the `loadListing` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - loadListing = null; - } - java.util.Optional label; - - if (__doc.containsKey("label")) { - try { - label = - LoaderInstances - .optional_StringInstance - .loadField(__doc.get("label"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - label = null; // won't be used but prevents compiler from complaining. - final String __message = "the `label` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - label = null; - } - java.util.Optional default_; - - if (__doc.containsKey("default")) { - try { - default_ = - LoaderInstances - .optional_CWLObjectType - .loadField(__doc.get("default"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - default_ = null; // won't be used but prevents compiler from complaining. - final String __message = "the `default` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - default_ = null; - } - Object valueFrom; - - if (__doc.containsKey("valueFrom")) { - try { - valueFrom = - LoaderInstances - .union_of_NullInstance_or_StringInstance_or_ExpressionLoader - .loadField(__doc.get("valueFrom"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - valueFrom = null; // won't be used but prevents compiler from complaining. - final String __message = "the `valueFrom` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - valueFrom = null; - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.id = (java.util.Optional) id; - this.source = (Object) source; - this.linkMerge = (java.util.Optional) linkMerge; - this.pickValue = (java.util.Optional) pickValue; - this.loadContents = (java.util.Optional) loadContents; - this.loadListing = (java.util.Optional) loadListing; - this.label = (java.util.Optional) label; - this.default_ = (java.util.Optional) default_; - this.valueFrom = (Object) valueFrom; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowStepOutput.java b/src/main/java/org/w3id/cwl/cwl1_2/WorkflowStepOutput.java deleted file mode 100644 index 71e37040..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowStepOutput.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.Saveable; - -/** -* Auto-generated interface for https://w3id.org/cwl/cwl#WorkflowStepOutput
This interface is implemented by {@link WorkflowStepOutputImpl}
- Associate an output parameter of the underlying process with a workflow - parameter. The workflow parameter (given in the `id` field) be may be used - as a `source` to connect with input parameters of other workflow steps, or - with an output parameter of the process. - - A unique identifier for this workflow output parameter. This is - the identifier to use in the `source` field of `WorkflowStepInput` - to connect the output value to downstream parameters. -
- */ -public interface WorkflowStepOutput extends Identified, Saveable { - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - java.util.Optional getId(); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowStepOutputImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/WorkflowStepOutputImpl.java deleted file mode 100644 index 172236d0..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/WorkflowStepOutputImpl.java +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.LoaderInstances; -import org.w3id.cwl.cwl1_2.utils.LoadingOptions; -import org.w3id.cwl.cwl1_2.utils.LoadingOptionsBuilder; -import org.w3id.cwl.cwl1_2.utils.SaveableImpl; -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -/** -* Auto-generated class implementation for https://w3id.org/cwl/cwl#WorkflowStepOutput
- Associate an output parameter of the underlying process with a workflow - parameter. The workflow parameter (given in the `id` field) be may be used - as a `source` to connect with input parameters of other workflow steps, or - with an output parameter of the process. - - A unique identifier for this workflow output parameter. This is - the identifier to use in the `source` field of `WorkflowStepInput` - to connect the output value to downstream parameters. -
- */ -public class WorkflowStepOutputImpl extends SaveableImpl implements WorkflowStepOutput { - private LoadingOptions loadingOptions_ = new LoadingOptionsBuilder().build(); - private java.util.Map extensionFields_ = - new java.util.HashMap(); - public java.util.Map getExtensionFields() { - return this.extensionFields_; - } - - private java.util.Optional id; - - /** - * Getter for property https://w3id.org/cwl/cwl#Identified/id
- *
- * The unique identifier for this object. *
- */ - - public java.util.Optional getId() { - return this.id; - } - - /** - * Used by {@link org.w3id.cwl.cwl1_2.utils.RootLoader} to construct instances of WorkflowStepOutputImpl. - * - * @param __doc_ Document fragment to load this record object from (presumably a - {@link java.util.Map}). - * @param __baseUri_ Base URI to generate child document IDs against. - * @param __loadingOptions Context for loading URIs and populating objects. - * @param __docRoot_ ID at this position in the document (if available) (maybe?) - * @throws ValidationException If the document fragment is not a {@link java.util.Map} - * or validation of fields fails. - */ - public WorkflowStepOutputImpl( - final Object __doc_, - final String __baseUri_, - LoadingOptions __loadingOptions, - final String __docRoot_) { - super(__doc_, __baseUri_, __loadingOptions, __docRoot_); - // Prefix plumbing variables with '__' to reduce likelihood of collision with - // generated names. - String __baseUri = __baseUri_; - String __docRoot = __docRoot_; - if (!(__doc_ instanceof java.util.Map)) { - throw new ValidationException("WorkflowStepOutputImpl called on non-map"); - } - final java.util.Map __doc = (java.util.Map) __doc_; - final java.util.List __errors = - new java.util.ArrayList(); - if (__loadingOptions != null) { - this.loadingOptions_ = __loadingOptions; - } - java.util.Optional id; - - if (__doc.containsKey("id")) { - try { - id = - LoaderInstances - .uri_optional_StringInstance_True_False_None_None - .loadField(__doc.get("id"), __baseUri, __loadingOptions); - } catch (ValidationException e) { - id = null; // won't be used but prevents compiler from complaining. - final String __message = "the `id` field is not valid because:"; - __errors.add(new ValidationException(__message, e)); - } - - } else { - id = null; - } - - Boolean __original_is_null = id == null; - if (id == null) { - if (__docRoot != null) { - id = java.util.Optional.of(__docRoot); - } else { - id = java.util.Optional.of("_:" + java.util.UUID.randomUUID().toString()); - } - } - if (__original_is_null) { - __baseUri = __baseUri_; - } else { - __baseUri = (String) id.orElse(null); - } - if (!__errors.isEmpty()) { - throw new ValidationException("Trying 'RecordField'", __errors); - } - this.id = (java.util.Optional) id; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/Workflow_class.java b/src/main/java/org/w3id/cwl/cwl1_2/Workflow_class.java deleted file mode 100644 index 444d3da8..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/Workflow_class.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum Workflow_class { - WORKFLOW("Workflow"); - - private static String[] symbols = new String[] {"Workflow"}; - private String docVal; - - private Workflow_class(final String docVal) { - this.docVal = docVal; - } - - public static Workflow_class fromDocumentVal(final String docVal) { - for(final Workflow_class val : Workflow_class.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", Workflow_class.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/stderr.java b/src/main/java/org/w3id/cwl/cwl1_2/stderr.java deleted file mode 100644 index a904dd41..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/stderr.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum stderr { - STDERR("stderr"); - - private static String[] symbols = new String[] {"stderr"}; - private String docVal; - - private stderr(final String docVal) { - this.docVal = docVal; - } - - public static stderr fromDocumentVal(final String docVal) { - for(final stderr val : stderr.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", stderr.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/stdin.java b/src/main/java/org/w3id/cwl/cwl1_2/stdin.java deleted file mode 100644 index f1411709..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/stdin.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum stdin { - STDIN("stdin"); - - private static String[] symbols = new String[] {"stdin"}; - private String docVal; - - private stdin(final String docVal) { - this.docVal = docVal; - } - - public static stdin fromDocumentVal(final String docVal) { - for(final stdin val : stdin.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", stdin.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/stdout.java b/src/main/java/org/w3id/cwl/cwl1_2/stdout.java deleted file mode 100644 index cd7e6d00..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/stdout.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Common Workflow Language project contributors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.w3id.cwl.cwl1_2; - -import org.w3id.cwl.cwl1_2.utils.ValidationException; - -public enum stdout { - STDOUT("stdout"); - - private static String[] symbols = new String[] {"stdout"}; - private String docVal; - - private stdout(final String docVal) { - this.docVal = docVal; - } - - public static stdout fromDocumentVal(final String docVal) { - for(final stdout val : stdout.values()) { - if(val.docVal.equals(docVal)) { - return val; - } - } - throw new ValidationException(String.format("Expected one of %s", stdout.symbols, docVal)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/AnyLoader.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/AnyLoader.java deleted file mode 100644 index 78b7c3e9..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/AnyLoader.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -public class AnyLoader implements Loader { - - public Object load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - if (doc == null) { - throw new ValidationException("Expected non-null"); - } - return doc; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/ArrayLoader.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/ArrayLoader.java deleted file mode 100644 index 62637fdb..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/ArrayLoader.java +++ /dev/null @@ -1,43 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.util.ArrayList; -import java.util.List; - -public class ArrayLoader implements Loader> { - private final Loader itemLoader; - - public ArrayLoader(Loader itemLoader) { - this.itemLoader = itemLoader; - } - - public List load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - final List docList = (List) Loader.validateOfJavaType(List.class, doc); - final List r = new ArrayList(); - final List loaders = new ArrayList(); - loaders.add(this); - loaders.add(this.itemLoader); - final UnionLoader unionLoader = new UnionLoader(loaders); - final List errors = new ArrayList(); - for (final Object el : docList) { - try { - final Object loadedField = unionLoader.loadField(el, baseUri, loadingOptions); - final boolean flatten = !"@list".equals(loadingOptions.container); - if (flatten && loadedField instanceof List) { - r.addAll((List) loadedField); - } else { - r.add((T) loadedField); - } - } catch (final ValidationException e) { - errors.add(e); - } - } - if (!errors.isEmpty()) { - throw new ValidationException("", errors); - } - return r; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/ConstantMaps.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/ConstantMaps.java deleted file mode 100644 index a9176805..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/ConstantMaps.java +++ /dev/null @@ -1,297 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.util.HashMap; - -public class ConstantMaps { - // declare as HashMap for clone(). - public static final HashMap vocab = new HashMap(); - public static final HashMap rvocab = new HashMap(); - - static { - vocab.put("Any", "https://w3id.org/cwl/salad#Any"); - vocab.put("ArraySchema", "https://w3id.org/cwl/salad#ArraySchema"); - vocab.put("CWLArraySchema", "https://w3id.org/cwl/cwl#CWLArraySchema"); - vocab.put("CWLInputFile", "https://w3id.org/cwl/cwl#CWLInputFile"); - vocab.put("CWLObjectType", "https://w3id.org/cwl/cwl#CWLObjectType"); - vocab.put("CWLRecordField", "https://w3id.org/cwl/cwl#CWLRecordField"); - vocab.put("CWLRecordSchema", "https://w3id.org/cwl/cwl#CWLRecordSchema"); - vocab.put("CWLType", "https://w3id.org/cwl/cwl#CWLType"); - vocab.put("CWLVersion", "https://w3id.org/cwl/cwl#CWLVersion"); - vocab.put("CommandInputArraySchema", "https://w3id.org/cwl/cwl#CommandInputArraySchema"); - vocab.put("CommandInputEnumSchema", "https://w3id.org/cwl/cwl#CommandInputEnumSchema"); - vocab.put("CommandInputParameter", "https://w3id.org/cwl/cwl#CommandInputParameter"); - vocab.put("CommandInputRecordField", "https://w3id.org/cwl/cwl#CommandInputRecordField"); - vocab.put("CommandInputRecordSchema", "https://w3id.org/cwl/cwl#CommandInputRecordSchema"); - vocab.put("CommandInputSchema", "https://w3id.org/cwl/cwl#CommandInputSchema"); - vocab.put("CommandLineBindable", "https://w3id.org/cwl/cwl#CommandLineBindable"); - vocab.put("CommandLineBinding", "https://w3id.org/cwl/cwl#CommandLineBinding"); - vocab.put("CommandLineTool", "CommandLineTool"); - vocab.put("CommandOutputArraySchema", "https://w3id.org/cwl/cwl#CommandOutputArraySchema"); - vocab.put("CommandOutputBinding", "https://w3id.org/cwl/cwl#CommandOutputBinding"); - vocab.put("CommandOutputEnumSchema", "https://w3id.org/cwl/cwl#CommandOutputEnumSchema"); - vocab.put("CommandOutputParameter", "https://w3id.org/cwl/cwl#CommandOutputParameter"); - vocab.put("CommandOutputRecordField", "https://w3id.org/cwl/cwl#CommandOutputRecordField"); - vocab.put("CommandOutputRecordSchema", "https://w3id.org/cwl/cwl#CommandOutputRecordSchema"); - vocab.put("Directory", "Directory"); - vocab.put("Dirent", "https://w3id.org/cwl/cwl#Dirent"); - vocab.put("DockerRequirement", "DockerRequirement"); - vocab.put("Documented", "https://w3id.org/cwl/salad#Documented"); - vocab.put("EnumSchema", "https://w3id.org/cwl/salad#EnumSchema"); - vocab.put("EnvVarRequirement", "EnvVarRequirement"); - vocab.put("EnvironmentDef", "https://w3id.org/cwl/cwl#EnvironmentDef"); - vocab.put("Expression", "https://w3id.org/cwl/cwl#Expression"); - vocab.put("ExpressionPlaceholder", "https://w3id.org/cwl/cwl#ExpressionPlaceholder"); - vocab.put("ExpressionTool", "ExpressionTool"); - vocab.put("ExpressionToolOutputParameter", "https://w3id.org/cwl/cwl#ExpressionToolOutputParameter"); - vocab.put("FieldBase", "https://w3id.org/cwl/cwl#FieldBase"); - vocab.put("File", "File"); - vocab.put("IOSchema", "https://w3id.org/cwl/cwl#IOSchema"); - vocab.put("Identified", "https://w3id.org/cwl/cwl#Identified"); - vocab.put("InitialWorkDirRequirement", "InitialWorkDirRequirement"); - vocab.put("InlineJavascriptRequirement", "InlineJavascriptRequirement"); - vocab.put("InplaceUpdateRequirement", "InplaceUpdateRequirement"); - vocab.put("InputArraySchema", "https://w3id.org/cwl/cwl#InputArraySchema"); - vocab.put("InputBinding", "https://w3id.org/cwl/cwl#InputBinding"); - vocab.put("InputEnumSchema", "https://w3id.org/cwl/cwl#InputEnumSchema"); - vocab.put("InputFormat", "https://w3id.org/cwl/cwl#InputFormat"); - vocab.put("InputParameter", "https://w3id.org/cwl/cwl#InputParameter"); - vocab.put("InputRecordField", "https://w3id.org/cwl/cwl#InputRecordField"); - vocab.put("InputRecordSchema", "https://w3id.org/cwl/cwl#InputRecordSchema"); - vocab.put("InputSchema", "https://w3id.org/cwl/cwl#InputSchema"); - vocab.put("Labeled", "https://w3id.org/cwl/cwl#Labeled"); - vocab.put("LinkMergeMethod", "https://w3id.org/cwl/cwl#LinkMergeMethod"); - vocab.put("LoadContents", "https://w3id.org/cwl/cwl#LoadContents"); - vocab.put("LoadListingEnum", "https://w3id.org/cwl/cwl#LoadListingEnum"); - vocab.put("LoadListingRequirement", "LoadListingRequirement"); - vocab.put("MapSchema", "https://w3id.org/cwl/salad#MapSchema"); - vocab.put("MultipleInputFeatureRequirement", "MultipleInputFeatureRequirement"); - vocab.put("NetworkAccess", "NetworkAccess"); - vocab.put("Operation", "Operation"); - vocab.put("OperationInputParameter", "https://w3id.org/cwl/cwl#OperationInputParameter"); - vocab.put("OperationOutputParameter", "https://w3id.org/cwl/cwl#OperationOutputParameter"); - vocab.put("OutputArraySchema", "https://w3id.org/cwl/cwl#OutputArraySchema"); - vocab.put("OutputEnumSchema", "https://w3id.org/cwl/cwl#OutputEnumSchema"); - vocab.put("OutputFormat", "https://w3id.org/cwl/cwl#OutputFormat"); - vocab.put("OutputParameter", "https://w3id.org/cwl/cwl#OutputParameter"); - vocab.put("OutputRecordField", "https://w3id.org/cwl/cwl#OutputRecordField"); - vocab.put("OutputRecordSchema", "https://w3id.org/cwl/cwl#OutputRecordSchema"); - vocab.put("OutputSchema", "https://w3id.org/cwl/cwl#OutputSchema"); - vocab.put("Parameter", "https://w3id.org/cwl/cwl#Parameter"); - vocab.put("PickValueMethod", "https://w3id.org/cwl/cwl#PickValueMethod"); - vocab.put("PrimitiveType", "https://w3id.org/cwl/salad#PrimitiveType"); - vocab.put("Process", "https://w3id.org/cwl/cwl#Process"); - vocab.put("ProcessRequirement", "https://w3id.org/cwl/cwl#ProcessRequirement"); - vocab.put("RecordField", "https://w3id.org/cwl/salad#RecordField"); - vocab.put("RecordSchema", "https://w3id.org/cwl/salad#RecordSchema"); - vocab.put("ResourceRequirement", "ResourceRequirement"); - vocab.put("ScatterFeatureRequirement", "ScatterFeatureRequirement"); - vocab.put("ScatterMethod", "https://w3id.org/cwl/cwl#ScatterMethod"); - vocab.put("SchemaDefRequirement", "SchemaDefRequirement"); - vocab.put("SecondaryFileSchema", "https://w3id.org/cwl/cwl#SecondaryFileSchema"); - vocab.put("ShellCommandRequirement", "ShellCommandRequirement"); - vocab.put("Sink", "https://w3id.org/cwl/cwl#Sink"); - vocab.put("SoftwarePackage", "https://w3id.org/cwl/cwl#SoftwarePackage"); - vocab.put("SoftwareRequirement", "SoftwareRequirement"); - vocab.put("StepInputExpressionRequirement", "StepInputExpressionRequirement"); - vocab.put("SubworkflowFeatureRequirement", "SubworkflowFeatureRequirement"); - vocab.put("ToolTimeLimit", "ToolTimeLimit"); - vocab.put("UnionSchema", "https://w3id.org/cwl/salad#UnionSchema"); - vocab.put("WorkReuse", "WorkReuse"); - vocab.put("Workflow", "Workflow"); - vocab.put("WorkflowInputParameter", "https://w3id.org/cwl/cwl#WorkflowInputParameter"); - vocab.put("WorkflowOutputParameter", "https://w3id.org/cwl/cwl#WorkflowOutputParameter"); - vocab.put("WorkflowStep", "https://w3id.org/cwl/cwl#WorkflowStep"); - vocab.put("WorkflowStepInput", "https://w3id.org/cwl/cwl#WorkflowStepInput"); - vocab.put("WorkflowStepOutput", "https://w3id.org/cwl/cwl#WorkflowStepOutput"); - vocab.put("all_non_null", "https://w3id.org/cwl/cwl#PickValueMethod/all_non_null"); - vocab.put("array", "array"); - vocab.put("boolean", "http://www.w3.org/2001/XMLSchema#boolean"); - vocab.put("deep_listing", "https://w3id.org/cwl/cwl#LoadListingEnum/deep_listing"); - vocab.put("dotproduct", "https://w3id.org/cwl/cwl#ScatterMethod/dotproduct"); - vocab.put("double", "http://www.w3.org/2001/XMLSchema#double"); - vocab.put("draft-2", "https://w3id.org/cwl/cwl#draft-2"); - vocab.put("draft-3", "https://w3id.org/cwl/cwl#draft-3"); - vocab.put("draft-3.dev1", "https://w3id.org/cwl/cwl#draft-3.dev1"); - vocab.put("draft-3.dev2", "https://w3id.org/cwl/cwl#draft-3.dev2"); - vocab.put("draft-3.dev3", "https://w3id.org/cwl/cwl#draft-3.dev3"); - vocab.put("draft-3.dev4", "https://w3id.org/cwl/cwl#draft-3.dev4"); - vocab.put("draft-3.dev5", "https://w3id.org/cwl/cwl#draft-3.dev5"); - vocab.put("draft-4.dev1", "https://w3id.org/cwl/cwl#draft-4.dev1"); - vocab.put("draft-4.dev2", "https://w3id.org/cwl/cwl#draft-4.dev2"); - vocab.put("draft-4.dev3", "https://w3id.org/cwl/cwl#draft-4.dev3"); - vocab.put("enum", "enum"); - vocab.put("first_non_null", "https://w3id.org/cwl/cwl#PickValueMethod/first_non_null"); - vocab.put("flat_crossproduct", "https://w3id.org/cwl/cwl#ScatterMethod/flat_crossproduct"); - vocab.put("float", "http://www.w3.org/2001/XMLSchema#float"); - vocab.put("int", "http://www.w3.org/2001/XMLSchema#int"); - vocab.put("long", "http://www.w3.org/2001/XMLSchema#long"); - vocab.put("map", "map"); - vocab.put("merge_flattened", "https://w3id.org/cwl/cwl#LinkMergeMethod/merge_flattened"); - vocab.put("merge_nested", "https://w3id.org/cwl/cwl#LinkMergeMethod/merge_nested"); - vocab.put("nested_crossproduct", "https://w3id.org/cwl/cwl#ScatterMethod/nested_crossproduct"); - vocab.put("no_listing", "https://w3id.org/cwl/cwl#LoadListingEnum/no_listing"); - vocab.put("null", "https://w3id.org/cwl/salad#null"); - vocab.put("record", "record"); - vocab.put("shallow_listing", "https://w3id.org/cwl/cwl#LoadListingEnum/shallow_listing"); - vocab.put("stderr", "https://w3id.org/cwl/cwl#stderr"); - vocab.put("stdin", "https://w3id.org/cwl/cwl#stdin"); - vocab.put("stdout", "https://w3id.org/cwl/cwl#stdout"); - vocab.put("string", "http://www.w3.org/2001/XMLSchema#string"); - vocab.put("the_only_non_null", "https://w3id.org/cwl/cwl#PickValueMethod/the_only_non_null"); - vocab.put("union", "union"); - vocab.put("v1.0", "https://w3id.org/cwl/cwl#v1.0"); - vocab.put("v1.0.dev4", "https://w3id.org/cwl/cwl#v1.0.dev4"); - vocab.put("v1.1", "https://w3id.org/cwl/cwl#v1.1"); - vocab.put("v1.1.0-dev1", "https://w3id.org/cwl/cwl#v1.1.0-dev1"); - vocab.put("v1.2", "https://w3id.org/cwl/cwl#v1.2"); - vocab.put("v1.2.0-dev1", "https://w3id.org/cwl/cwl#v1.2.0-dev1"); - vocab.put("v1.2.0-dev2", "https://w3id.org/cwl/cwl#v1.2.0-dev2"); - vocab.put("v1.2.0-dev3", "https://w3id.org/cwl/cwl#v1.2.0-dev3"); - vocab.put("v1.2.0-dev4", "https://w3id.org/cwl/cwl#v1.2.0-dev4"); - vocab.put("v1.2.0-dev5", "https://w3id.org/cwl/cwl#v1.2.0-dev5"); - - - rvocab.put("https://w3id.org/cwl/salad#Any", "Any"); - rvocab.put("https://w3id.org/cwl/salad#ArraySchema", "ArraySchema"); - rvocab.put("https://w3id.org/cwl/cwl#CWLArraySchema", "CWLArraySchema"); - rvocab.put("https://w3id.org/cwl/cwl#CWLInputFile", "CWLInputFile"); - rvocab.put("https://w3id.org/cwl/cwl#CWLObjectType", "CWLObjectType"); - rvocab.put("https://w3id.org/cwl/cwl#CWLRecordField", "CWLRecordField"); - rvocab.put("https://w3id.org/cwl/cwl#CWLRecordSchema", "CWLRecordSchema"); - rvocab.put("https://w3id.org/cwl/cwl#CWLType", "CWLType"); - rvocab.put("https://w3id.org/cwl/cwl#CWLVersion", "CWLVersion"); - rvocab.put("https://w3id.org/cwl/cwl#CommandInputArraySchema", "CommandInputArraySchema"); - rvocab.put("https://w3id.org/cwl/cwl#CommandInputEnumSchema", "CommandInputEnumSchema"); - rvocab.put("https://w3id.org/cwl/cwl#CommandInputParameter", "CommandInputParameter"); - rvocab.put("https://w3id.org/cwl/cwl#CommandInputRecordField", "CommandInputRecordField"); - rvocab.put("https://w3id.org/cwl/cwl#CommandInputRecordSchema", "CommandInputRecordSchema"); - rvocab.put("https://w3id.org/cwl/cwl#CommandInputSchema", "CommandInputSchema"); - rvocab.put("https://w3id.org/cwl/cwl#CommandLineBindable", "CommandLineBindable"); - rvocab.put("https://w3id.org/cwl/cwl#CommandLineBinding", "CommandLineBinding"); - rvocab.put("CommandLineTool", "CommandLineTool"); - rvocab.put("https://w3id.org/cwl/cwl#CommandOutputArraySchema", "CommandOutputArraySchema"); - rvocab.put("https://w3id.org/cwl/cwl#CommandOutputBinding", "CommandOutputBinding"); - rvocab.put("https://w3id.org/cwl/cwl#CommandOutputEnumSchema", "CommandOutputEnumSchema"); - rvocab.put("https://w3id.org/cwl/cwl#CommandOutputParameter", "CommandOutputParameter"); - rvocab.put("https://w3id.org/cwl/cwl#CommandOutputRecordField", "CommandOutputRecordField"); - rvocab.put("https://w3id.org/cwl/cwl#CommandOutputRecordSchema", "CommandOutputRecordSchema"); - rvocab.put("Directory", "Directory"); - rvocab.put("https://w3id.org/cwl/cwl#Dirent", "Dirent"); - rvocab.put("DockerRequirement", "DockerRequirement"); - rvocab.put("https://w3id.org/cwl/salad#Documented", "Documented"); - rvocab.put("https://w3id.org/cwl/salad#EnumSchema", "EnumSchema"); - rvocab.put("EnvVarRequirement", "EnvVarRequirement"); - rvocab.put("https://w3id.org/cwl/cwl#EnvironmentDef", "EnvironmentDef"); - rvocab.put("https://w3id.org/cwl/cwl#Expression", "Expression"); - rvocab.put("https://w3id.org/cwl/cwl#ExpressionPlaceholder", "ExpressionPlaceholder"); - rvocab.put("ExpressionTool", "ExpressionTool"); - rvocab.put("https://w3id.org/cwl/cwl#ExpressionToolOutputParameter", "ExpressionToolOutputParameter"); - rvocab.put("https://w3id.org/cwl/cwl#FieldBase", "FieldBase"); - rvocab.put("File", "File"); - rvocab.put("https://w3id.org/cwl/cwl#IOSchema", "IOSchema"); - rvocab.put("https://w3id.org/cwl/cwl#Identified", "Identified"); - rvocab.put("InitialWorkDirRequirement", "InitialWorkDirRequirement"); - rvocab.put("InlineJavascriptRequirement", "InlineJavascriptRequirement"); - rvocab.put("InplaceUpdateRequirement", "InplaceUpdateRequirement"); - rvocab.put("https://w3id.org/cwl/cwl#InputArraySchema", "InputArraySchema"); - rvocab.put("https://w3id.org/cwl/cwl#InputBinding", "InputBinding"); - rvocab.put("https://w3id.org/cwl/cwl#InputEnumSchema", "InputEnumSchema"); - rvocab.put("https://w3id.org/cwl/cwl#InputFormat", "InputFormat"); - rvocab.put("https://w3id.org/cwl/cwl#InputParameter", "InputParameter"); - rvocab.put("https://w3id.org/cwl/cwl#InputRecordField", "InputRecordField"); - rvocab.put("https://w3id.org/cwl/cwl#InputRecordSchema", "InputRecordSchema"); - rvocab.put("https://w3id.org/cwl/cwl#InputSchema", "InputSchema"); - rvocab.put("https://w3id.org/cwl/cwl#Labeled", "Labeled"); - rvocab.put("https://w3id.org/cwl/cwl#LinkMergeMethod", "LinkMergeMethod"); - rvocab.put("https://w3id.org/cwl/cwl#LoadContents", "LoadContents"); - rvocab.put("https://w3id.org/cwl/cwl#LoadListingEnum", "LoadListingEnum"); - rvocab.put("LoadListingRequirement", "LoadListingRequirement"); - rvocab.put("https://w3id.org/cwl/salad#MapSchema", "MapSchema"); - rvocab.put("MultipleInputFeatureRequirement", "MultipleInputFeatureRequirement"); - rvocab.put("NetworkAccess", "NetworkAccess"); - rvocab.put("Operation", "Operation"); - rvocab.put("https://w3id.org/cwl/cwl#OperationInputParameter", "OperationInputParameter"); - rvocab.put("https://w3id.org/cwl/cwl#OperationOutputParameter", "OperationOutputParameter"); - rvocab.put("https://w3id.org/cwl/cwl#OutputArraySchema", "OutputArraySchema"); - rvocab.put("https://w3id.org/cwl/cwl#OutputEnumSchema", "OutputEnumSchema"); - rvocab.put("https://w3id.org/cwl/cwl#OutputFormat", "OutputFormat"); - rvocab.put("https://w3id.org/cwl/cwl#OutputParameter", "OutputParameter"); - rvocab.put("https://w3id.org/cwl/cwl#OutputRecordField", "OutputRecordField"); - rvocab.put("https://w3id.org/cwl/cwl#OutputRecordSchema", "OutputRecordSchema"); - rvocab.put("https://w3id.org/cwl/cwl#OutputSchema", "OutputSchema"); - rvocab.put("https://w3id.org/cwl/cwl#Parameter", "Parameter"); - rvocab.put("https://w3id.org/cwl/cwl#PickValueMethod", "PickValueMethod"); - rvocab.put("https://w3id.org/cwl/salad#PrimitiveType", "PrimitiveType"); - rvocab.put("https://w3id.org/cwl/cwl#Process", "Process"); - rvocab.put("https://w3id.org/cwl/cwl#ProcessRequirement", "ProcessRequirement"); - rvocab.put("https://w3id.org/cwl/salad#RecordField", "RecordField"); - rvocab.put("https://w3id.org/cwl/salad#RecordSchema", "RecordSchema"); - rvocab.put("ResourceRequirement", "ResourceRequirement"); - rvocab.put("ScatterFeatureRequirement", "ScatterFeatureRequirement"); - rvocab.put("https://w3id.org/cwl/cwl#ScatterMethod", "ScatterMethod"); - rvocab.put("SchemaDefRequirement", "SchemaDefRequirement"); - rvocab.put("https://w3id.org/cwl/cwl#SecondaryFileSchema", "SecondaryFileSchema"); - rvocab.put("ShellCommandRequirement", "ShellCommandRequirement"); - rvocab.put("https://w3id.org/cwl/cwl#Sink", "Sink"); - rvocab.put("https://w3id.org/cwl/cwl#SoftwarePackage", "SoftwarePackage"); - rvocab.put("SoftwareRequirement", "SoftwareRequirement"); - rvocab.put("StepInputExpressionRequirement", "StepInputExpressionRequirement"); - rvocab.put("SubworkflowFeatureRequirement", "SubworkflowFeatureRequirement"); - rvocab.put("ToolTimeLimit", "ToolTimeLimit"); - rvocab.put("https://w3id.org/cwl/salad#UnionSchema", "UnionSchema"); - rvocab.put("WorkReuse", "WorkReuse"); - rvocab.put("Workflow", "Workflow"); - rvocab.put("https://w3id.org/cwl/cwl#WorkflowInputParameter", "WorkflowInputParameter"); - rvocab.put("https://w3id.org/cwl/cwl#WorkflowOutputParameter", "WorkflowOutputParameter"); - rvocab.put("https://w3id.org/cwl/cwl#WorkflowStep", "WorkflowStep"); - rvocab.put("https://w3id.org/cwl/cwl#WorkflowStepInput", "WorkflowStepInput"); - rvocab.put("https://w3id.org/cwl/cwl#WorkflowStepOutput", "WorkflowStepOutput"); - rvocab.put("https://w3id.org/cwl/cwl#PickValueMethod/all_non_null", "all_non_null"); - rvocab.put("array", "array"); - rvocab.put("http://www.w3.org/2001/XMLSchema#boolean", "boolean"); - rvocab.put("https://w3id.org/cwl/cwl#LoadListingEnum/deep_listing", "deep_listing"); - rvocab.put("https://w3id.org/cwl/cwl#ScatterMethod/dotproduct", "dotproduct"); - rvocab.put("http://www.w3.org/2001/XMLSchema#double", "double"); - rvocab.put("https://w3id.org/cwl/cwl#draft-2", "draft-2"); - rvocab.put("https://w3id.org/cwl/cwl#draft-3", "draft-3"); - rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev1", "draft-3.dev1"); - rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev2", "draft-3.dev2"); - rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev3", "draft-3.dev3"); - rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev4", "draft-3.dev4"); - rvocab.put("https://w3id.org/cwl/cwl#draft-3.dev5", "draft-3.dev5"); - rvocab.put("https://w3id.org/cwl/cwl#draft-4.dev1", "draft-4.dev1"); - rvocab.put("https://w3id.org/cwl/cwl#draft-4.dev2", "draft-4.dev2"); - rvocab.put("https://w3id.org/cwl/cwl#draft-4.dev3", "draft-4.dev3"); - rvocab.put("enum", "enum"); - rvocab.put("https://w3id.org/cwl/cwl#PickValueMethod/first_non_null", "first_non_null"); - rvocab.put("https://w3id.org/cwl/cwl#ScatterMethod/flat_crossproduct", "flat_crossproduct"); - rvocab.put("http://www.w3.org/2001/XMLSchema#float", "float"); - rvocab.put("http://www.w3.org/2001/XMLSchema#int", "int"); - rvocab.put("http://www.w3.org/2001/XMLSchema#long", "long"); - rvocab.put("map", "map"); - rvocab.put("https://w3id.org/cwl/cwl#LinkMergeMethod/merge_flattened", "merge_flattened"); - rvocab.put("https://w3id.org/cwl/cwl#LinkMergeMethod/merge_nested", "merge_nested"); - rvocab.put("https://w3id.org/cwl/cwl#ScatterMethod/nested_crossproduct", "nested_crossproduct"); - rvocab.put("https://w3id.org/cwl/cwl#LoadListingEnum/no_listing", "no_listing"); - rvocab.put("https://w3id.org/cwl/salad#null", "null"); - rvocab.put("record", "record"); - rvocab.put("https://w3id.org/cwl/cwl#LoadListingEnum/shallow_listing", "shallow_listing"); - rvocab.put("https://w3id.org/cwl/cwl#stderr", "stderr"); - rvocab.put("https://w3id.org/cwl/cwl#stdin", "stdin"); - rvocab.put("https://w3id.org/cwl/cwl#stdout", "stdout"); - rvocab.put("http://www.w3.org/2001/XMLSchema#string", "string"); - rvocab.put("https://w3id.org/cwl/cwl#PickValueMethod/the_only_non_null", "the_only_non_null"); - rvocab.put("union", "union"); - rvocab.put("https://w3id.org/cwl/cwl#v1.0", "v1.0"); - rvocab.put("https://w3id.org/cwl/cwl#v1.0.dev4", "v1.0.dev4"); - rvocab.put("https://w3id.org/cwl/cwl#v1.1", "v1.1"); - rvocab.put("https://w3id.org/cwl/cwl#v1.1.0-dev1", "v1.1.0-dev1"); - rvocab.put("https://w3id.org/cwl/cwl#v1.2", "v1.2"); - rvocab.put("https://w3id.org/cwl/cwl#v1.2.0-dev1", "v1.2.0-dev1"); - rvocab.put("https://w3id.org/cwl/cwl#v1.2.0-dev2", "v1.2.0-dev2"); - rvocab.put("https://w3id.org/cwl/cwl#v1.2.0-dev3", "v1.2.0-dev3"); - rvocab.put("https://w3id.org/cwl/cwl#v1.2.0-dev4", "v1.2.0-dev4"); - rvocab.put("https://w3id.org/cwl/cwl#v1.2.0-dev5", "v1.2.0-dev5"); - - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/DefaultFetcher.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/DefaultFetcher.java deleted file mode 100644 index 711db079..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/DefaultFetcher.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.io.IOException; -import java.net.URI; -import java.util.Arrays; -import java.util.Scanner; - -public class DefaultFetcher implements Fetcher { - - public String urlJoin(final String baseUrl, final String url) { - if (url.startsWith("_:")) { - return url; - } - - final URI baseUri = Uris.toUri(baseUrl); - final URI uri = Uris.toUri(url); - if (baseUri.getScheme() != null - && !baseUri.getScheme().equals("file") - && "file".equals(uri.getScheme())) { - throw new ValidationException( - String.format( - "Not resolving potential remote exploit %s from base %s".format(url, baseUrl))); - } - String result = baseUri.resolve(uri).toString(); - if (result.startsWith("file:")) { - // Well this is gross - needed for http as well? - result = "file://" + result.substring("file:".length()); - } - return result; - } - - public String fetchText(final String url) { - final URI uri = Uris.toUri(url); - final String scheme = uri.getScheme(); - if (Arrays.asList("http", "https", "file").contains(scheme)) { - Scanner scanner; - try { - scanner = new Scanner(uri.toURL().openStream(), "UTF-8").useDelimiter("\\A"); - } catch (IOException e) { - throw new ValidationException("Error fetching %s: %s.".format(url, e)); - } - String result = scanner.next(); - scanner.close(); - return result; - } - throw new ValidationException("Unsupported scheme in URL: %s".format(url)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/EnumLoader.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/EnumLoader.java deleted file mode 100644 index 90e11ec4..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/EnumLoader.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.lang.reflect.Method; -import java.lang.ReflectiveOperationException; -import java.util.Arrays; -import java.util.List; - -public class EnumLoader implements Loader{ - private final Class symbolEnumClass; - - public EnumLoader(final Class symbolEnumClass) { - this.symbolEnumClass = symbolEnumClass; - } - - public T load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - final String docString = Loader.validateOfJavaType(String.class, doc); - try { - final Method m = symbolEnumClass.getMethod("fromDocumentVal", String.class); - final T val = (T) m.invoke(null, docString); - return val; - } catch (final ReflectiveOperationException e) { - final Throwable cause = e.getCause(); - if (cause instanceof RuntimeException) { - throw (RuntimeException) cause; - } - throw new RuntimeException(e); - } - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/ExpressionLoader.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/ExpressionLoader.java deleted file mode 100644 index 96abe8e2..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/ExpressionLoader.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -public class ExpressionLoader implements Loader { - - public ExpressionLoader() { - } - - public String load( - final Object doc_, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - if (doc_ instanceof String) { - return (String) doc_; - } else { - throw new ValidationException("Expected a string."); - } - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/Fetcher.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/Fetcher.java deleted file mode 100644 index 3a2d54f1..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/Fetcher.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -public interface Fetcher { - - public abstract String urlJoin(final String baseUrl, final String url); - - public abstract String fetchText(final String url); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/IdMapLoader.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/IdMapLoader.java deleted file mode 100644 index de4b00e2..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/IdMapLoader.java +++ /dev/null @@ -1,51 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.TreeSet; - -public class IdMapLoader implements Loader { - private final Loader innerLoader; - private final String mapSubject; - private final String mapPredicate; - - public IdMapLoader( - final Loader innerLoader, final String mapSubject, final String mapPredicate) { - this.innerLoader = innerLoader; - this.mapSubject = mapSubject; - this.mapPredicate = mapPredicate; - } - - public T load( - final Object doc_, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - Object doc = doc_; - if (doc instanceof Map) { - final Map docMap = (Map) doc; - final List asList = new ArrayList(); - for (final String key : docMap.keySet()) { - final Object el = docMap.get(key); - if (el instanceof Map) { - final Map v2 = new HashMap((Map) el); - v2.put(this.mapSubject, key); - asList.add(v2); - } else { - if (this.mapPredicate != null) { - final Map v3 = new HashMap(); - v3.put(this.mapPredicate, el); - v3.put(this.mapSubject, key); - asList.add(v3); - } else { - throw new ValidationException("No mapPredicate"); - } - } - } - doc = asList; - } - return this.innerLoader.load(doc, baseUri, loadingOptions); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/Loader.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/Loader.java deleted file mode 100644 index c941518d..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/Loader.java +++ /dev/null @@ -1,125 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public interface Loader { - - T load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot); - - default T load(final Object doc, final String baseUri, final LoadingOptions loadingOptions) { - return load(doc, baseUri, loadingOptions, null); - } - - default T documentLoad( - final String doc, final String baseUri, final LoadingOptions loadingOptions) { - return load(doc, baseUri, loadingOptions); - } - - default T documentLoad( - final Map doc_, final String baseUri_, final LoadingOptions loadingOptions_) { - Map doc = doc_; - LoadingOptions loadingOptions = loadingOptions_; - if (doc.containsKey("$namespaces")) { - final Map namespaces = (Map) doc.get("$namespaces"); - loadingOptions = - new LoadingOptionsBuilder().copiedFrom(loadingOptions).setNamespaces(namespaces).build(); - doc = copyWithoutKey(doc, "$namespaces"); - } - String baseUri = baseUri_; - if (doc.containsKey("$base")) { - baseUri = (String) doc.get("$base"); - } - if (doc.containsKey("$graph")) { - return load(doc.get("$graph"), baseUri, loadingOptions); - } else { - return load(doc, baseUri, loadingOptions, baseUri); - } - } - - default T documentLoad( - final List doc, final String baseUri, final LoadingOptions loadingOptions) { - return load(doc, baseUri, loadingOptions); - } - - default T documentLoadByUrl(final String url, final LoadingOptions loadingOptions) { - if (loadingOptions.idx.containsKey(url)) { - Object result = loadingOptions.idx.get(url); - if (result instanceof String) { - return documentLoad((String) result, url, loadingOptions); - } else if (result instanceof Map) { - return documentLoad((Map) result, url, loadingOptions); - } - return load(result, url, loadingOptions); - } - - final String text = loadingOptions.fetcher.fetchText(url); - try { - Map resultMap = YamlUtils.mapFromString(text); - loadingOptions.idx.put(url, resultMap); - final LoadingOptionsBuilder urlLoadingOptions = - new LoadingOptionsBuilder().copiedFrom(loadingOptions).setFileUri(url); - return documentLoad(resultMap, url, urlLoadingOptions.build()); - } catch (ClassCastException e) { - List resultList = YamlUtils.listFromString(text); - loadingOptions.idx.put(url, resultList); - final LoadingOptionsBuilder urlLoadingOptions = - new LoadingOptionsBuilder().copiedFrom(loadingOptions).setFileUri(url); - return documentLoad(resultList, url, urlLoadingOptions.build()); - } - } - - default T loadField( - final Object val_, final String baseUri, final LoadingOptions loadingOptions) { - Object val = val_; - if (val instanceof Map) { - Map valMap = (Map) val; - if (valMap.containsKey("$import")) { - if (loadingOptions.fileUri == null) { - throw new ValidationException("Cannot load $import without fileuri"); - } - return documentLoadByUrl( - loadingOptions.fetcher.urlJoin(loadingOptions.fileUri, (String) valMap.get("$import")), - loadingOptions); - } else if (valMap.containsKey("$include")) { - if (loadingOptions.fileUri == null) { - throw new ValidationException("Cannot load $import without fileuri"); - } - val = - loadingOptions.fetcher.fetchText( - loadingOptions.fetcher.urlJoin( - loadingOptions.fileUri, (String) valMap.get("$include"))); - } - } - return load(val, baseUri, loadingOptions); - } - - default Map copyWithoutKey(final Map doc, final String key) { - final Map result = new HashMap(); - for (final Map.Entry entry : doc.entrySet()) { - if (!entry.getKey().equals(key)) { - result.put(entry.getKey(), entry.getValue()); - } - } - return result; - } - - static T validateOfJavaType(final Class clazz, final Object doc) { - if (!clazz.isInstance(doc)) { - String className = "null"; - if (doc != null) { - className = doc.getClass().getName(); - } - final String message = - String.format( - "Expected object with Java type of %s but got %s", clazz.getName(), className); - throw new ValidationException(message); - } - return (T) doc; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/LoaderInstances.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/LoaderInstances.java deleted file mode 100644 index b66719bb..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/LoaderInstances.java +++ /dev/null @@ -1,331 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.util.List; -import org.w3id.cwl.cwl1_2.*; - -public class LoaderInstances { - public static Loader StringInstance = new PrimitiveLoader(String.class); - public static Loader IntegerInstance = new PrimitiveLoader(Integer.class); - public static Loader LongInstance = new PrimitiveLoader(Long.class); - public static Loader DoubleInstance = new PrimitiveLoader(Double.class); - public static Loader BooleanInstance = new PrimitiveLoader(Boolean.class); - public static Loader NullInstance = new NullLoader(); - public static Loader AnyInstance = new AnyLoader(); - public static Loader Documented = new RecordLoader(org.w3id.cwl.cwl1_2.Documented.class, null, null); - public static Loader PrimitiveType = new EnumLoader(PrimitiveType.class); - public static Loader Any = new EnumLoader(Any.class); - public static Loader RecordField = new RecordLoader(org.w3id.cwl.cwl1_2.RecordFieldImpl.class, null, null); - public static Loader RecordSchema = new RecordLoader(org.w3id.cwl.cwl1_2.RecordSchemaImpl.class, null, null); - public static Loader EnumSchema = new RecordLoader(org.w3id.cwl.cwl1_2.EnumSchemaImpl.class, null, null); - public static Loader ArraySchema = new RecordLoader(org.w3id.cwl.cwl1_2.ArraySchemaImpl.class, null, null); - public static Loader MapSchema = new RecordLoader(org.w3id.cwl.cwl1_2.MapSchemaImpl.class, null, null); - public static Loader UnionSchema = new RecordLoader(org.w3id.cwl.cwl1_2.UnionSchemaImpl.class, null, null); - public static Loader CWLType = new EnumLoader(CWLType.class); - public static Loader CWLArraySchema = new RecordLoader(org.w3id.cwl.cwl1_2.CWLArraySchemaImpl.class, null, null); - public static Loader CWLRecordField = new RecordLoader(org.w3id.cwl.cwl1_2.CWLRecordFieldImpl.class, null, null); - public static Loader CWLRecordSchema = new RecordLoader(org.w3id.cwl.cwl1_2.CWLRecordSchemaImpl.class, null, null); - public static Loader File = new RecordLoader(org.w3id.cwl.cwl1_2.FileImpl.class, null, null); - public static Loader Directory = new RecordLoader(org.w3id.cwl.cwl1_2.DirectoryImpl.class, null, null); - public static Loader CWLObjectType = new UnionLoader(new Loader[] {}); - public static Loader> optional_CWLObjectType = new OptionalLoader(CWLObjectType); - public static Loader>> array_of_optional_CWLObjectType = new ArrayLoader(optional_CWLObjectType); - public static Loader>> map_of_optional_CWLObjectType = new MapLoader(optional_CWLObjectType, null, null); - public static Loader InlineJavascriptRequirement = new RecordLoader(org.w3id.cwl.cwl1_2.InlineJavascriptRequirementImpl.class, null, null); - public static Loader SchemaDefRequirement = new RecordLoader(org.w3id.cwl.cwl1_2.SchemaDefRequirementImpl.class, null, null); - public static Loader LoadListingRequirement = new RecordLoader(org.w3id.cwl.cwl1_2.LoadListingRequirementImpl.class, null, null); - public static Loader DockerRequirement = new RecordLoader(org.w3id.cwl.cwl1_2.DockerRequirementImpl.class, null, null); - public static Loader SoftwareRequirement = new RecordLoader(org.w3id.cwl.cwl1_2.SoftwareRequirementImpl.class, null, null); - public static Loader InitialWorkDirRequirement = new RecordLoader(org.w3id.cwl.cwl1_2.InitialWorkDirRequirementImpl.class, null, null); - public static Loader EnvVarRequirement = new RecordLoader(org.w3id.cwl.cwl1_2.EnvVarRequirementImpl.class, null, null); - public static Loader ShellCommandRequirement = new RecordLoader(org.w3id.cwl.cwl1_2.ShellCommandRequirementImpl.class, null, null); - public static Loader ResourceRequirement = new RecordLoader(org.w3id.cwl.cwl1_2.ResourceRequirementImpl.class, null, null); - public static Loader WorkReuse = new RecordLoader(org.w3id.cwl.cwl1_2.WorkReuseImpl.class, null, null); - public static Loader NetworkAccess = new RecordLoader(org.w3id.cwl.cwl1_2.NetworkAccessImpl.class, null, null); - public static Loader InplaceUpdateRequirement = new RecordLoader(org.w3id.cwl.cwl1_2.InplaceUpdateRequirementImpl.class, null, null); - public static Loader ToolTimeLimit = new RecordLoader(org.w3id.cwl.cwl1_2.ToolTimeLimitImpl.class, null, null); - public static Loader SubworkflowFeatureRequirement = new RecordLoader(org.w3id.cwl.cwl1_2.SubworkflowFeatureRequirementImpl.class, null, null); - public static Loader ScatterFeatureRequirement = new RecordLoader(org.w3id.cwl.cwl1_2.ScatterFeatureRequirementImpl.class, null, null); - public static Loader MultipleInputFeatureRequirement = new RecordLoader(org.w3id.cwl.cwl1_2.MultipleInputFeatureRequirementImpl.class, null, null); - public static Loader StepInputExpressionRequirement = new RecordLoader(org.w3id.cwl.cwl1_2.StepInputExpressionRequirementImpl.class, null, null); - public static Loader union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement = new UnionLoader(new Loader[] { InlineJavascriptRequirement, SchemaDefRequirement, LoadListingRequirement, DockerRequirement, SoftwareRequirement, InitialWorkDirRequirement, EnvVarRequirement, ShellCommandRequirement, ResourceRequirement, WorkReuse, NetworkAccess, InplaceUpdateRequirement, ToolTimeLimit, SubworkflowFeatureRequirement, ScatterFeatureRequirement, MultipleInputFeatureRequirement, StepInputExpressionRequirement }); - public static Loader> array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement = new ArrayLoader(union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement); - public static Loader union_of_NullInstance_or_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_CWLObjectType = new UnionLoader(new Loader[] { NullInstance, array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement, CWLObjectType }); - public static Loader> map_of_union_of_NullInstance_or_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_CWLObjectType = new MapLoader(union_of_NullInstance_or_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_CWLObjectType, "@list", true); - public static Loader CWLVersion = new EnumLoader(CWLVersion.class); - public static Loader Labeled = new RecordLoader(org.w3id.cwl.cwl1_2.Labeled.class, null, null); - public static Loader Identified = new RecordLoader(org.w3id.cwl.cwl1_2.Identified.class, null, null); - public static Loader LoadListingEnum = new EnumLoader(LoadListingEnum.class); - public static Loader LoadContents = new RecordLoader(org.w3id.cwl.cwl1_2.LoadContents.class, null, null); - public static Loader FieldBase = new RecordLoader(org.w3id.cwl.cwl1_2.FieldBase.class, null, null); - public static Loader InputFormat = new RecordLoader(org.w3id.cwl.cwl1_2.InputFormat.class, null, null); - public static Loader OutputFormat = new RecordLoader(org.w3id.cwl.cwl1_2.OutputFormat.class, null, null); - public static Loader Parameter = new RecordLoader(org.w3id.cwl.cwl1_2.Parameter.class, null, null); - public static Loader Expression = new EnumLoader(Expression.class); - public static Loader InputBinding = new RecordLoader(org.w3id.cwl.cwl1_2.InputBindingImpl.class, null, null); - public static Loader IOSchema = new RecordLoader(org.w3id.cwl.cwl1_2.IOSchema.class, null, null); - public static Loader InputSchema = new RecordLoader(org.w3id.cwl.cwl1_2.InputSchema.class, null, null); - public static Loader OutputSchema = new RecordLoader(org.w3id.cwl.cwl1_2.OutputSchema.class, null, null); - public static Loader InputRecordField = new RecordLoader(org.w3id.cwl.cwl1_2.InputRecordFieldImpl.class, null, null); - public static Loader InputRecordSchema = new RecordLoader(org.w3id.cwl.cwl1_2.InputRecordSchemaImpl.class, null, null); - public static Loader InputEnumSchema = new RecordLoader(org.w3id.cwl.cwl1_2.InputEnumSchemaImpl.class, null, null); - public static Loader InputArraySchema = new RecordLoader(org.w3id.cwl.cwl1_2.InputArraySchemaImpl.class, null, null); - public static Loader OutputRecordField = new RecordLoader(org.w3id.cwl.cwl1_2.OutputRecordFieldImpl.class, null, null); - public static Loader OutputRecordSchema = new RecordLoader(org.w3id.cwl.cwl1_2.OutputRecordSchemaImpl.class, null, null); - public static Loader OutputEnumSchema = new RecordLoader(org.w3id.cwl.cwl1_2.OutputEnumSchemaImpl.class, null, null); - public static Loader OutputArraySchema = new RecordLoader(org.w3id.cwl.cwl1_2.OutputArraySchemaImpl.class, null, null); - public static Loader InputParameter = new RecordLoader(org.w3id.cwl.cwl1_2.InputParameter.class, null, null); - public static Loader OutputParameter = new RecordLoader(org.w3id.cwl.cwl1_2.OutputParameter.class, null, null); - public static Loader ProcessRequirement = new RecordLoader(org.w3id.cwl.cwl1_2.ProcessRequirement.class, null, null); - public static Loader Process = new RecordLoader(org.w3id.cwl.cwl1_2.Process.class, null, null); - public static Loader CommandInputSchema = new RecordLoader(org.w3id.cwl.cwl1_2.CommandInputSchema.class, null, null); - public static Loader SecondaryFileSchema = new RecordLoader(org.w3id.cwl.cwl1_2.SecondaryFileSchemaImpl.class, null, null); - public static Loader EnvironmentDef = new RecordLoader(org.w3id.cwl.cwl1_2.EnvironmentDefImpl.class, null, null); - public static Loader CommandLineBinding = new RecordLoader(org.w3id.cwl.cwl1_2.CommandLineBindingImpl.class, null, null); - public static Loader CommandOutputBinding = new RecordLoader(org.w3id.cwl.cwl1_2.CommandOutputBindingImpl.class, null, null); - public static Loader CommandLineBindable = new RecordLoader(org.w3id.cwl.cwl1_2.CommandLineBindableImpl.class, null, null); - public static Loader CommandInputRecordField = new RecordLoader(org.w3id.cwl.cwl1_2.CommandInputRecordFieldImpl.class, null, null); - public static Loader CommandInputRecordSchema = new RecordLoader(org.w3id.cwl.cwl1_2.CommandInputRecordSchemaImpl.class, null, null); - public static Loader CommandInputEnumSchema = new RecordLoader(org.w3id.cwl.cwl1_2.CommandInputEnumSchemaImpl.class, null, null); - public static Loader CommandInputArraySchema = new RecordLoader(org.w3id.cwl.cwl1_2.CommandInputArraySchemaImpl.class, null, null); - public static Loader CommandOutputRecordField = new RecordLoader(org.w3id.cwl.cwl1_2.CommandOutputRecordFieldImpl.class, null, null); - public static Loader CommandOutputRecordSchema = new RecordLoader(org.w3id.cwl.cwl1_2.CommandOutputRecordSchemaImpl.class, null, null); - public static Loader CommandOutputEnumSchema = new RecordLoader(org.w3id.cwl.cwl1_2.CommandOutputEnumSchemaImpl.class, null, null); - public static Loader CommandOutputArraySchema = new RecordLoader(org.w3id.cwl.cwl1_2.CommandOutputArraySchemaImpl.class, null, null); - public static Loader CommandInputParameter = new RecordLoader(org.w3id.cwl.cwl1_2.CommandInputParameterImpl.class, null, null); - public static Loader CommandOutputParameter = new RecordLoader(org.w3id.cwl.cwl1_2.CommandOutputParameterImpl.class, null, null); - public static Loader stdin = new EnumLoader(stdin.class); - public static Loader stdout = new EnumLoader(stdout.class); - public static Loader stderr = new EnumLoader(stderr.class); - public static Loader CommandLineTool = new RecordLoader(org.w3id.cwl.cwl1_2.CommandLineToolImpl.class, null, null); - public static Loader SoftwarePackage = new RecordLoader(org.w3id.cwl.cwl1_2.SoftwarePackageImpl.class, null, null); - public static Loader Dirent = new RecordLoader(org.w3id.cwl.cwl1_2.DirentImpl.class, null, null); - public static Loader ExpressionToolOutputParameter = new RecordLoader(org.w3id.cwl.cwl1_2.ExpressionToolOutputParameterImpl.class, null, null); - public static Loader WorkflowInputParameter = new RecordLoader(org.w3id.cwl.cwl1_2.WorkflowInputParameterImpl.class, null, null); - public static Loader ExpressionTool = new RecordLoader(org.w3id.cwl.cwl1_2.ExpressionToolImpl.class, null, null); - public static Loader LinkMergeMethod = new EnumLoader(LinkMergeMethod.class); - public static Loader PickValueMethod = new EnumLoader(PickValueMethod.class); - public static Loader WorkflowOutputParameter = new RecordLoader(org.w3id.cwl.cwl1_2.WorkflowOutputParameterImpl.class, null, null); - public static Loader Sink = new RecordLoader(org.w3id.cwl.cwl1_2.Sink.class, null, null); - public static Loader WorkflowStepInput = new RecordLoader(org.w3id.cwl.cwl1_2.WorkflowStepInputImpl.class, null, null); - public static Loader WorkflowStepOutput = new RecordLoader(org.w3id.cwl.cwl1_2.WorkflowStepOutputImpl.class, null, null); - public static Loader ScatterMethod = new EnumLoader(ScatterMethod.class); - public static Loader WorkflowStep = new RecordLoader(org.w3id.cwl.cwl1_2.WorkflowStepImpl.class, null, null); - public static Loader Workflow = new RecordLoader(org.w3id.cwl.cwl1_2.WorkflowImpl.class, null, null); - public static Loader OperationInputParameter = new RecordLoader(org.w3id.cwl.cwl1_2.OperationInputParameterImpl.class, null, null); - public static Loader OperationOutputParameter = new RecordLoader(org.w3id.cwl.cwl1_2.OperationOutputParameterImpl.class, null, null); - public static Loader Operation = new RecordLoader(org.w3id.cwl.cwl1_2.OperationImpl.class, null, null); - public static Loader> array_of_StringInstance = new ArrayLoader(StringInstance); - public static Loader union_of_NullInstance_or_StringInstance_or_array_of_StringInstance = new UnionLoader(new Loader[] { NullInstance, StringInstance, array_of_StringInstance }); - public static Loader uri_StringInstance_True_False_None_None = new UriLoader(StringInstance, true, false, null, null); - public static Loader union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance = new UnionLoader(new Loader[] { PrimitiveType, RecordSchema, EnumSchema, ArraySchema, MapSchema, UnionSchema, StringInstance }); - public static Loader> array_of_union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance = new ArrayLoader(union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance); - public static Loader 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 = new UnionLoader(new Loader[] { PrimitiveType, RecordSchema, EnumSchema, ArraySchema, MapSchema, UnionSchema, StringInstance, array_of_union_of_PrimitiveType_or_RecordSchema_or_EnumSchema_or_ArraySchema_or_MapSchema_or_UnionSchema_or_StringInstance }); - public static Loader typedsl_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_2 = new TypeDslLoader(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, 2); - public static Loader> array_of_RecordField = new ArrayLoader(RecordField); - public static Loader>> optional_array_of_RecordField = new OptionalLoader(array_of_RecordField); - public static Loader>> idmap_fields_optional_array_of_RecordField = new IdMapLoader(optional_array_of_RecordField, "name", "type"); - public static Loader Record_name = new EnumLoader(Record_name.class); - public static Loader typedsl_Record_name_2 = new TypeDslLoader(Record_name, 2); - public static Loader> optional_StringInstance = new OptionalLoader(StringInstance); - public static Loader> uri_optional_StringInstance_True_False_None_None = new UriLoader(optional_StringInstance, true, false, null, null); - public static Loader> uri_array_of_StringInstance_True_False_None_None = new UriLoader(array_of_StringInstance, true, false, null, null); - public static Loader Enum_name = new EnumLoader(Enum_name.class); - public static Loader typedsl_Enum_name_2 = new TypeDslLoader(Enum_name, 2); - public static Loader 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 = new UriLoader(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, null); - public static Loader Array_name = new EnumLoader(Array_name.class); - public static Loader typedsl_Array_name_2 = new TypeDslLoader(Array_name, 2); - public static Loader Map_name = new EnumLoader(Map_name.class); - public static Loader typedsl_Map_name_2 = new TypeDslLoader(Map_name, 2); - public static Loader Union_name = new EnumLoader(Union_name.class); - public static Loader typedsl_Union_name_2 = new TypeDslLoader(Union_name, 2); - public static Loader union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance = new UnionLoader(new Loader[] { PrimitiveType, CWLRecordSchema, EnumSchema, CWLArraySchema, StringInstance }); - public static Loader> array_of_union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance = new ArrayLoader(union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance); - public static Loader 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 = new UnionLoader(new Loader[] { PrimitiveType, CWLRecordSchema, EnumSchema, CWLArraySchema, StringInstance, array_of_union_of_PrimitiveType_or_CWLRecordSchema_or_EnumSchema_or_CWLArraySchema_or_StringInstance }); - public static Loader 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 = new UriLoader(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, null); - public static Loader 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 = new TypeDslLoader(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); - public static Loader> array_of_CWLRecordField = new ArrayLoader(CWLRecordField); - public static Loader>> optional_array_of_CWLRecordField = new OptionalLoader(array_of_CWLRecordField); - public static Loader>> idmap_fields_optional_array_of_CWLRecordField = new IdMapLoader(optional_array_of_CWLRecordField, "name", "type"); - public static Loader File_class = new EnumLoader(File_class.class); - public static Loader uri_File_class_False_True_None_None = new UriLoader(File_class, false, true, null, null); - public static Loader> uri_optional_StringInstance_False_False_None_None = new UriLoader(optional_StringInstance, false, false, null, null); - public static Loader union_of_NullInstance_or_IntegerInstance_or_LongInstance = new UnionLoader(new Loader[] { NullInstance, IntegerInstance, LongInstance }); - public static Loader union_of_File_or_Directory = new UnionLoader(new Loader[] { File, Directory }); - public static Loader> array_of_union_of_File_or_Directory = new ArrayLoader(union_of_File_or_Directory); - public static Loader>> optional_array_of_union_of_File_or_Directory = new OptionalLoader(array_of_union_of_File_or_Directory); - public static Loader>> secondaryfilesdsl_optional_array_of_union_of_File_or_Directory = new SecondaryFilesDslLoader(optional_array_of_union_of_File_or_Directory); - public static Loader> uri_optional_StringInstance_True_False_None_True = new UriLoader(optional_StringInstance, true, false, null, true); - public static Loader Directory_class = new EnumLoader(Directory_class.class); - public static Loader uri_Directory_class_False_True_None_None = new UriLoader(Directory_class, false, true, null, null); - public static Loader> optional_BooleanInstance = new OptionalLoader(BooleanInstance); - public static Loader> optional_LoadListingEnum = new OptionalLoader(LoadListingEnum); - public static Loader> array_of_SecondaryFileSchema = new ArrayLoader(SecondaryFileSchema); - public static Loader union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema = new UnionLoader(new Loader[] { NullInstance, SecondaryFileSchema, array_of_SecondaryFileSchema }); - public static Loader secondaryfilesdsl_union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema = new SecondaryFilesDslLoader(union_of_NullInstance_or_SecondaryFileSchema_or_array_of_SecondaryFileSchema); - public static Loader ExpressionLoader = new ExpressionLoader(); - public static Loader union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, StringInstance, array_of_StringInstance, ExpressionLoader }); - public static Loader uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader_True_False_None_True = new UriLoader(union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_or_ExpressionLoader, true, false, null, true); - public static Loader union_of_NullInstance_or_StringInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, StringInstance, ExpressionLoader }); - public static Loader uri_union_of_NullInstance_or_StringInstance_or_ExpressionLoader_True_False_None_True = new UriLoader(union_of_NullInstance_or_StringInstance_or_ExpressionLoader, true, false, null, true); - public static Loader union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, InputRecordSchema, InputEnumSchema, InputArraySchema, StringInstance }); - public static Loader> array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance = new ArrayLoader(union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance); - public static Loader union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, InputRecordSchema, InputEnumSchema, InputArraySchema, StringInstance, array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance }); - public static Loader typedsl_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance, 2); - public static Loader> array_of_InputRecordField = new ArrayLoader(InputRecordField); - public static Loader>> optional_array_of_InputRecordField = new OptionalLoader(array_of_InputRecordField); - public static Loader>> idmap_fields_optional_array_of_InputRecordField = new IdMapLoader(optional_array_of_InputRecordField, "name", "type"); - public static Loader uri_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_False_True_2_None = new UriLoader(union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_InputRecordSchema_or_InputEnumSchema_or_InputArraySchema_or_StringInstance, false, true, 2, null); - public static Loader union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, OutputRecordSchema, OutputEnumSchema, OutputArraySchema, StringInstance }); - public static Loader> array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance = new ArrayLoader(union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance); - public static Loader union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, OutputRecordSchema, OutputEnumSchema, OutputArraySchema, StringInstance, array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance }); - public static Loader typedsl_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance, 2); - public static Loader> array_of_OutputRecordField = new ArrayLoader(OutputRecordField); - public static Loader>> optional_array_of_OutputRecordField = new OptionalLoader(array_of_OutputRecordField); - public static Loader>> idmap_fields_optional_array_of_OutputRecordField = new IdMapLoader(optional_array_of_OutputRecordField, "name", "type"); - public static Loader uri_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_False_True_2_None = new UriLoader(union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_OutputRecordSchema_or_OutputEnumSchema_or_OutputArraySchema_or_StringInstance, false, true, 2, null); - public static Loader union_of_CommandInputParameter_or_WorkflowInputParameter_or_OperationInputParameter = new UnionLoader(new Loader[] { CommandInputParameter, WorkflowInputParameter, OperationInputParameter }); - public static Loader> array_of_union_of_CommandInputParameter_or_WorkflowInputParameter_or_OperationInputParameter = new ArrayLoader(union_of_CommandInputParameter_or_WorkflowInputParameter_or_OperationInputParameter); - public static Loader> idmap_inputs_array_of_union_of_CommandInputParameter_or_WorkflowInputParameter_or_OperationInputParameter = new IdMapLoader(array_of_union_of_CommandInputParameter_or_WorkflowInputParameter_or_OperationInputParameter, "id", "type"); - public static Loader union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter_or_OperationOutputParameter = new UnionLoader(new Loader[] { CommandOutputParameter, ExpressionToolOutputParameter, WorkflowOutputParameter, OperationOutputParameter }); - public static Loader> array_of_union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter_or_OperationOutputParameter = new ArrayLoader(union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter_or_OperationOutputParameter); - public static Loader> idmap_outputs_array_of_union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter_or_OperationOutputParameter = new IdMapLoader(array_of_union_of_CommandOutputParameter_or_ExpressionToolOutputParameter_or_WorkflowOutputParameter_or_OperationOutputParameter, "id", "type"); - public static Loader>> optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement = new OptionalLoader(array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement); - public static Loader>> idmap_requirements_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement = new IdMapLoader(optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement, "class", "None"); - public static Loader union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance = new UnionLoader(new Loader[] { InlineJavascriptRequirement, SchemaDefRequirement, LoadListingRequirement, DockerRequirement, SoftwareRequirement, InitialWorkDirRequirement, EnvVarRequirement, ShellCommandRequirement, ResourceRequirement, WorkReuse, NetworkAccess, InplaceUpdateRequirement, ToolTimeLimit, SubworkflowFeatureRequirement, ScatterFeatureRequirement, MultipleInputFeatureRequirement, StepInputExpressionRequirement, AnyInstance }); - public static Loader> array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance = new ArrayLoader(union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance); - public static Loader>> optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance = new OptionalLoader(array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance); - public static Loader>> idmap_hints_optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance = new IdMapLoader(optional_array_of_union_of_InlineJavascriptRequirement_or_SchemaDefRequirement_or_LoadListingRequirement_or_DockerRequirement_or_SoftwareRequirement_or_InitialWorkDirRequirement_or_EnvVarRequirement_or_ShellCommandRequirement_or_ResourceRequirement_or_WorkReuse_or_NetworkAccess_or_InplaceUpdateRequirement_or_ToolTimeLimit_or_SubworkflowFeatureRequirement_or_ScatterFeatureRequirement_or_MultipleInputFeatureRequirement_or_StepInputExpressionRequirement_or_AnyInstance, "class", "None"); - public static Loader> optional_CWLVersion = new OptionalLoader(CWLVersion); - public static Loader> uri_optional_CWLVersion_False_True_None_None = new UriLoader(optional_CWLVersion, false, true, null, null); - public static Loader>> optional_array_of_StringInstance = new OptionalLoader(array_of_StringInstance); - public static Loader>> uri_optional_array_of_StringInstance_True_False_None_None = new UriLoader(optional_array_of_StringInstance, true, false, null, null); - public static Loader InlineJavascriptRequirement_class = new EnumLoader(InlineJavascriptRequirement_class.class); - public static Loader uri_InlineJavascriptRequirement_class_False_True_None_None = new UriLoader(InlineJavascriptRequirement_class, false, true, null, null); - public static Loader SchemaDefRequirement_class = new EnumLoader(SchemaDefRequirement_class.class); - public static Loader uri_SchemaDefRequirement_class_False_True_None_None = new UriLoader(SchemaDefRequirement_class, false, true, null, null); - public static Loader union_of_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema = new UnionLoader(new Loader[] { CommandInputRecordSchema, CommandInputEnumSchema, CommandInputArraySchema }); - public static Loader> array_of_union_of_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema = new ArrayLoader(union_of_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema); - public static Loader union_of_StringInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { StringInstance, ExpressionLoader }); - public static Loader union_of_NullInstance_or_BooleanInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, BooleanInstance, ExpressionLoader }); - public static Loader LoadListingRequirement_class = new EnumLoader(LoadListingRequirement_class.class); - public static Loader uri_LoadListingRequirement_class_False_True_None_None = new UriLoader(LoadListingRequirement_class, false, true, null, null); - public static Loader union_of_NullInstance_or_IntegerInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, IntegerInstance, ExpressionLoader }); - public static Loader union_of_NullInstance_or_StringInstance_or_ExpressionLoader_or_array_of_StringInstance = new UnionLoader(new Loader[] { NullInstance, StringInstance, ExpressionLoader, array_of_StringInstance }); - public static Loader> optional_ExpressionLoader = new OptionalLoader(ExpressionLoader); - public static Loader> optional_CommandLineBinding = new OptionalLoader(CommandLineBinding); - public static Loader union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, CommandInputRecordSchema, CommandInputEnumSchema, CommandInputArraySchema, StringInstance }); - public static Loader> array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance = new ArrayLoader(union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance); - public static Loader 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 = new UnionLoader(new Loader[] { CWLType, CommandInputRecordSchema, CommandInputEnumSchema, CommandInputArraySchema, StringInstance, array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance }); - public static Loader 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 = new TypeDslLoader(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); - public static Loader> array_of_CommandInputRecordField = new ArrayLoader(CommandInputRecordField); - public static Loader>> optional_array_of_CommandInputRecordField = new OptionalLoader(array_of_CommandInputRecordField); - public static Loader>> idmap_fields_optional_array_of_CommandInputRecordField = new IdMapLoader(optional_array_of_CommandInputRecordField, "name", "type"); - public static Loader 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_None = new UriLoader(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, null); - public static Loader union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, CommandOutputRecordSchema, CommandOutputEnumSchema, CommandOutputArraySchema, StringInstance }); - public static Loader> array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance = new ArrayLoader(union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance); - public static Loader union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, CommandOutputRecordSchema, CommandOutputEnumSchema, CommandOutputArraySchema, StringInstance, array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance }); - public static Loader typedsl_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance, 2); - public static Loader> optional_CommandOutputBinding = new OptionalLoader(CommandOutputBinding); - public static Loader> array_of_CommandOutputRecordField = new ArrayLoader(CommandOutputRecordField); - public static Loader>> optional_array_of_CommandOutputRecordField = new OptionalLoader(array_of_CommandOutputRecordField); - public static Loader>> idmap_fields_optional_array_of_CommandOutputRecordField = new IdMapLoader(optional_array_of_CommandOutputRecordField, "name", "type"); - public static Loader uri_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_False_True_2_None = new UriLoader(union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance, false, true, 2, null); - public static Loader union_of_CWLType_or_stdin_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, stdin, CommandInputRecordSchema, CommandInputEnumSchema, CommandInputArraySchema, StringInstance, array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance }); - public static Loader typedsl_union_of_CWLType_or_stdin_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_stdin_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandInputRecordSchema_or_CommandInputEnumSchema_or_CommandInputArraySchema_or_StringInstance, 2); - public static Loader union_of_CWLType_or_stdout_or_stderr_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance = new UnionLoader(new Loader[] { CWLType, stdout, stderr, CommandOutputRecordSchema, CommandOutputEnumSchema, CommandOutputArraySchema, StringInstance, array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance }); - public static Loader typedsl_union_of_CWLType_or_stdout_or_stderr_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_2 = new TypeDslLoader(union_of_CWLType_or_stdout_or_stderr_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance_or_array_of_union_of_CWLType_or_CommandOutputRecordSchema_or_CommandOutputEnumSchema_or_CommandOutputArraySchema_or_StringInstance, 2); - public static Loader CommandLineTool_class = new EnumLoader(CommandLineTool_class.class); - public static Loader uri_CommandLineTool_class_False_True_None_None = new UriLoader(CommandLineTool_class, false, true, null, null); - public static Loader> array_of_CommandInputParameter = new ArrayLoader(CommandInputParameter); - public static Loader> idmap_inputs_array_of_CommandInputParameter = new IdMapLoader(array_of_CommandInputParameter, "id", "type"); - public static Loader> array_of_CommandOutputParameter = new ArrayLoader(CommandOutputParameter); - public static Loader> idmap_outputs_array_of_CommandOutputParameter = new IdMapLoader(array_of_CommandOutputParameter, "id", "type"); - public static Loader union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding = new UnionLoader(new Loader[] { StringInstance, ExpressionLoader, CommandLineBinding }); - public static Loader> array_of_union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding = new ArrayLoader(union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding); - public static Loader>> optional_array_of_union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding = new OptionalLoader(array_of_union_of_StringInstance_or_ExpressionLoader_or_CommandLineBinding); - public static Loader> array_of_IntegerInstance = new ArrayLoader(IntegerInstance); - public static Loader>> optional_array_of_IntegerInstance = new OptionalLoader(array_of_IntegerInstance); - public static Loader DockerRequirement_class = new EnumLoader(DockerRequirement_class.class); - public static Loader uri_DockerRequirement_class_False_True_None_None = new UriLoader(DockerRequirement_class, false, true, null, null); - public static Loader SoftwareRequirement_class = new EnumLoader(SoftwareRequirement_class.class); - public static Loader uri_SoftwareRequirement_class_False_True_None_None = new UriLoader(SoftwareRequirement_class, false, true, null, null); - public static Loader> array_of_SoftwarePackage = new ArrayLoader(SoftwarePackage); - public static Loader> idmap_packages_array_of_SoftwarePackage = new IdMapLoader(array_of_SoftwarePackage, "package", "specs"); - public static Loader>> uri_optional_array_of_StringInstance_False_False_None_True = new UriLoader(optional_array_of_StringInstance, false, false, null, true); - public static Loader InitialWorkDirRequirement_class = new EnumLoader(InitialWorkDirRequirement_class.class); - public static Loader uri_InitialWorkDirRequirement_class_False_True_None_None = new UriLoader(InitialWorkDirRequirement_class, false, true, null, null); - public static Loader union_of_NullInstance_or_Dirent_or_ExpressionLoader_or_File_or_Directory_or_array_of_union_of_File_or_Directory = new UnionLoader(new Loader[] { NullInstance, Dirent, ExpressionLoader, File, Directory, array_of_union_of_File_or_Directory }); - public static Loader> array_of_union_of_NullInstance_or_Dirent_or_ExpressionLoader_or_File_or_Directory_or_array_of_union_of_File_or_Directory = new ArrayLoader(union_of_NullInstance_or_Dirent_or_ExpressionLoader_or_File_or_Directory_or_array_of_union_of_File_or_Directory); - public static Loader union_of_ExpressionLoader_or_array_of_union_of_NullInstance_or_Dirent_or_ExpressionLoader_or_File_or_Directory_or_array_of_union_of_File_or_Directory = new UnionLoader(new Loader[] { ExpressionLoader, array_of_union_of_NullInstance_or_Dirent_or_ExpressionLoader_or_File_or_Directory_or_array_of_union_of_File_or_Directory }); - public static Loader EnvVarRequirement_class = new EnumLoader(EnvVarRequirement_class.class); - public static Loader uri_EnvVarRequirement_class_False_True_None_None = new UriLoader(EnvVarRequirement_class, false, true, null, null); - public static Loader> array_of_EnvironmentDef = new ArrayLoader(EnvironmentDef); - public static Loader> idmap_envDef_array_of_EnvironmentDef = new IdMapLoader(array_of_EnvironmentDef, "envName", "envValue"); - public static Loader ShellCommandRequirement_class = new EnumLoader(ShellCommandRequirement_class.class); - public static Loader uri_ShellCommandRequirement_class_False_True_None_None = new UriLoader(ShellCommandRequirement_class, false, true, null, null); - public static Loader ResourceRequirement_class = new EnumLoader(ResourceRequirement_class.class); - public static Loader uri_ResourceRequirement_class_False_True_None_None = new UriLoader(ResourceRequirement_class, false, true, null, null); - public static Loader union_of_NullInstance_or_IntegerInstance_or_LongInstance_or_DoubleInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { NullInstance, IntegerInstance, LongInstance, DoubleInstance, ExpressionLoader }); - public static Loader WorkReuse_class = new EnumLoader(WorkReuse_class.class); - public static Loader uri_WorkReuse_class_False_True_None_None = new UriLoader(WorkReuse_class, false, true, null, null); - public static Loader union_of_BooleanInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { BooleanInstance, ExpressionLoader }); - public static Loader NetworkAccess_class = new EnumLoader(NetworkAccess_class.class); - public static Loader uri_NetworkAccess_class_False_True_None_None = new UriLoader(NetworkAccess_class, false, true, null, null); - public static Loader InplaceUpdateRequirement_class = new EnumLoader(InplaceUpdateRequirement_class.class); - public static Loader uri_InplaceUpdateRequirement_class_False_True_None_None = new UriLoader(InplaceUpdateRequirement_class, false, true, null, null); - public static Loader ToolTimeLimit_class = new EnumLoader(ToolTimeLimit_class.class); - public static Loader uri_ToolTimeLimit_class_False_True_None_None = new UriLoader(ToolTimeLimit_class, false, true, null, null); - public static Loader union_of_IntegerInstance_or_LongInstance_or_ExpressionLoader = new UnionLoader(new Loader[] { IntegerInstance, LongInstance, ExpressionLoader }); - public static Loader> optional_InputBinding = new OptionalLoader(InputBinding); - public static Loader ExpressionTool_class = new EnumLoader(ExpressionTool_class.class); - public static Loader uri_ExpressionTool_class_False_True_None_None = new UriLoader(ExpressionTool_class, false, true, null, null); - public static Loader> array_of_WorkflowInputParameter = new ArrayLoader(WorkflowInputParameter); - public static Loader> idmap_inputs_array_of_WorkflowInputParameter = new IdMapLoader(array_of_WorkflowInputParameter, "id", "type"); - public static Loader> array_of_ExpressionToolOutputParameter = new ArrayLoader(ExpressionToolOutputParameter); - public static Loader> idmap_outputs_array_of_ExpressionToolOutputParameter = new IdMapLoader(array_of_ExpressionToolOutputParameter, "id", "type"); - public static Loader uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_1_None = new UriLoader(union_of_NullInstance_or_StringInstance_or_array_of_StringInstance, false, false, 1, null); - public static Loader> optional_LinkMergeMethod = new OptionalLoader(LinkMergeMethod); - public static Loader> optional_PickValueMethod = new OptionalLoader(PickValueMethod); - public static Loader uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_2_None = new UriLoader(union_of_NullInstance_or_StringInstance_or_array_of_StringInstance, false, false, 2, null); - public static Loader> array_of_WorkflowStepInput = new ArrayLoader(WorkflowStepInput); - public static Loader> idmap_in_array_of_WorkflowStepInput = new IdMapLoader(array_of_WorkflowStepInput, "id", "source"); - public static Loader union_of_StringInstance_or_WorkflowStepOutput = new UnionLoader(new Loader[] { StringInstance, WorkflowStepOutput }); - public static Loader> array_of_union_of_StringInstance_or_WorkflowStepOutput = new ArrayLoader(union_of_StringInstance_or_WorkflowStepOutput); - public static Loader> uri_array_of_union_of_StringInstance_or_WorkflowStepOutput_True_False_None_None = new UriLoader(array_of_union_of_StringInstance_or_WorkflowStepOutput, true, false, null, null); - public static Loader> array_of_AnyInstance = new ArrayLoader(AnyInstance); - public static Loader>> optional_array_of_AnyInstance = new OptionalLoader(array_of_AnyInstance); - public static Loader>> idmap_hints_optional_array_of_AnyInstance = new IdMapLoader(optional_array_of_AnyInstance, "class", "None"); - public static Loader union_of_StringInstance_or_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation = new UnionLoader(new Loader[] { StringInstance, CommandLineTool, ExpressionTool, Workflow, Operation }); - public static Loader uri_union_of_StringInstance_or_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation_False_False_None_None = new UriLoader(union_of_StringInstance_or_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation, false, false, null, null); - public static Loader uri_union_of_NullInstance_or_StringInstance_or_array_of_StringInstance_False_False_0_None = new UriLoader(union_of_NullInstance_or_StringInstance_or_array_of_StringInstance, false, false, 0, null); - public static Loader> optional_ScatterMethod = new OptionalLoader(ScatterMethod); - public static Loader> uri_optional_ScatterMethod_False_True_None_None = new UriLoader(optional_ScatterMethod, false, true, null, null); - public static Loader Workflow_class = new EnumLoader(Workflow_class.class); - public static Loader uri_Workflow_class_False_True_None_None = new UriLoader(Workflow_class, false, true, null, null); - public static Loader> array_of_WorkflowOutputParameter = new ArrayLoader(WorkflowOutputParameter); - public static Loader> idmap_outputs_array_of_WorkflowOutputParameter = new IdMapLoader(array_of_WorkflowOutputParameter, "id", "type"); - public static Loader> array_of_WorkflowStep = new ArrayLoader(WorkflowStep); - public static Loader> idmap_steps_array_of_WorkflowStep = new IdMapLoader(array_of_WorkflowStep, "id", "None"); - public static Loader SubworkflowFeatureRequirement_class = new EnumLoader(SubworkflowFeatureRequirement_class.class); - public static Loader uri_SubworkflowFeatureRequirement_class_False_True_None_None = new UriLoader(SubworkflowFeatureRequirement_class, false, true, null, null); - public static Loader ScatterFeatureRequirement_class = new EnumLoader(ScatterFeatureRequirement_class.class); - public static Loader uri_ScatterFeatureRequirement_class_False_True_None_None = new UriLoader(ScatterFeatureRequirement_class, false, true, null, null); - public static Loader MultipleInputFeatureRequirement_class = new EnumLoader(MultipleInputFeatureRequirement_class.class); - public static Loader uri_MultipleInputFeatureRequirement_class_False_True_None_None = new UriLoader(MultipleInputFeatureRequirement_class, false, true, null, null); - public static Loader StepInputExpressionRequirement_class = new EnumLoader(StepInputExpressionRequirement_class.class); - public static Loader uri_StepInputExpressionRequirement_class_False_True_None_None = new UriLoader(StepInputExpressionRequirement_class, false, true, null, null); - public static Loader Operation_class = new EnumLoader(Operation_class.class); - public static Loader uri_Operation_class_False_True_None_None = new UriLoader(Operation_class, false, true, null, null); - public static Loader> array_of_OperationInputParameter = new ArrayLoader(OperationInputParameter); - public static Loader> idmap_inputs_array_of_OperationInputParameter = new IdMapLoader(array_of_OperationInputParameter, "id", "type"); - public static Loader> array_of_OperationOutputParameter = new ArrayLoader(OperationOutputParameter); - public static Loader> idmap_outputs_array_of_OperationOutputParameter = new IdMapLoader(array_of_OperationOutputParameter, "id", "type"); - public static Loader union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation = new UnionLoader(new Loader[] { CommandLineTool, ExpressionTool, Workflow, Operation }); - public static Loader> array_of_union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation = new ArrayLoader(union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation); - public static Loader union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation_or_array_of_union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation = new UnionLoader(new Loader[] { CommandLineTool, ExpressionTool, Workflow, Operation, array_of_union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation }); - - static { - ((UnionLoader) CWLObjectType).addLoaders(new Loader[] { BooleanInstance, IntegerInstance, LongInstance, DoubleInstance, DoubleInstance, StringInstance, File, Directory, array_of_optional_CWLObjectType, map_of_optional_CWLObjectType }); - } - -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/LoadingOptions.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/LoadingOptions.java deleted file mode 100644 index bc9879e3..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/LoadingOptions.java +++ /dev/null @@ -1,129 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.net.URI; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Map; - -public class LoadingOptions { - Fetcher fetcher; - String fileUri; - Map namespaces; - List schemas; - Boolean noLinkCheck; - String container; - Map idx; - Map vocab; - Map rvocab; - - LoadingOptions( - final Fetcher fetcher, - final String fileUri, - final Map namespaces, - final List schemas, - final Boolean noLinkCheck, - final String container, - final Map idx) { - this.fetcher = fetcher; - this.fileUri = fileUri; - this.namespaces = namespaces; - this.schemas = schemas; - this.noLinkCheck = noLinkCheck; - this.container = container; - this.idx = idx; - - if (namespaces != null) { - this.vocab = (Map) ConstantMaps.vocab.clone(); - this.rvocab = (Map) ConstantMaps.rvocab.clone(); - for (Map.Entry namespaceEntry : namespaces.entrySet()) { - this.vocab.put(namespaceEntry.getKey(), namespaceEntry.getValue()); - this.rvocab.put(namespaceEntry.getValue(), namespaceEntry.getKey()); - } - } else { - this.vocab = (Map) ConstantMaps.vocab; - this.rvocab = (Map) ConstantMaps.rvocab; - } - } - - public String expandUrl( - String url_, - final String baseUrl, - final boolean scopedId, - final boolean vocabTerm, - final Integer scopedRef) { - // NOT CONVERTING this - doesn't match type declaration - // if not isinstance(url, str): - // return url - String url = url_; - if (url.equals("@id") || url.equals("@type")) { - return url; - } - - if (vocabTerm && this.vocab.containsKey(url)) { - return url; - } - - if (!this.vocab.isEmpty() && url.contains(":")) { - String prefix = url.split(":", 1)[0]; - if (this.vocab.containsKey(prefix)) { - url = this.vocab.get(prefix) + url.substring(prefix.length() + 1); - } - } - - Uris.UriSplit split = Uris.split(url); - final String scheme = split.scheme; - final boolean hasFragment = stringHasContent(split.fragment); - if (scheme != null - && ((scheme.length() > 0 - && (scheme.equals("http") || scheme.equals("https") || scheme.equals("file"))) - || url.startsWith("$(") - || url.startsWith("${"))) { - // pass - } else if (scopedId && !hasFragment) { - final Uris.UriSplit splitbase = Uris.split(baseUrl); - final String frg; - if (stringHasContent(splitbase.fragment)) { - frg = splitbase.fragment + "/" + split.path; - } else { - frg = split.path; - } - String pt; - if (!splitbase.path.equals("")) { - pt = splitbase.path; - } else { - pt = "/"; - } - url = Uris.unsplit(splitbase.scheme, splitbase.netloc, pt, splitbase.query, frg); - } else if (scopedRef != null && !hasFragment) { - final Uris.UriSplit splitbase = Uris.split(baseUrl); - final ArrayList sp = new ArrayList(Arrays.asList(splitbase.fragment.split("/"))); - int n = scopedRef; - while (n > 0 && sp.size() > 0) { - sp.remove(sp.size()-1); - n -= 1; - } - sp.add(url); - final String fragment = String.join("/", sp); - url = Uris.unsplit(splitbase.scheme, splitbase.netloc, splitbase.path, splitbase.query, fragment); - } else { - url = this.fetcher.urlJoin(baseUrl, url); - } - - if (vocabTerm) { - split = Uris.split(url); - if (stringHasContent(split.scheme)) { - if (this.rvocab.containsKey(url)) { - return this.rvocab.get(url); - } - } else { - throw new ValidationException("Term '{}' not in vocabulary".format(url)); - } - } - return url; - } - - static boolean stringHasContent(final String s) { - return s != null && s.length() > 0; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/LoadingOptionsBuilder.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/LoadingOptionsBuilder.java deleted file mode 100644 index 53af9b73..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/LoadingOptionsBuilder.java +++ /dev/null @@ -1,82 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Optional; - -public class LoadingOptionsBuilder { - private Optional fetcher = Optional.empty(); - private Optional fileUri = Optional.empty(); - private Optional> namespaces = Optional.empty(); - private Optional> schemas = Optional.empty(); - private Optional copyFrom = Optional.empty(); - private Optional noLinkCheck = Optional.empty(); - private Optional container = Optional.empty(); - - public LoadingOptionsBuilder() {} - - public LoadingOptionsBuilder setFetcher(final Fetcher fetcher) { - this.fetcher = Optional.of(fetcher); - return this; - } - - public LoadingOptionsBuilder copiedFrom(final LoadingOptions copyFrom) { - this.copyFrom = Optional.of(copyFrom); - return this; - } - - public LoadingOptionsBuilder setFileUri(final String fileUri) { - this.fileUri = Optional.of(fileUri); - return this; - } - - public LoadingOptionsBuilder setNamespaces(final Map namespaces) { - this.namespaces = Optional.of(namespaces); - return this; - } - - public LoadingOptionsBuilder setNoLinkCheck(final Boolean noLinkCheck) { - this.noLinkCheck = Optional.of(noLinkCheck); - return this; - } - - public LoadingOptionsBuilder setContainer(final String container) { - this.container = Optional.of(container); - return this; - } - - public LoadingOptions build() { - Fetcher fetcher = this.fetcher.orElse(null); - String fileUri = this.fileUri.orElse(null); - List schemas = this.schemas.orElse(null); - Map namespaces = this.namespaces.orElse(null); - Boolean noLinkCheck = this.noLinkCheck.orElse(null); - String container = this.container.orElse(null); - Map idx = new HashMap(); - if (this.copyFrom.isPresent()) { - final LoadingOptions copyFrom = this.copyFrom.get(); - idx = copyFrom.idx; - if (fetcher == null) { - fetcher = copyFrom.fetcher; - } - if (fileUri == null) { - fileUri = copyFrom.fileUri; - } - if (namespaces == null) { - namespaces = copyFrom.namespaces; - schemas = copyFrom.schemas; // Bug in Python codegen? - } - if (noLinkCheck == null) { - noLinkCheck = copyFrom.noLinkCheck; - } - if (container == null) { - container = copyFrom.container; - } - } - if (fetcher == null) { - fetcher = new DefaultFetcher(); - } - return new LoadingOptions(fetcher, fileUri, namespaces, schemas, noLinkCheck, container, idx); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/MapLoader.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/MapLoader.java deleted file mode 100644 index a284809f..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/MapLoader.java +++ /dev/null @@ -1,51 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class MapLoader implements Loader> { - private final Loader valueLoader; - private final String container; - private final Boolean noLinkCheck; - - public MapLoader(Loader valueLoader, final String container, final Boolean noLinkCheck) { - this.valueLoader = valueLoader; - this.container = container; - this.noLinkCheck = noLinkCheck; - } - - public Map load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - final Map docMap = (Map) Loader.validateOfJavaType(Map.class, doc); - LoadingOptions innerLoadingOptions = loadingOptions; - if (this.container != null || this.noLinkCheck != null) { - LoadingOptionsBuilder builder = new LoadingOptionsBuilder().copiedFrom(loadingOptions); - if (this.container != null) { - builder.setContainer(this.container); - } - if (this.noLinkCheck != null) { - builder.setNoLinkCheck(this.noLinkCheck); - } - innerLoadingOptions = builder.build(); - } - final Map r = new HashMap(); - final List errors = new ArrayList(); - for (final Map.Entry entry : docMap.entrySet()) { - try { - final Object loadedField = this.valueLoader.loadField(entry.getValue(), baseUri, innerLoadingOptions); - r.put(entry.getKey(), (T) loadedField); - } catch (final ValidationException e) { - errors.add(e); - } - } - if (!errors.isEmpty()) { - throw new ValidationException("", errors); - } - return r; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/NullLoader.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/NullLoader.java deleted file mode 100644 index 09e9c964..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/NullLoader.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -public class NullLoader implements Loader { - - public Object load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - if (doc != null) { - throw new ValidationException("Expected null"); - } - return doc; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/OneOrListOf.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/OneOrListOf.java deleted file mode 100644 index 862be317..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/OneOrListOf.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.util.List; -import java.util.Optional; - -public class OneOrListOf { - private Optional object; - private Optional> objects; - - private OneOrListOf(final T object, final List objects) { - this.object = Optional.ofNullable(object); - this.objects = Optional.ofNullable(objects); - } - - public static OneOrListOf oneOf(T object) { - return new OneOrListOf(object, null); - } - - public static OneOrListOf listOf(List objects) { - assert objects != null; - return new OneOrListOf(null, objects); - } - - public boolean isOne() { - return this.getOneOptional().isPresent(); - } - - public boolean isList() { - return this.getListOptional().isPresent(); - } - - public Optional getOneOptional() { - return this.object; - } - - public Optional> getListOptional() { - return this.objects; - } - - public T getOne() { - return this.getOneOptional().get(); - } - - public List getList() { - return this.getListOptional().get(); - } - -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/OneOrListOfLoader.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/OneOrListOfLoader.java deleted file mode 100644 index 622c6ead..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/OneOrListOfLoader.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.util.ArrayList; -import java.util.List; -import java.util.Optional; - - -public class OneOrListOfLoader implements Loader> { - private final Loader oneLoader; - private final Loader> listLoader; - - public OneOrListOfLoader(Loader oneLoader, Loader> listLoader) { - this.oneLoader = oneLoader; - this.listLoader = listLoader; - } - - public OneOrListOf load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - final List errors = new ArrayList(); - try { - return OneOrListOf.oneOf(this.oneLoader.load(doc, baseUri, loadingOptions, docRoot)); - } catch (ValidationException e) { - errors.add(e); - } - try { - return OneOrListOf.listOf(this.listLoader.load(doc, baseUri, loadingOptions, docRoot)); - } catch (ValidationException e) { - errors.add(e); - } - throw new ValidationException("Failed to one or list of of type", errors); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/OptionalLoader.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/OptionalLoader.java deleted file mode 100644 index 02b09fbf..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/OptionalLoader.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.util.Optional; - - -public class OptionalLoader implements Loader> { - private final Loader itemLoader; - - public OptionalLoader(Loader itemLoader) { - this.itemLoader = itemLoader; - } - - public Optional load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - if(doc == null) { - return Optional.empty(); - } - return Optional.of(itemLoader.load(doc, baseUri, loadingOptions, docRoot)); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/PrimitiveLoader.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/PrimitiveLoader.java deleted file mode 100644 index 85add1b5..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/PrimitiveLoader.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -public class PrimitiveLoader implements Loader { - private Class clazz; - - public PrimitiveLoader(Class clazz) { - this.clazz = clazz; - } - - public T load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - return Loader.validateOfJavaType(this.clazz, doc); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/RecordLoader.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/RecordLoader.java deleted file mode 100644 index b40d4f56..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/RecordLoader.java +++ /dev/null @@ -1,51 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.lang.reflect.Constructor; -import java.lang.reflect.InvocationTargetException; - -public class RecordLoader implements Loader { - private final Class saveableClass; - private final String container; - private final Boolean noLinkCheck; - - public RecordLoader(final Class saveableClass, final String container, final Boolean noLinkCheck) { - this.saveableClass = saveableClass; - this.container = container; - this.noLinkCheck = noLinkCheck; - } - - public T load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - Loader.validateOfJavaType(java.util.Map.class, doc); - try { - final Constructor constructor = - this.saveableClass.getConstructor( - new Class[] {Object.class, String.class, LoadingOptions.class, String.class}); - LoadingOptions innerLoadingOptions = loadingOptions; - if (this.container != null || this.noLinkCheck != null) { - LoadingOptionsBuilder builder = new LoadingOptionsBuilder().copiedFrom(loadingOptions); - if (this.container != null) { - builder.setContainer(this.container); - } - if (this.noLinkCheck != null) { - builder.setNoLinkCheck(this.noLinkCheck); - } - innerLoadingOptions = builder.build(); - } - final T ret = constructor.newInstance(doc, baseUri, innerLoadingOptions, docRoot); - return ret; - } catch (InvocationTargetException e) { - final Throwable cause = e.getCause(); - if (cause instanceof RuntimeException) { - throw (RuntimeException) cause; - } - throw new RuntimeException(e.getCause()); - } catch (ReflectiveOperationException e) { - throw new RuntimeException(e); - } - } - -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/RootLoader.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/RootLoader.java deleted file mode 100644 index a86f2296..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/RootLoader.java +++ /dev/null @@ -1,105 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.io.File; -import java.io.IOException; -import java.nio.file.Files; -import java.nio.file.Path; -import java.nio.file.Paths; -import java.util.Map; - -public class RootLoader { - public static Object loadDocument( - final Map doc, final String baseUri_, final LoadingOptions loadingOptions_) { - final String baseUri = ensureBaseUri(baseUri_); - LoadingOptions loadingOptions = loadingOptions_; - if (loadingOptions == null) { - loadingOptions = new LoadingOptionsBuilder().setFileUri(baseUri).build(); - } - return LoaderInstances.union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation_or_array_of_union_of_CommandLineTool_or_ExpressionTool_or_Workflow_or_Operation.documentLoad(doc, baseUri, loadingOptions); - } - - public static Object loadDocument( - final Map doc, final String baseUri) { - return loadDocument(doc, baseUri, null); - } - - public static Object loadDocument(final Map doc) { - return loadDocument(doc, ensureBaseUri(null)); - } - - public static Object loadDocument(final Path path) { - return loadDocument(readPath(path), path.toUri().toString()); - } - - public static Object loadDocument(final Path path, String baseUri) { - return loadDocument(readPath(path), baseUri); - } - - public static Object loadDocument( - final Path path, LoadingOptions loadingOptions) { - return loadDocument(readPath(path), loadingOptions); - } - - public static Object loadDocument( -final Path path, String baseUri, LoadingOptions loadingOptions) { - return loadDocument(readPath(path), baseUri, loadingOptions); - } - - public static Object loadDocument(final File file) { - return loadDocument(file.toPath()); - } - - public static Object loadDocument(final File file, String baseUri) { - return loadDocument(file.toPath(), baseUri); - } - - public static Object loadDocument(final File file, LoadingOptions loadingOptions) { - return loadDocument(file.toPath(), loadingOptions); - } - - public static Object loadDocument( - final File file, String baseUri, LoadingOptions loadingOptions) { - return loadDocument(file.toPath(), baseUri, loadingOptions); - } - - public static Object loadDocument(final String doc) { - return loadDocument(doc, ensureBaseUri(null)); - } - - public static Object loadDocument(final String doc, final LoadingOptions loadingOptions) { - return loadDocument(doc, ensureBaseUri(null), loadingOptions); - } - - public static Object loadDocument(final String doc, final String uri) { - return loadDocument(doc, uri, null); - } - - public static Object loadDocument( - final String doc, final String uri_, final LoadingOptions loadingOptions_) { - final String uri = ensureBaseUri(uri_); - LoadingOptions loadingOptions = loadingOptions_; - if (loadingOptions == null) { - loadingOptions = new LoadingOptionsBuilder().setFileUri(uri).build(); - } - final Map result = YamlUtils.mapFromString(doc); - loadingOptions.idx.put(uri, result); - return loadDocument(result, uri, loadingOptions); - } - - static String readPath(final Path path) { - try { - return new String(Files.readAllBytes(path), "UTF8"); - } catch (final IOException e) { - throw new RuntimeException(e); - } - } - - static String ensureBaseUri(final String baseUri_) { - String baseUri = baseUri_; - if(baseUri == null) { - baseUri = Uris.fileUri(Paths.get(".").toAbsolutePath().normalize().toString()) + "/"; - } - return baseUri; - } - -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/Saveable.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/Saveable.java deleted file mode 100644 index 9f250c15..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/Saveable.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -public interface Saveable { - // TODO: implement writable interface - // public abstract void save(boolean top, String baseUrl, boolean relativeUris); -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/SaveableImpl.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/SaveableImpl.java deleted file mode 100644 index 0bcd9f49..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/SaveableImpl.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -public class SaveableImpl implements Saveable { - public SaveableImpl(Object doc, String baseUri, LoadingOptions loadingOptions, String docRoot) {} -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/SecondaryFilesDslLoader.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/SecondaryFilesDslLoader.java deleted file mode 100644 index 64c26918..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/SecondaryFilesDslLoader.java +++ /dev/null @@ -1,86 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class SecondaryFilesDslLoader implements Loader { - private final Loader innerLoader; - - public SecondaryFilesDslLoader(final Loader innerLoader) { - this.innerLoader = innerLoader; - } - - - public T load( - final Object doc_, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - Object doc = doc_; - List> r = new ArrayList>(); - if (doc instanceof List) { - final List docList = (List) doc; - for (final Object d : docList) { - Map entry = new HashMap(); - if (d instanceof String) { - String dString = (String) d; - if (dString.endsWith("?")) { - entry.put("pattern", dString.substring(0, dString.length()-1)); - entry.put("required", false); - } else { - entry.put("pattern", dString); - } - r.add(entry); - } else if (d instanceof Map) { - @SuppressWarnings("unchecked") - Map dMap = new HashMap((Map) d); - if (dMap.containsKey("pattern")) { - entry.put("pattern", dMap.remove("pattern")); - } else { - throw new ValidationException("Missing 'pattern' in secondaryFiles specification entry."); - } - if (dMap.containsKey("required")) { - entry.put("required", dMap.remove("required")); - } - if (dMap.size() > 0) { - throw new ValidationException("Unallowed values in secondaryFiles specification entry."); - } - r.add(entry); - } else { - throw new ValidationException("Expected a string or sequence of (strings or mappings)."); - } - } - } else if (doc instanceof Map) { - Map entry = new HashMap(); - @SuppressWarnings("unchecked") - Map dMap = new HashMap((Map) doc); - if (dMap.containsKey("pattern")) { - entry.put("pattern", dMap.remove("pattern")); - } else { - throw new ValidationException("Missing 'pattern' in secondaryFiles specification entry."); - } - if (dMap.containsKey("required")) { - entry.put("required", dMap.remove("required")); - } - if (dMap.size() > 0) { - throw new ValidationException("Unallowed values in secondaryFiles specification entry."); - } - r.add(entry); - } else if (doc instanceof String) { - String dString = (String) doc; - Map entry = new HashMap(); - if (dString.endsWith("?")) { - entry.put("pattern", dString.substring(0, dString.length()-1)); - entry.put("required", false); - } else { - entry.put("pattern", dString); - } - r.add(entry); - } else { - throw new ValidationException("Expected a string or sequence of (strings or mappings)."); - } - return this.innerLoader.load(r, baseUri, loadingOptions, docRoot); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/TypeDslLoader.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/TypeDslLoader.java deleted file mode 100644 index 0a44c017..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/TypeDslLoader.java +++ /dev/null @@ -1,81 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -public class TypeDslLoader implements Loader { - private final Loader innerLoader; - private final Integer refScope; - private static final Pattern TYPE_DSL_REGEX = Pattern.compile("^([^\\[?]+)(\\[\\])?(\\?)?$"); - - public TypeDslLoader(final Loader innerLoader, final Integer refScope) { - this.innerLoader = innerLoader; - this.refScope = refScope; - } - - private Object resolve( - final String doc_, final String baseUri, final LoadingOptions loadingOptions) { - final Matcher m = TYPE_DSL_REGEX.matcher(doc_); - if (m.matches()) { - final String first = - loadingOptions.expandUrl(m.group(1), baseUri, false, true, this.refScope); - Object second = null; - Object third = null; - if (m.group(2) != null && m.group(2).length() > 0) { - HashMap resolvedMap = new HashMap(); - resolvedMap.put("type", "array"); - resolvedMap.put("items", first); - second = resolvedMap; - } - if (m.group(3) != null && m.group(3).length() > 0) { - third = Arrays.asList("null", second != null ? second : first); - } - if (third != null) { - return third; - } else { - return second != null ? second : first; - } - } else { - return doc_; - } - } - - public T load( - final Object doc_, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - Object doc = doc_; - if (doc instanceof List) { - final List docList = (List) doc; - final List r = new ArrayList(); - for (final Object d : docList) { - if (d instanceof String) { - Object resolved = this.resolve((String) d, baseUri, loadingOptions); - if (resolved instanceof List) { - List resolvedList = (List) resolved; - for (Object i : resolvedList) { - if (!r.contains(i)) { - r.add(i); - } - } - } else { - if (!r.contains(resolved)) { - r.add(resolved); - } - } - } else { - r.add(d); - } - } - doc = docList; - } else if (doc instanceof String) { - doc = this.resolve((String) doc, baseUri, loadingOptions); - } - return this.innerLoader.load(doc, baseUri, loadingOptions); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/UnionLoader.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/UnionLoader.java deleted file mode 100644 index 105741b1..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/UnionLoader.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -public class UnionLoader implements Loader { - private final ArrayList alternates; - - public UnionLoader(List alternates) { - this.alternates = new ArrayList(alternates); - } - - public UnionLoader(Loader[] alternates) { - this(Arrays.asList(alternates)); - } - - public void addLoaders(List loaders) { - this.alternates.addAll(loaders); - } - - public void addLoaders(Loader[] loaders) { - this.addLoaders(Arrays.asList(loaders)); - } - - public Object load( - final Object doc, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - final List errors = new ArrayList(); - for (final Loader loader : this.alternates) { - try { - return loader.load(doc, baseUri, loadingOptions, docRoot); - } catch (ValidationException e) { - errors.add(e); - } - } - throw new ValidationException("Failed to match union type", errors); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/UriLoader.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/UriLoader.java deleted file mode 100644 index 3ba92ad4..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/UriLoader.java +++ /dev/null @@ -1,59 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.util.ArrayList; -import java.util.List; - -public class UriLoader implements Loader { - private final Loader innerLoader; - private final boolean scopedId; - private final boolean vocabTerm; - private final Integer scopedRef; - private final Boolean noLinkCheck; - - public UriLoader( - final Loader innerLoader, - final boolean scopedId, - final boolean vocabTerm, - final Integer scopedRef, - final Boolean noLinkCheck) { - this.innerLoader = innerLoader; - this.scopedId = scopedId; - this.vocabTerm = vocabTerm; - this.scopedRef = scopedRef; - this.noLinkCheck = noLinkCheck; - } - - private Object expandUrl( - final Object object, final String baseUri, final LoadingOptions loadingOptions) { - if (object instanceof String) { - return loadingOptions.expandUrl( - (String) object, baseUri, this.scopedId, this.vocabTerm, this.scopedRef); - } else { - return object; - } - } - - public T load( - final Object doc_, - final String baseUri, - final LoadingOptions loadingOptions, - final String docRoot) { - LoadingOptions innerLoadingOptions = loadingOptions; - if (this.noLinkCheck != null) { - innerLoadingOptions = new LoadingOptionsBuilder().copiedFrom(loadingOptions).setNoLinkCheck(this.noLinkCheck).build(); - } - Object doc = doc_; - if (doc instanceof List) { - List docList = (List) doc; - List docWithExpansion = new ArrayList(); - for (final Object el : docList) { - docWithExpansion.add(this.expandUrl(el, baseUri, innerLoadingOptions)); - } - doc = docWithExpansion; - } - if (doc instanceof String) { - doc = this.expandUrl(doc, baseUri, innerLoadingOptions); - } - return this.innerLoader.load(doc, baseUri, innerLoadingOptions); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/Uris.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/Uris.java deleted file mode 100644 index 403b79f8..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/Uris.java +++ /dev/null @@ -1,129 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.io.UnsupportedEncodingException; -import java.net.URI; -import java.net.URISyntaxException; -import java.nio.charset.StandardCharsets; - -public class Uris { - - // Emulate Python's urlsplit. - public static class UriSplit { - String scheme; - String netloc; - String path; - String query; - String fragment; - - public UriSplit(String scheme, String netloc, String path, String query, String fragment) { - this.scheme = scheme; - this.netloc = netloc; - this.path = path; - this.query = query; - this.fragment = fragment; - } - - public String toString() { - return String.format("UriSplit[%s,%s,%s,%s,%s]", this.scheme, this.netloc, this.path, this.query, - this.fragment); - } - - } - - public static String fileUri(final String path) { - return fileUri(path, false); - } - - public static String fileUri(final String path, final boolean splitFrag) { - if (path.equals("file://")) { - return path; - } - String frag; - String urlPath; - if (splitFrag) { - final String[] pathsp = path.split("#", 2); - // is quoting this? - urlPath = Uris.quote(pathsp[0]); - if (pathsp.length == 2) { - frag = "#" + Uris.quote(pathsp[1]); - } else { - frag = ""; - urlPath = Uris.quote(path); - } - } else { - urlPath = Uris.quote(path); - frag = ""; - } - if (urlPath.startsWith("//")) { - return "file:" + urlPath + frag; - } else { - return "file://" + urlPath + frag; - } - } - - public static UriSplit split(final String uriString) { - try { - final URI uri = new URI(uriString); - return new Uris.UriSplit(uri.getScheme(), uri.getAuthority(), uri.getPath(), uri.getQuery(), - uri.getFragment()); - } catch (URISyntaxException e) { - return new Uris.UriSplit(null, null, uriString, null, null); - } - } - - public static String unsplit(final String scheme, final String netloc, final String path, final String query, - final String fragment) { - try { - return new URI(scheme, netloc, path, query, fragment).toString(); - } catch (URISyntaxException e) { - if (scheme == null && path.startsWith("_:")) { - String uri = path; - if (fragment != null && fragment.length() > 0) { - uri += "#" + fragment; - } - return fragment; - } - throw new RuntimeException(e); - } - } - - public static URI toUri(final String url) { - try { - return new URI(url); - } catch (URISyntaxException e) { - throw new RuntimeException(e); - } - } - - public static String quote(final String uri) { - try { - return java.net.URLDecoder.decode(uri, StandardCharsets.UTF_8.name()); - } catch (UnsupportedEncodingException e) { - throw new RuntimeException(e); - } - } - - public static String unquote(final String uri) { - try { - return java.net.URLEncoder.encode(uri, StandardCharsets.UTF_8.name()); - } catch (UnsupportedEncodingException e) { - throw new RuntimeException(e); - } - } - - public static String shortname(final String input_id) { - try { - final URI uri = new URI(input_id); - final String fragment = uri.getFragment(); - if (fragment != null) { - String[] fragment_elements = fragment.split("/"); - return fragment_elements[fragment_elements.length - 1]; - } else { - String[] path_elements = uri.getPath().split("/"); - return path_elements[path_elements.length - 1]; - } - } catch (URISyntaxException e) { - return input_id; - } - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/ValidationException.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/ValidationException.java deleted file mode 100644 index 0ee5e6ca..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/ValidationException.java +++ /dev/null @@ -1,80 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -public class ValidationException extends RuntimeException { - private final List children; - private String bullet = ""; - private String currentMessage; - - public ValidationException(final String message) { - this(message, (List) null); - } - - public ValidationException(final String message, final ValidationException child) { - this(message, Arrays.asList(child)); - } - - public ValidationException(final String message, final List children_) { - super(message); - this.currentMessage = message; - final List children = new ArrayList(); - if (children_ != null) { - for (final ValidationException child : children_) { - children.addAll(child.simplify()); - } - } - this.children = children; - } - - public ValidationException withBullet(final String bullet) { - this.bullet = bullet; - return this; - } - - public List simplify() { - if (getMessage().length() > 0) { - return Arrays.asList(this); - } else { - return this.children; - } - } - - public String summary(final int level, final boolean withBullet) { - final int indentPerLevel = 2; - final String spaces = new String(new char[level * indentPerLevel]).replace("\0", " "); - final String bullet; - if (this.bullet.length() > 0 && withBullet) { - bullet = this.bullet; - } else { - bullet = ""; - } - return spaces + bullet + this.currentMessage; - } - - public String prettyStr(final Integer level_) { - Integer level = level_; - if (level == null) { - level = 0; - } - final List parts = new ArrayList(); - int nextLevel; - if (this.currentMessage != null && this.currentMessage.length() > 0) { - parts.add(this.summary(level, true)); - nextLevel = level + 1; - } else { - nextLevel = level; - } - for (final ValidationException child : this.children) { - parts.add(child.prettyStr(nextLevel)); - } - final String ret = String.join("\n", parts); - return ret; - } - - public String getMessage() { - return this.prettyStr(null); - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/Validator.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/Validator.java deleted file mode 100644 index 4faaf6c5..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/Validator.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.io.File; -import org.snakeyaml.engine.v2.api.Dump; -import org.snakeyaml.engine.v2.api.DumpSettings; -import org.snakeyaml.engine.v2.common.ScalarStyle; - -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.databind.ObjectMapper; - -public class Validator { - public static void main(final String[] args) throws Exception { - if (args.length != 1) { - throw new Exception("No argument supplied to validate."); - } - // TODO: allow URLs and such. - final File uri = new File(args[0]); - Object doc = RootLoader.loadDocument(uri); - ObjectMapper mapper = new ObjectMapper(); - mapper.setSerializationInclusion(Include.NON_NULL).writerWithDefaultPrettyPrinter().writeValue(System.out, doc); - System.out.println(); - - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/YamlUtils.java b/src/main/java/org/w3id/cwl/cwl1_2/utils/YamlUtils.java deleted file mode 100644 index 5d0ba46a..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/YamlUtils.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.regex.Pattern; - -import org.snakeyaml.engine.v2.api.Load; -import org.snakeyaml.engine.v2.api.LoadSettings; -import org.snakeyaml.engine.v2.nodes.Tag; -import org.snakeyaml.engine.v2.resolver.ScalarResolver; -import org.snakeyaml.engine.v2.schema.CoreSchema; - -public class YamlUtils { - - public static Map mapFromString(final String text) { - LoadSettings settings = LoadSettings.builder().setSchema(new CoreSchema()).build(); - Load load = new Load(settings); - final Map result = (Map) load.loadFromString(text); - return result; - } - - public static List listFromString(final String text) { - LoadSettings settings = LoadSettings.builder().setSchema(new CoreSchema()).build(); - Load load = new Load(settings); - final List result = (List) load.loadFromString(text); - return result; - } -} diff --git a/src/main/java/org/w3id/cwl/cwl1_2/utils/package.html b/src/main/java/org/w3id/cwl/cwl1_2/utils/package.html deleted file mode 100644 index 7516d4c3..00000000 --- a/src/main/java/org/w3id/cwl/cwl1_2/utils/package.html +++ /dev/null @@ -1,3 +0,0 @@ - -This package contains utilities for working the SchemaSalad generated code for the org.w3id.cwl.cwl1_2 package. - diff --git a/src/main/resources/META-INF/MANIFEST.MF b/src/main/resources/META-INF/MANIFEST.MF index ffaaa36a..47659aa6 100644 --- a/src/main/resources/META-INF/MANIFEST.MF +++ b/src/main/resources/META-INF/MANIFEST.MF @@ -1,2 +1,2 @@ Manifest-Version: 1.0 -Main-Class: org.w3id.cwl.cwl1_2.utils.Validator +Main-Class: org.commonwl.cwlsdk.cwl1_2.utils.Validator diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/AnonymousRecordTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/AnonymousRecordTest.java new file mode 100644 index 00000000..74ea0163 --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/AnonymousRecordTest.java @@ -0,0 +1,11 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +public class AnonymousRecordTest { + + @org.junit.Test + public void test_record_with_anonymous_type_record() throws Exception { + java.net.URL url = getClass().getResource("record-in-format.cwl.json"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/DefaultFetcherTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/DefaultFetcherTest.java new file mode 100644 index 00000000..b4aa7e06 --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/DefaultFetcherTest.java @@ -0,0 +1,37 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import org.junit.Assert; +import org.junit.Test; + +public class DefaultFetcherTest { + @Test + public void testUnderscoreJoin() { + final DefaultFetcher fetcher = new DefaultFetcher(); + Assert.assertEquals(fetcher.urlJoin("http://googl.com/", "_:/moo"), "_:/moo"); + } + + @Test + public void testUnixJoin() { + final DefaultFetcher fetcher = new DefaultFetcher(); + String url; + + url = fetcher.urlJoin("file:///home/fred/foo.cwl", "soup.cwl"); + Assert.assertEquals(url, "file:///home/fred/soup.cwl"); + + url = fetcher.urlJoin("file:///home/fred/foo.cwl", "../alice/soup.cwl"); + Assert.assertEquals(url, "file:///home/alice/soup.cwl"); + // relative from root + url = fetcher.urlJoin("file:///home/fred/foo.cwl", "/baz/soup.cwl"); + Assert.assertEquals(url, "file:///baz/soup.cwl"); + + url = fetcher.urlJoin("file:///home/fred/foo.cwl", "http://example.com/bar/soup.cwl"); + Assert.assertEquals(url, "http://example.com/bar/soup.cwl"); + + url = fetcher.urlJoin("http://example.com/fred/foo.cwl", "soup.cwl"); + Assert.assertEquals(url, "http://example.com/fred/soup.cwl"); + + // Root-relative -- here relative to http host, not file:/// + url = fetcher.urlJoin("http://example.com/fred/foo.cwl", "/bar/soup.cwl"); + Assert.assertEquals(url, "http://example.com/bar/soup.cwl"); + } +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/ExamplesTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/ExamplesTest.java new file mode 100644 index 00000000..b3a906f2 --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/ExamplesTest.java @@ -0,0 +1,5429 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +public class ExamplesTest { + + @org.junit.Test + public void testvalid_stage_unprovided_fileByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stage-unprovided-file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stage_unprovided_fileByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stage-unprovided-file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stage_unprovided_fileByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stage-unprovided-file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_linkfileByString() throws Exception { + java.net.URL url = getClass().getResource("valid_linkfile.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_linkfileByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_linkfile.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_linkfileByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_linkfile.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wc_tool_shortcutByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wc-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wc_tool_shortcutByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wc-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wc_tool_shortcutByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wc-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_output_arrays_int_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_output-arrays-int-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_output_arrays_int_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_output-arrays-int-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_output_arrays_int_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_output-arrays-int-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat3_from_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat3_from_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat3_from_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_pass_unconnectedByString() throws Exception { + java.net.URL url = getClass().getResource("valid_pass-unconnected.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_pass_unconnectedByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_pass-unconnected.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_pass_unconnectedByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_pass-unconnected.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_output_arrays_intByString() throws Exception { + java.net.URL url = getClass().getResource("valid_output-arrays-int.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_output_arrays_intByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_output-arrays-int.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_output_arrays_intByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_output-arrays-int.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines7_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines7-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines7_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines7-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines7_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines7-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_symlink_legalByString() throws Exception { + java.net.URL url = getClass().getResource("valid_symlink-legal.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_symlink_legalByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_symlink-legal.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_symlink_legalByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_symlink-legal.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_any_type_compatByString() throws Exception { + java.net.URL url = getClass().getResource("valid_any-type-compat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_any_type_compatByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_any-type-compat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_any_type_compatByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_any-type-compat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_docker_output_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_docker-output-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_docker_output_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_docker-output-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_docker_output_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_docker-output-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_output_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-output-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_output_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-output-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_output_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-output-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_valuefrom_wf3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_outputByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_outputByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_outputByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wf_loadContents2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wf_loadContents2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wf_loadContents2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_timelimit2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_timelimit2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_timelimit2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_anon_enum_inside_array_inside_schemadefByString() throws Exception { + java.net.URL url = getClass().getResource("valid_anon_enum_inside_array_inside_schemadef.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_anon_enum_inside_array_inside_schemadefByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_anon_enum_inside_array_inside_schemadef.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_anon_enum_inside_array_inside_schemadefByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_anon_enum_inside_array_inside_schemadef.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_imported_hintByString() throws Exception { + java.net.URL url = getClass().getResource("valid_imported-hint.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_imported_hintByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_imported-hint.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_imported_hintByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_imported-hint.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_timelimit3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_timelimit3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_timelimit3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wf_loadContents4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wf_loadContents4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wf_loadContents4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_docker_array_secondaryfilesByString() throws Exception { + java.net.URL url = getClass().getResource("valid_docker-array-secondaryfiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_docker_array_secondaryfilesByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_docker-array-secondaryfiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_docker_array_secondaryfilesByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_docker-array-secondaryfiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wc2_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wc2-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wc2_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wc2-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wc2_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wc2-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stderrByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stderr.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stderrByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stderr.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stderrByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stderr.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wf_loadContents3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wf_loadContents3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wf_loadContents3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_schemadef_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_schemadef-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_schemadef_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_schemadef-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_schemadef_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_schemadef-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stderr_mediumcutByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stderr-mediumcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stderr_mediumcutByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stderr-mediumcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stderr_mediumcutByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stderr-mediumcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwdr_entryByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwdr-entry.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwdr_entryByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwdr-entry.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwdr_entryByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwdr-entry.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines17_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines17-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines17_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines17-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines17_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines17-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_updatedir_inplaceByString() throws Exception { + java.net.URL url = getClass().getResource("valid_updatedir_inplace.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_updatedir_inplaceByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_updatedir_inplace.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_updatedir_inplaceByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_updatedir_inplace.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_sum_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_sum-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_sum_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_sum-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_sum_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_sum-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines2_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines2_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines2_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines14_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines14-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines14_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines14-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines14_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines14-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_env_wf3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_env-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_env_wf3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_env-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_env_wf3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_env-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines6_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines6-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines6_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines6-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines6_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines6-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_vf_concatByString() throws Exception { + java.net.URL url = getClass().getResource("valid_vf-concat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_vf_concatByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_vf-concat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_vf_concatByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_vf-concat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_listing_deep1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_deep1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_listing_deep1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_deep1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_listing_deep1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_deep1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_js_expr_req_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_js-expr-req-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_js_expr_req_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_js-expr-req-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_js_expr_req_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_js-expr-req-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_valuefrom_wf5ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf5ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf5ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_recursive_input_directoryByString() throws Exception { + java.net.URL url = getClass().getResource("valid_recursive-input-directory.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_recursive_input_directoryByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_recursive-input-directory.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_recursive_input_directoryByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_recursive-input-directory.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines9_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines9-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines9_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines9-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines9_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines9-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_formattest3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_formattest3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_formattest3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_formattest3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_formattest3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_formattest3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat3_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat3_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat3_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_writable_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_writable-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_writable_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_writable-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_writable_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_writable-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_null_expression2_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_null-expression2-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_null_expression2_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_null-expression2-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_null_expression2_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_null-expression2-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_no_outputs_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_no-outputs-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_no_outputs_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_no-outputs-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_no_outputs_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_no-outputs-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines3_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines3_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines3_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_valuefrom_wf4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines11_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines11_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines11_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwdr_with_nested_dirsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwdr_with_nested_dirs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwdr_with_nested_dirsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwdr_with_nested_dirs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwdr_with_nested_dirsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwdr_with_nested_dirs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines1_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines1-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines1_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines1-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines1_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines1-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_echo_tool_defaultByString() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_echo_tool_defaultByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_echo_tool_defaultByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_glob_path_errorByString() throws Exception { + java.net.URL url = getClass().getResource("valid_glob-path-error.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_glob_path_errorByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_glob-path-error.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_glob_path_errorByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_glob-path-error.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_fail_unspecified_inputByString() throws Exception { + java.net.URL url = getClass().getResource("valid_fail-unspecified-input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_fail_unspecified_inputByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_fail-unspecified-input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_fail_unspecified_inputByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_fail-unspecified-input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_inline_jsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_inline-js.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_inline_jsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_inline-js.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_inline_jsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_inline-js.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines16_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines16-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines16_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines16-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines16_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines16-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wc_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wc-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wc_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wc-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wc_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wc-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_steplevel_resreqByString() throws Exception { + java.net.URL url = getClass().getResource("valid_steplevel-resreq.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_steplevel_resreqByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_steplevel-resreq.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_steplevel_resreqByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_steplevel-resreq.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_io_int_default_tool_and_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-default-tool-and-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_io_int_default_tool_and_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-default-tool-and-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_io_int_default_tool_and_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-default-tool-and-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_nested_arrayByString() throws Exception { + java.net.URL url = getClass().getResource("valid_nested-array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_nested_arrayByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_nested-array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_nested_arrayByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_nested-array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_no_inputs_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_no-inputs-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_no_inputs_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_no-inputs-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_no_inputs_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_no-inputs-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stderr_shortcutByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stderr-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stderr_shortcutByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stderr-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stderr_shortcutByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stderr-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_in_secondaryFiles_missing_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-missing-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_in_secondaryFiles_missing_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-missing-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_in_secondaryFiles_missing_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-missing-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_networkaccess2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_networkaccess2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_networkaccess2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_networkaccess2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_networkaccess2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_networkaccess2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_mkdirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_mkdir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_mkdirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_mkdir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_mkdirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_mkdir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_valueFrom_constantByString() throws Exception { + java.net.URL url = getClass().getResource("valid_valueFrom-constant.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_valueFrom_constantByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_valueFrom-constant.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_valueFrom_constantByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_valueFrom-constant.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_test_cwl_out2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_test-cwl-out2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_test_cwl_out2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_test-cwl-out2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_test_cwl_out2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_test-cwl-out2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_metadataByString() throws Exception { + java.net.URL url = getClass().getResource("valid_metadata.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_metadataByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_metadata.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_metadataByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_metadata.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines9_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines9-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines9_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines9-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines9_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines9-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_io_any_wf_1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_io-any-wf-1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_io_any_wf_1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_io-any-wf-1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_io_any_wf_1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_io-any-wf-1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_io_file_default_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_io-file-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_io_file_default_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_io-file-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_io_file_default_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_io-file-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_empty_array_inputByString() throws Exception { + java.net.URL url = getClass().getResource("valid_empty-array-input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_empty_array_inputByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_empty-array-input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_empty_array_inputByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_empty-array-input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_inpdir_update_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_inpdir_update_wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_inpdir_update_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_inpdir_update_wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_inpdir_update_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_inpdir_update_wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wc3_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wc3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wc3_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wc3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wc3_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wc3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dir7ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dir7.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dir7ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dir7.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dir7ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dir7.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_binding_testByString() throws Exception { + java.net.URL url = getClass().getResource("valid_binding-test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_binding_testByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_binding-test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_binding_testByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_binding-test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines5_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines5-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines5_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines5-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines5_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines5-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_networkaccessByString() throws Exception { + java.net.URL url = getClass().getResource("valid_networkaccess.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_networkaccessByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_networkaccess.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_networkaccessByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_networkaccess.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat3_tool_dockerByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool-docker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat3_tool_dockerByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool-docker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat3_tool_dockerByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool-docker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_optional_outputByString() throws Exception { + java.net.URL url = getClass().getResource("valid_optional-output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_optional_outputByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_optional-output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_optional_outputByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_optional-output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines8_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines8-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines8_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines8-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines8_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines8-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_valuefrom_wf2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_touchByString() throws Exception { + java.net.URL url = getClass().getResource("valid_touch.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_touchByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_touch.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_touchByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_touch.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat1_testcliByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat1-testcli.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat1_testcliByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat1-testcli.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat1_testcliByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat1-testcli.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dir2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dir2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dir2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dir2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dir2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dir2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_io_any_1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_io-any-1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_io_any_1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_io-any-1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_io_any_1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_io-any-1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_revtoolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_revtool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_revtoolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_revtool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_revtoolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_revtool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_bool_empty_inputbindingByString() throws Exception { + java.net.URL url = getClass().getResource("valid_bool-empty-inputbinding.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_bool_empty_inputbindingByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_bool-empty-inputbinding.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_bool_empty_inputbindingByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_bool-empty-inputbinding.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_env_tool1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_env_tool1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_env_tool1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_timelimit3_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_timelimit3_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_timelimit3_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_anon_enum_inside_arrayByString() throws Exception { + java.net.URL url = getClass().getResource("valid_anon_enum_inside_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_anon_enum_inside_arrayByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_anon_enum_inside_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_anon_enum_inside_arrayByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_anon_enum_inside_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_no_outputs_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_no-outputs-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_no_outputs_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_no-outputs-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_no_outputs_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_no-outputs-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_echo_wf_defaultByString() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-wf-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_echo_wf_defaultByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-wf-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_echo_wf_defaultByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-wf-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_io_int_optional_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-optional-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_io_int_optional_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-optional-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_io_int_optional_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-optional-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat3_tool_shortcutByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat3_tool_shortcutByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat3_tool_shortcutByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines11_extra_step_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines11_extra_step_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines11_extra_step_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_sum_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_sum-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_sum_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_sum-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_sum_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_sum-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stage_file_arrayByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stage_file_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stage_file_arrayByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stage_file_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stage_file_arrayByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stage_file_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_initialworkdir_glob_fullpathByString() throws Exception { + java.net.URL url = getClass().getResource("valid_initialworkdir-glob-fullpath.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_initialworkdir_glob_fullpathByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_initialworkdir-glob-fullpath.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_initialworkdir_glob_fullpathByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_initialworkdir-glob-fullpath.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines11_null_step_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines11_null_step_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines11_null_step_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_echo_position_exprByString() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-position-expr.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_echo_position_exprByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-position-expr.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_echo_position_exprByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-position-expr.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_wf4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_wf4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_wf4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_env_wf2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_env-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_env_wf2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_env-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_env_wf2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_env-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_no_inputs_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_no-inputs-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_no_inputs_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_no-inputs-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_no_inputs_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_no-inputs-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_wf2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_wf2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_wf2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_glob_expr_listByString() throws Exception { + java.net.URL url = getClass().getResource("valid_glob-expr-list.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_glob_expr_listByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_glob-expr-list.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_glob_expr_listByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_glob-expr-list.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_runtime_paths_distinctByString() throws Exception { + java.net.URL url = getClass().getResource("valid_runtime-paths-distinct.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_runtime_paths_distinctByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_runtime-paths-distinct.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_runtime_paths_distinctByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_runtime-paths-distinct.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_valuefrom_wf1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_valuefrom_inputs_wf1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-inputs-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_inputs_wf1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-inputs-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_inputs_wf1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-inputs-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines10_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines10-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines10_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines10-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines10_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines10-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_glob_directoryByString() throws Exception { + java.net.URL url = getClass().getResource("valid_glob_directory.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_glob_directoryByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_glob_directory.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_glob_directoryByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_glob_directory.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_import_schema_defByString() throws Exception { + java.net.URL url = getClass().getResource("valid_import_schema-def.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_import_schema_defByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_import_schema-def.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_import_schema_defByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_import_schema-def.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_docker_run_cmdByString() throws Exception { + java.net.URL url = getClass().getResource("valid_docker-run-cmd.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_docker_run_cmdByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_docker-run-cmd.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_docker_run_cmdByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_docker-run-cmd.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_glob_testByString() throws Exception { + java.net.URL url = getClass().getResource("valid_glob_test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_glob_testByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_glob_test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_glob_testByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_glob_test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_basename_fields_testByString() throws Exception { + java.net.URL url = getClass().getResource("valid_basename-fields-test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_basename_fields_testByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_basename-fields-test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_basename_fields_testByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_basename-fields-test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_echo_tool_packed2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool-packed2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_echo_tool_packed2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool-packed2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_echo_tool_packed2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool-packed2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wf_loadContentsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wf_loadContentsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wf_loadContentsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_in_secondaryFilesByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_in_secondaryFilesByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_in_secondaryFilesByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_writable_dir_dockerByString() throws Exception { + java.net.URL url = getClass().getResource("valid_writable-dir-docker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_writable_dir_dockerByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_writable-dir-docker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_writable_dir_dockerByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_writable-dir-docker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_env_tool2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_env_tool2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_env_tool2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_searchByString() throws Exception { + java.net.URL url = getClass().getResource("valid_search.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_searchByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_search.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_searchByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_search.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_echo_tool_packedByString() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool-packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_echo_tool_packedByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool-packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_echo_tool_packedByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool-packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines11_null_step_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines11_null_step_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines11_null_step_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines1_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines1-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines1_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines1-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines1_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines1-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stage_arrayByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stage-array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stage_arrayByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stage-array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stage_arrayByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stage-array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_envvar3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_envvar3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_envvar3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_envvar3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_envvar3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_envvar3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_renameByString() throws Exception { + java.net.URL url = getClass().getResource("valid_rename.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_renameByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_rename.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_renameByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_rename.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_env_wf1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_env-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_env_wf1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_env-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_env_wf1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_env-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines12_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines12-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines12_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines12-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines12_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines12-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_io_union_input_default_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_io-union-input-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_io_union_input_default_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_io-union-input-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_io_union_input_default_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_io-union-input-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines13_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines13-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines13_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines13-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines13_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines13-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_listing_shallow1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_shallow1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_listing_shallow1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_shallow1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_listing_shallow1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_shallow1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_valuefrom_wf6ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf6.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf6ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf6.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf6ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf6.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dynresreqByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dynresreqByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dynresreqByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat5_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat5-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat5_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat5-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat5_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat5-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_timelimitByString() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_timelimitByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_timelimitByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_listing_none1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_none1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_listing_none1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_none1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_listing_none1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_none1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_listing_none2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_none2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_listing_none2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_none2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_listing_none2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_none2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines11_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines11_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines11_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stagefileByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stagefile.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stagefileByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stagefile.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stagefileByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stagefile.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stage_file_array_basename_and_entrynameByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stage_file_array_basename_and_entryname.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stage_file_array_basename_and_entrynameByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stage_file_array_basename_and_entryname.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stage_file_array_basename_and_entrynameByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stage_file_array_basename_and_entryname.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_shellchar2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_shellchar2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_shellchar2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_shellchar2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_shellchar2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_shellchar2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_out_secondaryFilesByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-out-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_out_secondaryFilesByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-out-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_out_secondaryFilesByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-out-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_inp_update_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_inp_update_wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_inp_update_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_inp_update_wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_inp_update_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_inp_update_wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_bwa_mem_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_bwa-mem-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_bwa_mem_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_bwa-mem-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_bwa_mem_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_bwa-mem-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat3_tool_mediumcutByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool-mediumcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat3_tool_mediumcutByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool-mediumcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat3_tool_mediumcutByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool-mediumcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_env_tool3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_env_tool3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_env_tool3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_timelimit2_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_timelimit2_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_timelimit2_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_revsort_packedByString() throws Exception { + java.net.URL url = getClass().getResource("valid_revsort-packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_revsort_packedByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_revsort-packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_revsort_packedByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_revsort-packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_null_definedByString() throws Exception { + java.net.URL url = getClass().getResource("valid_null-defined.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_null_definedByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_null-defined.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_null_definedByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_null-defined.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_listing_none3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_none3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_listing_none3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_none3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_listing_none3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_none3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_wf3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_wf3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_wf3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_io_int_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_io_int_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_io_int_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_file_literal_exByString() throws Exception { + java.net.URL url = getClass().getResource("valid_file-literal-ex.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_file_literal_exByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_file-literal-ex.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_file_literal_exByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_file-literal-ex.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_revsortByString() throws Exception { + java.net.URL url = getClass().getResource("valid_revsort.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_revsortByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_revsort.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_revsortByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_revsort.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_tmap_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_tmap-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_tmap_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_tmap-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_tmap_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_tmap-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_env_tool4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_env_tool4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_env_tool4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stage_array_dirsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stage-array-dirs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stage_array_dirsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stage-array-dirs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stage_array_dirsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stage-array-dirs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_formattestByString() throws Exception { + java.net.URL url = getClass().getResource("valid_formattest.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_formattestByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_formattest.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_formattestByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_formattest.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dynresreq_workflow_stepdefaultByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow-stepdefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dynresreq_workflow_stepdefaultByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow-stepdefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dynresreq_workflow_stepdefaultByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow-stepdefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_size_expression_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_size-expression-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_size_expression_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_size-expression-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_size_expression_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_size-expression-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_out_formatByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-out-format.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_out_formatByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-out-format.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_out_formatByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-out-format.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wc4_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wc4-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wc4_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wc4-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wc4_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wc4-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_step_valuefrom5_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom5-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_step_valuefrom5_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom5-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_step_valuefrom5_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom5-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_echo_file_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-file-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_echo_file_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-file-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_echo_file_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-file-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_step_valuefrom_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_step_valuefrom_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_step_valuefrom_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_output_arrays_file_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_output-arrays-file-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_output_arrays_file_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_output-arrays-file-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_output_arrays_file_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_output-arrays-file-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat_from_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat_from_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat_from_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_fail_unconnectedByString() throws Exception { + java.net.URL url = getClass().getResource("valid_fail-unconnected.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_fail_unconnectedByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_fail-unconnected.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_fail_unconnectedByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_fail-unconnected.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_symlink_illegalByString() throws Exception { + java.net.URL url = getClass().getResource("valid_symlink-illegal.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_symlink_illegalByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_symlink-illegal.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_symlink_illegalByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_symlink-illegal.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_timelimit4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_timelimit4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_timelimit4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_echo_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_echo_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_echo_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_step_valuefrom2_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_step_valuefrom2_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_step_valuefrom2_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_valueFrom_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valueFrom-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_valueFrom_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valueFrom-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_valueFrom_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valueFrom-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_initialworkdirrequirement_docker_outByString() throws Exception { + java.net.URL url = getClass().getResource("valid_initialworkdirrequirement-docker-out.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_initialworkdirrequirement_docker_outByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_initialworkdirrequirement-docker-out.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_initialworkdirrequirement_docker_outByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_initialworkdirrequirement-docker-out.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_sd_secondaryFilesByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-sd-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_sd_secondaryFilesByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-sd-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_sd_secondaryFilesByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-sd-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_formattest2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_formattest2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_formattest2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_formattest2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_formattest2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_formattest2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_listing_shallow2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_shallow2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_listing_shallow2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_shallow2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_listing_shallow2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_shallow2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_in_secondaryFiles_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_in_secondaryFiles_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_in_secondaryFiles_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_shellcharByString() throws Exception { + java.net.URL url = getClass().getResource("valid_shellchar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_shellcharByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_shellchar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_shellcharByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_shellchar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_step_valuefrom4_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom4-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_step_valuefrom4_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom4-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_step_valuefrom4_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom4-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_template_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_template-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_template_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_template-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_template_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_template-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_schemadef_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_schemadef-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_schemadef_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_schemadef-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_schemadef_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_schemadef-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dynresreq_workflowByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dynresreq_workflowByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dynresreq_workflowByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dir3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dir3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dir3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dir3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dir3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dir3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dynresreq_workflow_inputdefaultByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow-inputdefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dynresreq_workflow_inputdefaultByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow-inputdefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dynresreq_workflow_inputdefaultByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow-inputdefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_null_expression1_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_null-expression1-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_null_expression1_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_null-expression1-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_null_expression1_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_null-expression1-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_envvar2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_envvar2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_envvar2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_envvar2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_envvar2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_envvar2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_conflict_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_conflict-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_conflict_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_conflict-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_conflict_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_conflict-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dynresreq_workflow_tooldefaultByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow-tooldefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dynresreq_workflow_tooldefaultByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow-tooldefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dynresreq_workflow_tooldefaultByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow-tooldefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_test_cwl_outByString() throws Exception { + java.net.URL url = getClass().getResource("valid_test-cwl-out.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_test_cwl_outByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_test-cwl-out.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_test_cwl_outByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_test-cwl-out.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dynresreq_defaultByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dynresreq_defaultByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dynresreq_defaultByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_in_formatByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-format.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_in_formatByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-format.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_in_formatByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-format.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_exitcodeByString() throws Exception { + java.net.URL url = getClass().getResource("valid_exitcode.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_exitcodeByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_exitcode.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_exitcodeByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_exitcode.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_sorttoolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_sorttool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_sorttoolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_sorttool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_sorttoolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_sorttool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_import_schema_def_packedByString() throws Exception { + java.net.URL url = getClass().getResource("valid_import_schema-def_packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_import_schema_def_packedByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_import_schema-def_packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_import_schema_def_packedByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_import_schema-def_packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines4_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines4-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines4_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines4-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines4_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines4-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dir6ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dir6.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dir6ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dir6.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dir6ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dir6.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dynresreq_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dynresreq_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dynresreq_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_io_int_default_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_io_int_default_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_io_int_default_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines18_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines18-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines18_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines18-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines18_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines18-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dir4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dir4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dir4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dir4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dir4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dir4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat3_nodockerByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-nodocker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat3_nodockerByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-nodocker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat3_nodockerByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-nodocker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_params2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_params2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_params2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_params2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_params2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_params2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_envvarByString() throws Exception { + java.net.URL url = getClass().getResource("valid_envvar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_envvarByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_envvar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_envvarByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_envvar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines15_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines15-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines15_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines15-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines15_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines15-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines8_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines8-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines8_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines8-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines8_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines8-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_default_pathByString() throws Exception { + java.net.URL url = getClass().getResource("valid_default_path.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_default_pathByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_default_path.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_default_pathByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_default_path.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_io_file_or_filesByString() throws Exception { + java.net.URL url = getClass().getResource("valid_io-file-or-files.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_io_file_or_filesByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_io-file-or-files.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_io_file_or_filesByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_io-file-or-files.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_paramsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_params.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_paramsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_params.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_paramsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_params.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_initialwork_pathByString() throws Exception { + java.net.URL url = getClass().getResource("valid_initialwork-path.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_initialwork_pathByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_initialwork-path.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_initialwork_pathByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_initialwork-path.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_parseInt_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_parseInt-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_parseInt_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_parseInt-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_parseInt_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_parseInt-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_step_valuefrom3_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_step_valuefrom3_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_step_valuefrom3_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_namerootByString() throws Exception { + java.net.URL url = getClass().getResource("valid_nameroot.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_namerootByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_nameroot.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_namerootByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_nameroot.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_exit_successByString() throws Exception { + java.net.URL url = getClass().getResource("valid_exit-success.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_exit_successByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_exit-success.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_exit_successByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_exit-success.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stage_file_array_basenameByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stage_file_array_basename.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stage_file_array_basenameByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stage_file_array_basename.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stage_file_array_basenameByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stage_file_array_basename.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_wf1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_wf1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_wf1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat4_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat4-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat4_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat4-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat4_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat4-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_null_expression3_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_null-expression3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_null_expression3_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_null-expression3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_null_expression3_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_null-expression3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_timelimit5ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_timelimit5ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_timelimit5ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_optional_numerical_output_0ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_optional-numerical-output-0.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_optional_numerical_output_0ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_optional-numerical-output-0.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_optional_numerical_output_0ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_optional-numerical-output-0.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_updateval_inplaceByString() throws Exception { + java.net.URL url = getClass().getResource("valid_updateval_inplace.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_updateval_inplaceByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_updateval_inplace.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_updateval_inplaceByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_updateval_inplace.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines11_extra_step_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines11_extra_step_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines11_extra_step_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dir5ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dir5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dir5ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dir5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dir5ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dir5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_listing_deep2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_deep2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_listing_deep2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_deep2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_listing_deep2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_deep2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/PackedWorkflowClassTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/PackedWorkflowClassTest.java new file mode 100644 index 00000000..0fe3582f --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/PackedWorkflowClassTest.java @@ -0,0 +1,41 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.net.URISyntaxException; +import java.nio.file.Paths; +import java.util.List; +import org.junit.Assert; +import org.junit.Test; +import org.commonwl.cwlsdk.cwl1_1.Process; +import org.commonwl.cwlsdk.cwl1_1.Workflow; +import org.commonwl.cwlsdk.cwl1_1.WorkflowStep; +import org.commonwl.cwlsdk.cwl1_1.WorkflowStepInput; + +public class PackedWorkflowClassTest { + List doc; + + @SuppressWarnings("unchecked") + public PackedWorkflowClassTest() throws URISyntaxException { + super(); + this.doc = + (List) + RootLoader.loadDocument( + Paths.get(getClass().getResource("valid_scatter-wf4.cwl").toURI())); + } + + @Test + public void className() { + Workflow workflow = (Workflow) doc.get(1); + Assert.assertEquals("WorkflowImpl", workflow.getClass().getSimpleName()); + } + + @Test + public void workflowStepInputSources() { + Workflow workflow = (Workflow) doc.get(1); + String workflow_id = workflow.getId().get(); + WorkflowStep step1 = (WorkflowStep) workflow.getSteps().get(0); + List inputs = step1.getIn(); + WorkflowStepInput step1_input1 = (WorkflowStepInput) inputs.get(0); + Assert.assertEquals(workflow_id + "/step1/echo_in1", step1_input1.getId().get()); + Assert.assertEquals(workflow_id + "/inp1", step1_input1.getSource()); + } +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/RequirementsClassTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/RequirementsClassTest.java new file mode 100644 index 00000000..22db1541 --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/RequirementsClassTest.java @@ -0,0 +1,53 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.net.URISyntaxException; +import org.junit.Assert; +import org.junit.Test; +import org.commonwl.cwlsdk.cwl1_1.CWLVersion; +import org.commonwl.cwlsdk.cwl1_1.InlineJavascriptRequirement; +import org.commonwl.cwlsdk.cwl1_1.Process; + +public class RequirementsClassTest { + Process doc; + + public RequirementsClassTest() throws URISyntaxException { + super(); + this.doc = + (Process) + RootLoader.loadDocument( + java.nio.file.Paths.get( + getClass().getResource("valid_writable-dir-docker.cwl").toURI())); + } + + @Test + public void className() { + Assert.assertEquals("CommandLineToolImpl", doc.getClass().getSimpleName()); + } + + @Test + public void version() { + java.util.Optional version = doc.getCwlVersion(); + Assert.assertTrue(version.isPresent()); + Assert.assertEquals(CWLVersion.V1_1, version.get()); + } + + @Test + public void hints() { + java.util.Optional> hints = doc.getHints(); + Assert.assertTrue(hints.isPresent()); + java.util.List hintList = hints.get(); + Assert.assertEquals(1, hintList.size()); + } + + @Test + public void reqs() { + java.util.Optional> reqs = doc.getRequirements(); + Assert.assertTrue(reqs.isPresent()); + java.util.List reqList = reqs.get(); + Assert.assertEquals(2, reqList.size()); + InlineJavascriptRequirement reqOne = (InlineJavascriptRequirement) reqList.get(0); + Assert.assertEquals("InlineJavascriptRequirementImpl", reqOne.getClass().getSimpleName()); + Assert.assertNotEquals( + "InlineJavascriptRequirementImpl", reqList.get(1).getClass().getSimpleName()); + } +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/SchemaDefTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/SchemaDefTest.java new file mode 100644 index 00000000..ad953da6 --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/SchemaDefTest.java @@ -0,0 +1,42 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.util.List; +import org.junit.Assert; +import org.commonwl.cwlsdk.cwl1_1.InputRecordSchema; +import org.commonwl.cwlsdk.cwl1_1.Process; +import org.commonwl.cwlsdk.cwl1_1.SchemaDefRequirement; + +public class SchemaDefTest { + + @org.junit.Test + public void testvalid_anon_enum_inside_array_inside_schemadef() throws Exception { + java.net.URL url = getClass().getResource("valid_anon_enum_inside_array_inside_schemadef.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + Process doc = (Process) RootLoader.loadDocument(resPath); + java.util.Optional> reqs = doc.getRequirements(); + Assert.assertTrue(reqs.isPresent()); + java.util.List reqList = reqs.get(); + Assert.assertEquals(reqList.size(), 1); + SchemaDefRequirement schemaReq = (SchemaDefRequirement) reqList.get(0); + List schemaTypes = schemaReq.getTypes(); + for (Object schemaType : schemaTypes) { + Assert.assertTrue(schemaType instanceof InputRecordSchema); + } + } + + @org.junit.Test + public void testvalid_record_sd_secondaryFiles() throws Exception { + java.net.URL url = getClass().getResource("valid_record-sd-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + Process doc = (Process) RootLoader.loadDocument(resPath); + java.util.Optional> reqs = doc.getRequirements(); + Assert.assertTrue(reqs.isPresent()); + java.util.List reqList = reqs.get(); + Assert.assertEquals(reqList.size(), 1); + SchemaDefRequirement schemaReq = (SchemaDefRequirement) reqList.get(0); + List schemaTypes = schemaReq.getTypes(); + for (Object schemaType : schemaTypes) { + Assert.assertTrue(schemaType instanceof InputRecordSchema); + } + } +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/SecondaryFilesTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/SecondaryFilesTest.java new file mode 100644 index 00000000..c91c7601 --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/SecondaryFilesTest.java @@ -0,0 +1,47 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.net.URISyntaxException; +import java.nio.file.Paths; +import java.util.List; +import org.junit.Assert; +import org.junit.Test; +import org.commonwl.cwlsdk.cwl1_1.Process; +import org.commonwl.cwlsdk.cwl1_1.SecondaryFileSchema; +import org.commonwl.cwlsdk.cwl1_1.Workflow; +import org.commonwl.cwlsdk.cwl1_1.WorkflowInputParameter; + +public class SecondaryFilesTest { + List doc; + + @SuppressWarnings("unchecked") + public SecondaryFilesTest() throws URISyntaxException { + super(); + this.doc = + (List) + RootLoader.loadDocument(Paths.get(getClass().getResource("525.cwl").toURI())); + } + + @SuppressWarnings("unchecked") + @Test + public void workflowInputSecFiles() { + Workflow workflow = (Workflow) doc.get(0); + String workflow_id = workflow.getId().get(); + List inputs = workflow.getInputs(); + WorkflowInputParameter wf_file_input = (WorkflowInputParameter) inputs.get(1); + Assert.assertEquals(workflow_id + "/wf_file_input", wf_file_input.getId().get()); + List sec_files_l1 = + (List) wf_file_input.getSecondaryFiles(); + Assert.assertEquals(1, sec_files_l1.size()); + SecondaryFileSchema sec_files1 = sec_files_l1.get(0); + Assert.assertEquals(".also", sec_files1.getPattern()); + Assert.assertEquals(true, sec_files1.getRequired()); + WorkflowInputParameter wf_file_input_array = (WorkflowInputParameter) inputs.get(2); + Assert.assertEquals(workflow_id + "/wf_file_input_array", wf_file_input_array.getId().get()); + List sec_files_l2 = + (List) wf_file_input_array.getSecondaryFiles(); + Assert.assertEquals(1, sec_files_l2.size()); + SecondaryFileSchema sec_files2 = sec_files_l2.get(0); + Assert.assertEquals(".also", sec_files2.getPattern()); + Assert.assertEquals(true, sec_files2.getRequired()); + } +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/ShortnameTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/ShortnameTest.java new file mode 100644 index 00000000..7494ceaf --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/ShortnameTest.java @@ -0,0 +1,24 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import org.junit.Assert; +import org.junit.Test; + +public class ShortnameTest { + @Test + public void testShortname() { + Assert.assertEquals(Uris.shortname( + "file:/Users/jdidion/projects/cwlScala/target/test-classes/CommandLineTools/conformance/#anon_enum_inside_array_inside_schemadef.cwl/first/user_type_2/species/homo_sapiens"), + "homo_sapiens"); + Assert.assertEquals(Uris.shortname( + "file:///home/michael/cwljava/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_anon_enum_inside_array_inside_schemadef.cwl#vcf2maf_params/ncbi_build/GRCh37"), + "GRCh37"); + // Below are from https://w3id.org/cwl/v1.2/SchemaSalad.html#Short_names + Assert.assertEquals(Uris.shortname("http://example.com/foo"), "foo"); + Assert.assertEquals(Uris.shortname("http://example.com/#bar"), "bar"); + Assert.assertEquals(Uris.shortname("http://example.com/foo/bar"), "bar"); + Assert.assertEquals(Uris.shortname("http://example.com/foo#bar"), "bar"); + Assert.assertEquals(Uris.shortname("http://example.com/#foo/bar"), "bar"); + Assert.assertEquals(Uris.shortname("http://example.com/foo#bar/baz"), "baz"); + } + +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/WorkflowClassTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/WorkflowClassTest.java new file mode 100644 index 00000000..9116f3d3 --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/WorkflowClassTest.java @@ -0,0 +1,32 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.net.URISyntaxException; +import org.junit.Assert; +import org.junit.Test; +import org.commonwl.cwlsdk.cwl1_1.CWLVersion; +import org.commonwl.cwlsdk.cwl1_1.Process; + +public class WorkflowClassTest { + Process doc; + + public WorkflowClassTest() throws URISyntaxException { + super(); + this.doc = + (Process) + RootLoader.loadDocument( + java.nio.file.Paths.get( + getClass().getResource("valid_count-lines1-wf.cwl").toURI())); + } + + @Test + public void className() { + Assert.assertEquals("WorkflowImpl", doc.getClass().getSimpleName()); + } + + @Test + public void version() { + java.util.Optional version = doc.getCwlVersion(); + Assert.assertTrue(version.isPresent()); + Assert.assertEquals(CWLVersion.V1_1, version.get()); + } +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/YamlUtilsTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/YamlUtilsTest.java new file mode 100644 index 00000000..8d865186 --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_1/utils/YamlUtilsTest.java @@ -0,0 +1,15 @@ +package org.commonwl.cwlsdk.cwl1_1.utils; + +import java.util.Map; +import org.junit.Assert; +import org.junit.Test; + +public class YamlUtilsTest { + @Test + public void testSimpleLoad() { + final String yamlStr = "moo: cow\nbark: dog\n"; + final Map loaded = YamlUtils.mapFromString(yamlStr); + Assert.assertEquals(loaded.get("moo"), "cow"); + Assert.assertEquals(loaded.get("bark"), "dog"); + } +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/AnonymousRecordTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/AnonymousRecordTest.java new file mode 100644 index 00000000..ca415c9e --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/AnonymousRecordTest.java @@ -0,0 +1,11 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +public class AnonymousRecordTest { + + @org.junit.Test + public void test_record_with_anonymous_type_record() throws Exception { + java.net.URL url = getClass().getResource("record-in-format.cwl.json"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/DefaultFetcherTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/DefaultFetcherTest.java new file mode 100644 index 00000000..3dce32c7 --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/DefaultFetcherTest.java @@ -0,0 +1,37 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import org.junit.Assert; +import org.junit.Test; + +public class DefaultFetcherTest { + @Test + public void testUnderscoreJoin() { + final DefaultFetcher fetcher = new DefaultFetcher(); + Assert.assertEquals(fetcher.urlJoin("http://googl.com/", "_:/moo"), "_:/moo"); + } + + @Test + public void testUnixJoin() { + final DefaultFetcher fetcher = new DefaultFetcher(); + String url; + + url = fetcher.urlJoin("file:///home/fred/foo.cwl", "soup.cwl"); + Assert.assertEquals(url, "file:///home/fred/soup.cwl"); + + url = fetcher.urlJoin("file:///home/fred/foo.cwl", "../alice/soup.cwl"); + Assert.assertEquals(url, "file:///home/alice/soup.cwl"); + // relative from root + url = fetcher.urlJoin("file:///home/fred/foo.cwl", "/baz/soup.cwl"); + Assert.assertEquals(url, "file:///baz/soup.cwl"); + + url = fetcher.urlJoin("file:///home/fred/foo.cwl", "http://example.com/bar/soup.cwl"); + Assert.assertEquals(url, "http://example.com/bar/soup.cwl"); + + url = fetcher.urlJoin("http://example.com/fred/foo.cwl", "soup.cwl"); + Assert.assertEquals(url, "http://example.com/fred/soup.cwl"); + + // Root-relative -- here relative to http host, not file:/// + url = fetcher.urlJoin("http://example.com/fred/foo.cwl", "/bar/soup.cwl"); + Assert.assertEquals(url, "http://example.com/bar/soup.cwl"); + } +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/ExamplesTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/ExamplesTest.java new file mode 100644 index 00000000..835b408f --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/ExamplesTest.java @@ -0,0 +1,14573 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +public class ExamplesTest { + + @org.junit.Test + public void testvalid_stage_unprovided_fileByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stage-unprovided-file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stage_unprovided_fileByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stage-unprovided-file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stage_unprovided_fileByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stage-unprovided-file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_step_valuefrom3_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_step-valuefrom3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_step_valuefrom3_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_step-valuefrom3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_step_valuefrom3_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_step-valuefrom3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_stage_file_array_basenameByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stage_file_array_basename.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_stage_file_array_basenameByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stage_file_array_basename.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_stage_file_array_basenameByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stage_file_array_basename.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_record_in_secondaryFiles_missing_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-in-secondaryFiles-missing-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_record_in_secondaryFiles_missing_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-in-secondaryFiles-missing-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_record_in_secondaryFiles_missing_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-in-secondaryFiles-missing-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_linkfileByString() throws Exception { + java.net.URL url = getClass().getResource("valid_linkfile.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_linkfileByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_linkfile.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_linkfileByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_linkfile.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwd_fileobjs1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-fileobjs1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwd_fileobjs1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-fileobjs1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwd_fileobjs1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-fileobjs1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wc_tool_shortcutByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wc-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wc_tool_shortcutByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wc-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wc_tool_shortcutByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wc-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_outputevalByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record_outputeval.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_outputevalByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record_outputeval.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_outputevalByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record_outputeval.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_timelimit3_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_timelimit3_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_timelimit3_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_namerootByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_nameroot.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_namerootByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_nameroot.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_namerootByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_nameroot.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cat3_tool_dockerByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat3-tool-docker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cat3_tool_dockerByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat3-tool-docker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cat3_tool_dockerByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat3-tool-docker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_output_arrays_int_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_output-arrays-int-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_output_arrays_int_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_output-arrays-int-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_output_arrays_int_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_output-arrays-int-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_013_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-013_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_013_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-013_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_013_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-013_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines15_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines15-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines15_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines15-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines15_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines15-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat3_from_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat3_from_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat3_from_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_pass_unconnectedByString() throws Exception { + java.net.URL url = getClass().getResource("valid_pass-unconnected.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_pass_unconnectedByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_pass-unconnected.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_pass_unconnectedByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_pass-unconnected.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cat5_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat5-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cat5_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat5-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cat5_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat5-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_catByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_catByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_catByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_env_wf3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_env_wf3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_env_wf3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_output_arrays_intByString() throws Exception { + java.net.URL url = getClass().getResource("valid_output-arrays-int.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_output_arrays_intByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_output-arrays-int.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_output_arrays_intByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_output-arrays-int.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_initialworkdirrequirement_docker_outByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_initialworkdirrequirement-docker-out.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_initialworkdirrequirement_docker_outByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_initialworkdirrequirement-docker-out.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_initialworkdirrequirement_docker_outByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_initialworkdirrequirement-docker-out.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_writable_dir_dockerByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_writable-dir-docker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_writable_dir_dockerByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_writable-dir-docker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_writable_dir_dockerByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_writable-dir-docker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines7_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines7-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines7_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines7-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines7_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines7-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_formattestByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_formattest.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_formattestByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_formattest.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_formattestByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_formattest.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwd_passthrough3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-passthrough3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwd_passthrough3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-passthrough3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwd_passthrough3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-passthrough3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_007ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-007.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_007ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-007.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_007ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-007.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_scatter_wf2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_scatter_wf2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_scatter_wf2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_symlink_legalByString() throws Exception { + java.net.URL url = getClass().getResource("valid_symlink-legal.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_symlink_legalByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_symlink-legal.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_symlink_legalByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_symlink-legal.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines1_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines1-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines1_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines1-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines1_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines1-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_any_type_compatByString() throws Exception { + java.net.URL url = getClass().getResource("valid_any-type-compat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_any_type_compatByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_any-type-compat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_any_type_compatByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_any-type-compat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_record_outputByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_record_outputByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_record_outputByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_docker_output_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_docker-output-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_docker_output_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_docker-output-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_docker_output_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_docker-output-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_011ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-011.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_011ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-011.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_011ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-011.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_output_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-output-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_output_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-output-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_output_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-output-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwdr_entryByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwdr-entry.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwdr_entryByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwdr-entry.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwdr_entryByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwdr-entry.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_valuefrom_wf3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_outputByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_outputByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_outputByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wf_loadContents2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wf_loadContents2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wf_loadContents2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_timelimit2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_timelimit2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_timelimit2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_anon_enum_inside_array_inside_schemadefByString() throws Exception { + java.net.URL url = getClass().getResource("valid_anon_enum_inside_array_inside_schemadef.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_anon_enum_inside_array_inside_schemadefByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_anon_enum_inside_array_inside_schemadef.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_anon_enum_inside_array_inside_schemadefByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_anon_enum_inside_array_inside_schemadef.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_bool_empty_inputbindingByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_bool-empty-inputbinding.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_bool_empty_inputbindingByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_bool-empty-inputbinding.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_bool_empty_inputbindingByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_bool-empty-inputbinding.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_imported_hintByString() throws Exception { + java.net.URL url = getClass().getResource("valid_imported-hint.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_imported_hintByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_imported-hint.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_imported_hintByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_imported-hint.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_timelimit3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_timelimit3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_timelimit3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wf_loadContents4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wf_loadContents4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wf_loadContents4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_with_defaultsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-with-defaults.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_with_defaultsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-with-defaults.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_with_defaultsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-with-defaults.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_wf_loadContentsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wf-loadContents.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_wf_loadContentsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wf-loadContents.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_wf_loadContentsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wf-loadContents.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_nested_arrayByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_nested-array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_nested_arrayByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_nested-array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_nested_arrayByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_nested-array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_record_in_formatByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-in-format.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_record_in_formatByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-in-format.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_record_in_formatByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-in-format.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_echo_tool_packed2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-tool-packed2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_echo_tool_packed2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-tool-packed2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_echo_tool_packed2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-tool-packed2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_docker_array_secondaryfilesByString() throws Exception { + java.net.URL url = getClass().getResource("valid_docker-array-secondaryfiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_docker_array_secondaryfilesByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_docker-array-secondaryfiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_docker_array_secondaryfilesByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_docker-array-secondaryfiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wc2_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wc2-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wc2_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wc2-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wc2_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wc2-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_synth_fileByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_synth-file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_synth_fileByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_synth-file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_synth_fileByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_synth-file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwd_passthrough1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-passthrough1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwd_passthrough1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-passthrough1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwd_passthrough1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-passthrough1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_output_arrays_int_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_output-arrays-int-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_output_arrays_int_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_output-arrays-int-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_output_arrays_int_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_output-arrays-int-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_revtoolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_revtool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_revtoolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_revtool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_revtoolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_revtool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stderrByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stderr.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stderrByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stderr.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stderrByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stderr.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_no_inputs_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_no-inputs-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_no_inputs_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_no-inputs-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_no_inputs_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_no-inputs-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines14_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines14-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines14_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines14-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines14_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines14-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_output_arrays_file_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_output-arrays-file-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_output_arrays_file_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_output-arrays-file-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_output_arrays_file_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_output-arrays-file-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wf_loadContents3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wf_loadContents3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wf_loadContents3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwd_fileobjs2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-fileobjs2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwd_fileobjs2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-fileobjs2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwd_fileobjs2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-fileobjs2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_wc3_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wc3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_wc3_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wc3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_wc3_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wc3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_echo_tool_packedByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-tool-packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_echo_tool_packedByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-tool-packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_echo_tool_packedByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-tool-packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_docker_run_cmdByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_docker-run-cmd.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_docker_run_cmdByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_docker-run-cmd.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_docker_run_cmdByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_docker-run-cmd.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_schemadef_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_schemadef-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_schemadef_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_schemadef-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_schemadef_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_schemadef-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stderr_mediumcutByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stderr-mediumcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stderr_mediumcutByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stderr-mediumcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stderr_mediumcutByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stderr-mediumcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_size_expression_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_size-expression-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_size_expression_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_size-expression-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_size_expression_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_size-expression-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_echo_wf_defaultByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-wf-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_echo_wf_defaultByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-wf-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_echo_wf_defaultByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-wf-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_io_int_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-int-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_io_int_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-int-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_io_int_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-int-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_any_type_compatByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_any-type-compat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_any_type_compatByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_any-type-compat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_any_type_compatByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_any-type-compat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwdr_entryByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwdr-entry.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwdr_entryByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwdr-entry.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwdr_entryByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwdr-entry.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines17_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines17-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines17_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines17-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines17_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines17-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_sum_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_sum-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_sum_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_sum-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_sum_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_sum-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_004_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-004_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_004_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-004_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_004_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-004_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_updatedir_inplaceByString() throws Exception { + java.net.URL url = getClass().getResource("valid_updatedir_inplace.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_updatedir_inplaceByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_updatedir_inplace.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_updatedir_inplaceByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_updatedir_inplace.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_null_definedByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_null-defined.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_null_definedByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_null-defined.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_null_definedByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_null-defined.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_writable_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_writable-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_writable_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_writable-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_writable_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_writable-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_formattest2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_formattest2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_formattest2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_formattest2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_formattest2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_formattest2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwd_passthrough2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwd_passthrough2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwd_passthrough2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_storage_floatByString() throws Exception { + java.net.URL url = getClass().getResource("valid_storage_float.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_storage_floatByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_storage_float.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_storage_floatByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_storage_float.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_wf5ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_wf5ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_wf5ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_sum_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_sum-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_sum_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_sum-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_sum_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_sum-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_wc_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wc-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_wc_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wc-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_wc_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wc-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines2_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines2_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines2_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_wf2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_wf2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_wf2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_listing_shallow1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_shallow1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_listing_shallow1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_shallow1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_listing_shallow1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_shallow1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wf_renByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wf_ren.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wf_renByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wf_ren.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wf_renByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wf_ren.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines14_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines14-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines14_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines14-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines14_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines14-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_binding_testByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_binding-test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_binding_testByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_binding-test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_binding_testByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_binding-test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_009_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-009_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_009_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-009_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_009_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-009_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_null_expression1_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_null-expression1-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_null_expression1_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_null-expression1-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_null_expression1_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_null-expression1-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_env_wf3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_env-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_env_wf3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_env-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_env_wf3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_env-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_bash_line_continuation_with_expressionByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_bash-line-continuation-with-expression.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_bash_line_continuation_with_expressionByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_bash-line-continuation-with-expression.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_bash_line_continuation_with_expressionByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_bash-line-continuation-with-expression.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines6_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines6-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines6_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines6-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines6_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines6-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_007ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-007.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_007ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-007.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_007ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-007.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_vf_concatByString() throws Exception { + java.net.URL url = getClass().getResource("valid_vf-concat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_vf_concatByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_vf-concat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_vf_concatByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_vf-concat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_recursive_input_directoryByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_recursive-input-directory.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_recursive_input_directoryByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_recursive-input-directory.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_recursive_input_directoryByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_recursive-input-directory.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_002ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-002.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_002ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-002.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_002ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-002.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_listing_deep1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_deep1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_listing_deep1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_deep1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_listing_deep1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_deep1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_js_quoteByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_js-quote.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_js_quoteByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_js-quote.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_js_quoteByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_js-quote.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_js_input_recordByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_js-input-record.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_js_input_recordByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_js-input-record.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_js_input_recordByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_js-input-record.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_valuefrom_wf5ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf5ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf5ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_recursive_input_directoryByString() throws Exception { + java.net.URL url = getClass().getResource("valid_recursive-input-directory.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_recursive_input_directoryByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_recursive-input-directory.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_recursive_input_directoryByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_recursive-input-directory.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines9_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines9-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines9_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines9-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines9_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines9-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_stderr_shortcutByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stderr-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_stderr_shortcutByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stderr-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_stderr_shortcutByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stderr-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_formattest3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_formattest3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_formattest3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_formattest3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_formattest3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_formattest3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_metadataByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_metadata.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_metadataByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_metadata.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_metadataByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_metadata.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_bash_dollar_quoteByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_bash-dollar-quote.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_bash_dollar_quoteByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_bash-dollar-quote.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_bash_dollar_quoteByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_bash-dollar-quote.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_vf_concatByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_vf-concat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_vf_concatByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_vf-concat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_vf_concatByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_vf-concat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_storage_floatByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_storage_float.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_storage_floatByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_storage_float.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_storage_floatByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_storage_float.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines11_extra_step_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines11-extra-step-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines11_extra_step_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines11-extra-step-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines11_extra_step_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines11-extra-step-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_002_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-002_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_002_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-002_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_002_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-002_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_synth_fileByString() throws Exception { + java.net.URL url = getClass().getResource("valid_synth-file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_synth_fileByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_synth-file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_synth_fileByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_synth-file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_env_tool1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-tool1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_env_tool1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-tool1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_env_tool1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-tool1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cat_tool_shortcutByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cat_tool_shortcutByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cat_tool_shortcutByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat3_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat3_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat3_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_operationByString() throws Exception { + java.net.URL url = getClass().getResource("valid_operation.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_operationByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_operation.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_operationByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_operation.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_listing_deep2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_deep2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_listing_deep2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_deep2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_listing_deep2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_deep2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwd_container_entryname1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-container-entryname1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwd_container_entryname1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-container-entryname1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwd_container_entryname1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-container-entryname1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_fooByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_foo.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_fooByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_foo.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_fooByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_foo.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_inline_jsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_inline-js.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_inline_jsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_inline-js.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_inline_jsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_inline-js.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cwloutput_nolimitByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cwloutput-nolimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cwloutput_nolimitByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cwloutput-nolimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cwloutput_nolimitByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cwloutput-nolimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_timelimit5ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_timelimit5ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_timelimit5ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_rename_inputsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_rename-inputs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_rename_inputsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_rename-inputs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_rename_inputsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_rename-inputs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_touchByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_touch.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_touchByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_touch.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_touchByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_touch.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_js_quoteByString() throws Exception { + java.net.URL url = getClass().getResource("valid_js-quote.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_js_quoteByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_js-quote.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_js_quoteByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_js-quote.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_scatter_wf1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_scatter_wf1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_scatter_wf1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_dynresreq_workflow_tooldefaultByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow-tooldefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_dynresreq_workflow_tooldefaultByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow-tooldefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_dynresreq_workflow_tooldefaultByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow-tooldefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_wc_tool_shortcutByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wc-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_wc_tool_shortcutByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wc-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_wc_tool_shortcutByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wc-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_writable_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_writable-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_writable_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_writable-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_writable_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_writable-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_colon_testByString() throws Exception { + java.net.URL url = getClass().getResource("valid_colon:test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_colon_testByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_colon:test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_colon_testByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_colon:test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_null_expression2_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_null-expression2-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_null_expression2_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_null-expression2-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_null_expression2_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_null-expression2-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_no_outputs_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_no-outputs-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_no_outputs_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_no-outputs-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_no_outputs_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_no-outputs-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines3_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines3_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines3_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_envvar3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_envvar3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_envvar3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_envvar3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_envvar3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_envvar3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_valuefrom_wf4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_dynresreqByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_dynresreqByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_dynresreqByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines11_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines11_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines11_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwdr_with_nested_dirsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwdr_with_nested_dirs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwdr_with_nested_dirsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwdr_with_nested_dirs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwdr_with_nested_dirsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwdr_with_nested_dirs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines1_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines1-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines1_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines1-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines1_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines1-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_timelimitByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_timelimitByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_timelimitByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_env_tool3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-tool3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_env_tool3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-tool3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_env_tool3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-tool3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_echo_tool_defaultByString() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_echo_tool_defaultByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_echo_tool_defaultByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines19_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines19-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines19_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines19-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines19_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines19-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_timelimit3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_timelimit3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_timelimit3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_003_1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-003.1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_003_1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-003.1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_003_1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-003.1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_no_outputs_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_no-outputs-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_no_outputs_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_no-outputs-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_no_outputs_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_no-outputs-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_004_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-004_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_004_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-004_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_004_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-004_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_glob_path_errorByString() throws Exception { + java.net.URL url = getClass().getResource("valid_glob-path-error.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_glob_path_errorByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_glob-path-error.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_glob_path_errorByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_glob-path-error.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_tmap_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_tmap-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_tmap_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_tmap-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_tmap_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_tmap-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cat4_from_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat4-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cat4_from_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat4-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cat4_from_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat4-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_envvarByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_envvar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_envvarByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_envvar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_envvarByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_envvar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_fail_unspecified_inputByString() throws Exception { + java.net.URL url = getClass().getResource("valid_fail-unspecified-input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_fail_unspecified_inputByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_fail-unspecified-input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_fail_unspecified_inputByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_fail-unspecified-input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines17_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines17-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines17_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines17-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines17_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines17-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_optional_outputByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_optional-output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_optional_outputByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_optional-output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_optional_outputByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_optional-output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_inline_jsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_inline-js.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_inline_jsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_inline-js.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_inline_jsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_inline-js.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines16_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines16-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines16_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines16-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines16_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines16-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines1_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines1-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines1_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines1-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines1_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines1-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_schemadef_types_with_import_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_schemadef_types_with_import-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_schemadef_types_with_import_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_schemadef_types_with_import-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_schemadef_types_with_import_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_schemadef_types_with_import-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wc_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wc-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wc_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wc-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wc_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wc-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwd_jsondump2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwd_jsondump2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwd_jsondump2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_steplevel_resreqByString() throws Exception { + java.net.URL url = getClass().getResource("valid_steplevel-resreq.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_steplevel_resreqByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_steplevel-resreq.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_steplevel_resreqByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_steplevel-resreq.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwd_passthrough4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwd_passthrough4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwd_passthrough4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwd_jsondump3_nlByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-jsondump3-nl.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwd_jsondump3_nlByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-jsondump3-nl.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwd_jsondump3_nlByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-jsondump3-nl.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_io_int_default_tool_and_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-default-tool-and-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_io_int_default_tool_and_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-default-tool-and-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_io_int_default_tool_and_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-default-tool-and-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_nested_arrayByString() throws Exception { + java.net.URL url = getClass().getResource("valid_nested-array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_nested_arrayByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_nested-array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_nested_arrayByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_nested-array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_no_inputs_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_no-inputs-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_no_inputs_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_no-inputs-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_no_inputs_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_no-inputs-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwdr_with_nested_dirsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwdr_with_nested_dirs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwdr_with_nested_dirsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwdr_with_nested_dirs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwdr_with_nested_dirsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwdr_with_nested_dirs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stderr_shortcutByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stderr-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stderr_shortcutByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stderr-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stderr_shortcutByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stderr-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_007_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-007_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_007_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-007_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_007_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-007_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_record_output_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-output-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_record_output_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-output-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_record_output_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-output-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_in_secondaryFiles_missing_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-missing-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_in_secondaryFiles_missing_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-missing-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_in_secondaryFiles_missing_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-missing-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_009ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-009.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_009ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-009.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_009ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-009.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_011_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-011_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_011_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-011_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_011_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-011_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_networkaccess2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_networkaccess2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_networkaccess2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_networkaccess2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_networkaccess2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_networkaccess2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_timelimit2_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_timelimit2_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_timelimit2_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_bash_line_continuation_with_expressionByString() throws Exception { + java.net.URL url = getClass().getResource("valid_bash-line-continuation-with-expression.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_bash_line_continuation_with_expressionByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_bash-line-continuation-with-expression.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_bash_line_continuation_with_expressionByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_bash-line-continuation-with-expression.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_mkdirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_mkdir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_mkdirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_mkdir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_mkdirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_mkdir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_valueFrom_constantByString() throws Exception { + java.net.URL url = getClass().getResource("valid_valueFrom-constant.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_valueFrom_constantByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_valueFrom-constant.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_valueFrom_constantByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_valueFrom-constant.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_schemadef_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_schemadef-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_schemadef_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_schemadef-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_schemadef_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_schemadef-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_test_cwl_out2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_test-cwl-out2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_test_cwl_out2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_test-cwl-out2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_test_cwl_out2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_test-cwl-out2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_wf6ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf6.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_wf6ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf6.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_wf6ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf6.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_metadataByString() throws Exception { + java.net.URL url = getClass().getResource("valid_metadata.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_metadataByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_metadata.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_metadataByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_metadata.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines9_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines9-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines9_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines9-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines9_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines9-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_fooByString() throws Exception { + java.net.URL url = getClass().getResource("valid_foo.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_fooByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_foo.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_fooByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_foo.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_params2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_params2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_params2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_params2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_params2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_params2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines9_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines9-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines9_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines9-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines9_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines9-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_multiple_input_feature_requirementByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_multiple_input_feature_requirement.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_multiple_input_feature_requirementByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_multiple_input_feature_requirement.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_multiple_input_feature_requirementByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_multiple_input_feature_requirement.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwd_passthrough3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwd_passthrough3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwd_passthrough3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines7_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines7-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines7_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines7-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines7_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines7-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_io_any_wf_1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_io-any-wf-1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_io_any_wf_1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_io-any-wf-1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_io_any_wf_1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_io-any-wf-1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_default_pathByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_default_path.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_default_pathByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_default_path.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_default_pathByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_default_path.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_fail_unconnectedByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_fail-unconnected.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_fail_unconnectedByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_fail-unconnected.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_fail_unconnectedByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_fail-unconnected.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_actionByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_action.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_actionByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_action.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_actionByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_action.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_io_file_default_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_io-file-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_io_file_default_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_io-file-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_io_file_default_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_io-file-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_empty_array_inputByString() throws Exception { + java.net.URL url = getClass().getResource("valid_empty-array-input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_empty_array_inputByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_empty-array-input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_empty_array_inputByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_empty-array-input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_inpdir_update_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_inpdir_update_wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_inpdir_update_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_inpdir_update_wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_inpdir_update_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_inpdir_update_wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_dir3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_dir3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_dir3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cat3_tool_mediumcutByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat3-tool-mediumcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cat3_tool_mediumcutByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat3-tool-mediumcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cat3_tool_mediumcutByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat3-tool-mediumcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wc3_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wc3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wc3_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wc3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wc3_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wc3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_env_wf2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_env_wf2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_env_wf2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dir7ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dir7.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dir7ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dir7.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dir7ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dir7.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_binding_testByString() throws Exception { + java.net.URL url = getClass().getResource("valid_binding-test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_binding_testByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_binding-test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_binding_testByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_binding-test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_revsort_packedByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_revsort-packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_revsort_packedByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_revsort-packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_revsort_packedByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_revsort-packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_paramsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_params.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_paramsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_params.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_paramsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_params.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_record_in_secondaryFilesByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-in-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_record_in_secondaryFilesByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-in-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_record_in_secondaryFilesByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-in-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_record_orderByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-order.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_record_orderByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-order.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_record_orderByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-order.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines8_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines8-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines8_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines8-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines8_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines8-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_output_reference_workflow_inputByString() throws Exception { + java.net.URL url = getClass().getResource("valid_output_reference_workflow_input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_output_reference_workflow_inputByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_output_reference_workflow_input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_output_reference_workflow_inputByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_output_reference_workflow_input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines5_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines5-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines5_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines5-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines5_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines5-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_pass_unconnectedByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_pass-unconnected.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_pass_unconnectedByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_pass-unconnected.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_pass_unconnectedByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_pass-unconnected.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_networkaccessByString() throws Exception { + java.net.URL url = getClass().getResource("valid_networkaccess.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_networkaccessByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_networkaccess.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_networkaccessByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_networkaccess.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines11_null_step_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines11-null-step-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines11_null_step_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines11-null-step-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines11_null_step_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines11-null-step-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines4_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines4-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines4_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines4-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines4_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines4-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_empty_array_inputByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_empty-array-input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_empty_array_inputByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_empty-array-input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_empty_array_inputByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_empty-array-input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_colon_test_outputByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_colon_test_output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_colon_test_outputByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_colon_test_output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_colon_test_outputByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_colon_test_output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat3_tool_dockerByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool-docker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat3_tool_dockerByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool-docker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat3_tool_dockerByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool-docker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_optional_outputByString() throws Exception { + java.net.URL url = getClass().getResource("valid_optional-output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_optional_outputByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_optional-output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_optional_outputByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_optional-output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_record_in_secondaryFiles_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-in-secondaryFiles-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_record_in_secondaryFiles_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-in-secondaryFiles-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_record_in_secondaryFiles_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-in-secondaryFiles-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_anon_enum_inside_array_inside_schemadefByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_anon_enum_inside_array_inside_schemadef.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_anon_enum_inside_array_inside_schemadefByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_anon_enum_inside_array_inside_schemadef.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_anon_enum_inside_array_inside_schemadefByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_anon_enum_inside_array_inside_schemadef.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines8_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines8-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines8_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines8-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines8_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines8-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_valuefrom_wf2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_wf1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_wf1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_wf1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_symlink_legalByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_symlink-legal.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_symlink_legalByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_symlink-legal.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_symlink_legalByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_symlink-legal.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_touchByString() throws Exception { + java.net.URL url = getClass().getResource("valid_touch.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_touchByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_touch.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_touchByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_touch.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_listing_none3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_none3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_listing_none3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_none3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_listing_none3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_none3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat1_testcliByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat1-testcli.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat1_testcliByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat1-testcli.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat1_testcliByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat1-testcli.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwd_jsondump1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwd_jsondump1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwd_jsondump1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dir2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dir2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dir2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dir2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dir2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dir2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_io_any_1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_io-any-1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_io_any_1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_io-any-1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_io_any_1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_io-any-1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_003_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-003_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_003_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-003_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_003_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-003_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_stage_array_dirsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stage-array-dirs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_stage_array_dirsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stage-array-dirs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_stage_array_dirsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stage-array-dirs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_rename_outputsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_rename-outputs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_rename_outputsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_rename-outputs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_rename_outputsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_rename-outputs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_revtoolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_revtool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_revtoolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_revtool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_revtoolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_revtool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat_tool_shortcutByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat_tool_shortcutByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat_tool_shortcutByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_002_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-002_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_002_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-002_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_002_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-002_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_011ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-011.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_011ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-011.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_011ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-011.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_003_1_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-003.1_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_003_1_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-003.1_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_003_1_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-003.1_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_001ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-001.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_001ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-001.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_001ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-001.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines10_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines10-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines10_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines10-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines10_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines10-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_valid_schemadef_types_with_import_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_valid_schemadef_types_with_import-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_valid_schemadef_types_with_import_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_valid_schemadef_types_with_import-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_valid_schemadef_types_with_import_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_valid_schemadef_types_with_import-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_004ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-004.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_004ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-004.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_004ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-004.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_bool_empty_inputbindingByString() throws Exception { + java.net.URL url = getClass().getResource("valid_bool-empty-inputbinding.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_bool_empty_inputbindingByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_bool-empty-inputbinding.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_bool_empty_inputbindingByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_bool-empty-inputbinding.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_env_tool1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_env_tool1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_env_tool1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_import_schema_defByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_import_schema-def.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_import_schema_defByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_import_schema-def.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_import_schema_defByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_import_schema-def.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_io_any_1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-any-1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_io_any_1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-any-1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_io_any_1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-any-1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_anon_enum_inside_arrayByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_anon_enum_inside_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_anon_enum_inside_arrayByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_anon_enum_inside_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_anon_enum_inside_arrayByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_anon_enum_inside_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_timelimit3_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_timelimit3_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_timelimit3_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwd_container_entryname2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwd_container_entryname2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwd_container_entryname2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_colon_test_outputByString() throws Exception { + java.net.URL url = getClass().getResource("valid_colon_test_output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_colon_test_outputByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_colon_test_output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_colon_test_outputByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_colon_test_output.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_dir4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_dir4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_dir4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_anon_enum_inside_arrayByString() throws Exception { + java.net.URL url = getClass().getResource("valid_anon_enum_inside_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_anon_enum_inside_arrayByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_anon_enum_inside_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_anon_enum_inside_arrayByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_anon_enum_inside_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_no_outputs_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_no-outputs-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_no_outputs_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_no-outputs-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_no_outputs_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_no-outputs-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_inp_update_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_inp_update_wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_inp_update_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_inp_update_wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_inp_update_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_inp_update_wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwd_fileobjs2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-fileobjs2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwd_fileobjs2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-fileobjs2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwd_fileobjs2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-fileobjs2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines12_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines12-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines12_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines12-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines12_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines12-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_env_tool2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-tool2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_env_tool2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-tool2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_env_tool2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-tool2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_echo_wf_defaultByString() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-wf-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_echo_wf_defaultByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-wf-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_echo_wf_defaultByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-wf-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_dir7ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir7.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_dir7ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir7.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_dir7ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir7.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_io_int_optional_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-optional-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_io_int_optional_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-optional-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_io_int_optional_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-optional-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_001ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-001.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_001ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-001.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_001ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-001.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_sorttoolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_sorttool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_sorttoolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_sorttool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_sorttoolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_sorttool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat3_tool_shortcutByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat3_tool_shortcutByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat3_tool_shortcutByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_012_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-012_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_012_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-012_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_012_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-012_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_docker_array_secondaryfilesByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_docker-array-secondaryfiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_docker_array_secondaryfilesByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_docker-array-secondaryfiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_docker_array_secondaryfilesByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_docker-array-secondaryfiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_013_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-013_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_013_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-013_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_013_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-013_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines9_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines9-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines9_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines9-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines9_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines9-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines11_extra_step_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines11_extra_step_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines11_extra_step_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_listing_shallow2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_shallow2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_listing_shallow2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_shallow2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_listing_shallow2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_shallow2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_002ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-002.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_002ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-002.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_002ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-002.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_wf_loadContents2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wf-loadContents2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_wf_loadContents2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wf-loadContents2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_wf_loadContents2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wf-loadContents2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_001_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-001_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_001_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-001_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_001_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-001_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_updatedir_inplaceByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_updatedir_inplace.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_updatedir_inplaceByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_updatedir_inplace.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_updatedir_inplaceByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_updatedir_inplace.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_sum_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_sum-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_sum_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_sum-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_sum_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_sum-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stage_file_arrayByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stage_file_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stage_file_arrayByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stage_file_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stage_file_arrayByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stage_file_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_checkByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_check.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_checkByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_check.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_checkByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_check.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_wf_loadContents3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wf-loadContents3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_wf_loadContents3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wf-loadContents3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_wf_loadContents3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wf-loadContents3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_003ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-003.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_003ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-003.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_003ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-003.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_wf3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_wf3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_wf3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwd_jsondump3_nlByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump3-nl.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwd_jsondump3_nlByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump3-nl.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwd_jsondump3_nlByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump3-nl.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_initialworkdir_glob_fullpathByString() throws Exception { + java.net.URL url = getClass().getResource("valid_initialworkdir-glob-fullpath.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_initialworkdir_glob_fullpathByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_initialworkdir-glob-fullpath.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_initialworkdir_glob_fullpathByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_initialworkdir-glob-fullpath.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines11_null_step_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines11_null_step_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines11_null_step_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwd_container_entryname4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-container-entryname4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwd_container_entryname4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-container-entryname4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwd_container_entryname4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-container-entryname4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_echo_position_exprByString() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-position-expr.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_echo_position_exprByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-position-expr.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_echo_position_exprByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-position-expr.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_wf4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_wf4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_wf4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_shellchar2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_shellchar2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_shellchar2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_shellchar2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_shellchar2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_shellchar2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_env_wf2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_env-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_env_wf2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_env-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_env_wf2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_env-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_null_expression3_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_null-expression3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_null_expression3_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_null-expression3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_null_expression3_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_null-expression3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_no_inputs_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_no-inputs-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_no_inputs_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_no-inputs-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_no_inputs_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_no-inputs-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_001_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-001_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_001_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-001_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_001_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-001_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_no_inputs_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_no-inputs-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_no_inputs_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_no-inputs-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_no_inputs_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_no-inputs-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_wf2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_wf2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_wf2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_013ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-013.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_013ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-013.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_013ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-013.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_runtime_outdirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_runtime-outdir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_runtime_outdirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_runtime-outdir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_runtime_outdirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_runtime-outdir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_003ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-003.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_003ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-003.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_003ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-003.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_010ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-010.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_010ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-010.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_010ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-010.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_tool_v12ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_tool-v12.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_tool_v12ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_tool-v12.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_tool_v12ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_tool-v12.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_glob_expr_listByString() throws Exception { + java.net.URL url = getClass().getResource("valid_glob-expr-list.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_glob_expr_listByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_glob-expr-list.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_glob_expr_listByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_glob-expr-list.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_runtime_paths_distinctByString() throws Exception { + java.net.URL url = getClass().getResource("valid_runtime-paths-distinct.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_runtime_paths_distinctByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_runtime-paths-distinct.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_runtime_paths_distinctByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_runtime-paths-distinct.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_loadContents_limitByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_loadContents-limit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_loadContents_limitByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_loadContents-limit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_loadContents_limitByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_loadContents-limit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_valuefrom_wf1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_valuefrom_inputs_wf1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-inputs-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_inputs_wf1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-inputs-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_inputs_wf1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-inputs-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_007_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-007_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_007_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-007_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_007_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-007_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_scatter_wf4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-wf4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_scatter_wf4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-wf4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_scatter_wf4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-wf4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines10_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines10-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines10_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines10-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines10_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines10-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_glob_directoryByString() throws Exception { + java.net.URL url = getClass().getResource("valid_glob_directory.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_glob_directoryByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_glob_directory.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_glob_directoryByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_glob_directory.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines11_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines11-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines11_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines11-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines11_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines11-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_import_schema_defByString() throws Exception { + java.net.URL url = getClass().getResource("valid_import_schema-def.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_import_schema_defByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_import_schema-def.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_import_schema_defByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_import_schema-def.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_import_schema_def2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_import_schema-def2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_import_schema_def2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_import_schema-def2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_import_schema_def2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_import_schema-def2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_docker_run_cmdByString() throws Exception { + java.net.URL url = getClass().getResource("valid_docker-run-cmd.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_docker_run_cmdByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_docker-run-cmd.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_docker_run_cmdByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_docker-run-cmd.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_schemadef_types_with_import_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_schemadef_types_with_import-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_schemadef_types_with_import_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_schemadef_types_with_import-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_schemadef_types_with_import_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_schemadef_types_with_import-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_no_outputs_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_no-outputs-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_no_outputs_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_no-outputs-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_no_outputs_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_no-outputs-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_011_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-011_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_011_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-011_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_011_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-011_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_003_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-003_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_003_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-003_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_003_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-003_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_glob_testByString() throws Exception { + java.net.URL url = getClass().getResource("valid_glob_test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_glob_testByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_glob_test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_glob_testByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_glob_test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_bwa_mem_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_bwa-mem-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_bwa_mem_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_bwa-mem-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_bwa_mem_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_bwa-mem-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_glob_expr_listByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_glob-expr-list.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_glob_expr_listByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_glob-expr-list.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_glob_expr_listByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_glob-expr-list.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_stage_file_array_basename_and_entrynameByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stage_file_array_basename_and_entryname.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_stage_file_array_basename_and_entrynameByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stage_file_array_basename_and_entryname.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_stage_file_array_basename_and_entrynameByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stage_file_array_basename_and_entryname.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_runtime_outdirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_runtime-outdir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_runtime_outdirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_runtime-outdir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_runtime_outdirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_runtime-outdir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_operationByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_operation.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_operationByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_operation.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_operationByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_operation.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_basename_fields_testByString() throws Exception { + java.net.URL url = getClass().getResource("valid_basename-fields-test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_basename_fields_testByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_basename-fields-test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_basename_fields_testByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_basename-fields-test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwd_jsondump3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwd_jsondump3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwd_jsondump3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwd_jsondump1_nlByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump1-nl.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwd_jsondump1_nlByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump1-nl.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwd_jsondump1_nlByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump1-nl.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_import_schema_def2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_import_schema-def2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_import_schema_def2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_import_schema-def2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_import_schema_def2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_import_schema-def2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_echo_tool_packed2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool-packed2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_echo_tool_packed2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool-packed2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_echo_tool_packed2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool-packed2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_output_arrays_intByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_output-arrays-int.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_output_arrays_intByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_output-arrays-int.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_output_arrays_intByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_output-arrays-int.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_echo_position_exprByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-position-expr.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_echo_position_exprByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-position-expr.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_echo_position_exprByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-position-expr.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wf_loadContentsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wf_loadContentsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wf_loadContentsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wf-loadContents.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_in_secondaryFilesByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_in_secondaryFilesByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_in_secondaryFilesByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_writable_dir_dockerByString() throws Exception { + java.net.URL url = getClass().getResource("valid_writable-dir-docker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_writable_dir_dockerByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_writable-dir-docker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_writable_dir_dockerByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_writable-dir-docker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_env_tool2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_env_tool2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_env_tool2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_searchByString() throws Exception { + java.net.URL url = getClass().getResource("valid_search.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_searchByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_search.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_searchByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_search.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_params_input_length_non_arrayByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_params_input_length_non_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_params_input_length_non_arrayByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_params_input_length_non_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_params_input_length_non_arrayByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_params_input_length_non_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_echo_tool_packedByString() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool-packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_echo_tool_packedByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool-packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_echo_tool_packedByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool-packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_fail_unspecified_inputByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_fail-unspecified-input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_fail_unspecified_inputByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_fail-unspecified-input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_fail_unspecified_inputByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_fail-unspecified-input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines8_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines8-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines8_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines8-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines8_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines8-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines11_null_step_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines11_null_step_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines11_null_step_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines1_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines1-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines1_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines1-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines1_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines1-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stage_arrayByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stage-array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stage_arrayByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stage-array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stage_arrayByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stage-array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cat1_testcliByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat1-testcli.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cat1_testcliByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat1-testcli.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cat1_testcliByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat1-testcli.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_params_input_length_non_arrayByString() throws Exception { + java.net.URL url = getClass().getResource("valid_params_input_length_non_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_params_input_length_non_arrayByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_params_input_length_non_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_params_input_length_non_arrayByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_params_input_length_non_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_step_valuefrom_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_step-valuefrom-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_step_valuefrom_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_step-valuefrom-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_step_valuefrom_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_step-valuefrom-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cwloutput_nolimitByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cwloutput-nolimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cwloutput_nolimitByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cwloutput-nolimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cwloutput_nolimitByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cwloutput-nolimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_echo_tool_defaultByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-tool-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_echo_tool_defaultByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-tool-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_echo_tool_defaultByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-tool-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_envvar3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_envvar3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_envvar3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_envvar3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_envvar3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_envvar3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_renameByString() throws Exception { + java.net.URL url = getClass().getResource("valid_rename.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_renameByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_rename.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_renameByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_rename.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_dynresreq_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_dynresreq_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_dynresreq_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_env_wf1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_env-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_env_wf1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_env-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_env_wf1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_env-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwd_container_entryname4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwd_container_entryname4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwd_container_entryname4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_012_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-012_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_012_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-012_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_012_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-012_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines13_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines13-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines13_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines13-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines13_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines13-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_record_outputeval_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record_outputeval_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_record_outputeval_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record_outputeval_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_record_outputeval_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record_outputeval_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_barByString() throws Exception { + java.net.URL url = getClass().getResource("valid_bar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_barByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_bar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_barByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_bar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines12_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines12-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines12_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines12-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines12_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines12-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_dir2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_dir2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_dir2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines11_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines11-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines11_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines11-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines11_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines11-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines11_extra_step_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines11-extra-step-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines11_extra_step_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines11-extra-step-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines11_extra_step_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines11-extra-step-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwd_container_entryname1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwd_container_entryname1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwd_container_entryname1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_listing_none1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_none1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_listing_none1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_none1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_listing_none1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_none1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_003_1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-003.1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_003_1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-003.1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_003_1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-003.1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_io_union_input_default_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_io-union-input-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_io_union_input_default_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_io-union-input-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_io_union_input_default_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_io-union-input-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwd_nolimitByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-nolimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwd_nolimitByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-nolimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwd_nolimitByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-nolimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_006ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-006.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_006ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-006.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_006ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-006.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines13_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines13-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines13_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines13-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines13_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines13-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_listing_shallow1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_shallow1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_listing_shallow1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_shallow1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_listing_shallow1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_shallow1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_colon_testByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_colon:test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_colon_testByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_colon:test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_colon_testByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_colon:test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_valuefrom_wf6ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf6.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf6ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf6.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_valuefrom_wf6ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf6.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dynresreqByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dynresreqByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dynresreqByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat5_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat5-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat5_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat5-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat5_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat5-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_renameByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_rename.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_renameByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_rename.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_renameByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_rename.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwd_container_entryname2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-container-entryname2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwd_container_entryname2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-container-entryname2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwd_container_entryname2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-container-entryname2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_bash_line_continuationByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_bash-line-continuation.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_bash_line_continuationByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_bash-line-continuation.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_bash_line_continuationByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_bash-line-continuation.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_revsort_abstractByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_revsort-abstract.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_revsort_abstractByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_revsort-abstract.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_revsort_abstractByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_revsort-abstract.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_timelimit4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_timelimit4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_timelimit4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_wc4_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wc4-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_wc4_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wc4-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_wc4_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wc4-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines3_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines3_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines3_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_symlink_illegalByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_symlink-illegal.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_symlink_illegalByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_symlink-illegal.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_symlink_illegalByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_symlink-illegal.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_stderr_mediumcutByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stderr-mediumcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_stderr_mediumcutByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stderr-mediumcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_stderr_mediumcutByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stderr-mediumcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cores_floatByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cores_float.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cores_floatByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cores_float.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cores_floatByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cores_float.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_timelimitByString() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_timelimitByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_timelimitByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_null_expression2_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_null-expression2-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_null_expression2_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_null-expression2-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_null_expression2_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_null-expression2-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwd_container_entryname3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-container-entryname3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwd_container_entryname3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-container-entryname3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwd_container_entryname3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-container-entryname3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_bash_dollar_quoteByString() throws Exception { + java.net.URL url = getClass().getResource("valid_bash-dollar-quote.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_bash_dollar_quoteByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_bash-dollar-quote.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_bash_dollar_quoteByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_bash-dollar-quote.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_dir5ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_dir5ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_dir5ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cat3_from_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat3-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cat3_from_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat3-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cat3_from_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat3-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_listing_none1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_none1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_listing_none1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_none1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_listing_none1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_none1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_listing_none2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_none2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_listing_none2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_none2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_listing_none2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_none2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwd_passthrough2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-passthrough2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwd_passthrough2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-passthrough2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwd_passthrough2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-passthrough2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines11_wf_noETByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines11_wf_noETByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines11_wf_noETByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-wf-noET.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stagefileByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stagefile.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stagefileByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stagefile.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stagefileByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stagefile.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_wc2_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wc2-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_wc2_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wc2-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_wc2_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wc2-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_basename_fields_testByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_basename-fields-test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_basename_fields_testByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_basename-fields-test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_basename_fields_testByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_basename-fields-test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stage_file_array_basename_and_entrynameByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stage_file_array_basename_and_entryname.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stage_file_array_basename_and_entrynameByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stage_file_array_basename_and_entryname.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stage_file_array_basename_and_entrynameByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stage_file_array_basename_and_entryname.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_shellchar2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_shellchar2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_shellchar2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_shellchar2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_shellchar2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_shellchar2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_out_secondaryFilesByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-out-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_out_secondaryFilesByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-out-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_out_secondaryFilesByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-out-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_networkaccess2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_networkaccess2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_networkaccess2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_networkaccess2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_networkaccess2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_networkaccess2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_test_cwl_outByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_test-cwl-out.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_test_cwl_outByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_test-cwl-out.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_test_cwl_outByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_test-cwl-out.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cores_floatByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cores_float.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cores_floatByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cores_float.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cores_floatByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cores_float.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_stderrByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stderr.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_stderrByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stderr.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_stderrByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stderr.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_glob_testByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_glob_test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_glob_testByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_glob_test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_glob_testByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_glob_test.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_inp_update_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_inp_update_wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_inp_update_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_inp_update_wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_inp_update_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_inp_update_wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_bwa_mem_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_bwa-mem-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_bwa_mem_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_bwa-mem-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_bwa_mem_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_bwa-mem-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat3_tool_mediumcutByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool-mediumcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat3_tool_mediumcutByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool-mediumcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat3_tool_mediumcutByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-tool-mediumcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_glob_path_errorByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_glob-path-error.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_glob_path_errorByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_glob-path-error.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_glob_path_errorByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_glob-path-error.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_dynresreq_workflow_inputdefaultByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow-inputdefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_dynresreq_workflow_inputdefaultByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow-inputdefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_dynresreq_workflow_inputdefaultByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow-inputdefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_loadContents_limitByString() throws Exception { + java.net.URL url = getClass().getResource("valid_loadContents-limit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_loadContents_limitByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_loadContents-limit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_loadContents_limitByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_loadContents-limit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_stage_arrayByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stage-array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_stage_arrayByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stage-array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_stage_arrayByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stage-array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_output_reference_workflow_inputByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_output_reference_workflow_input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_output_reference_workflow_inputByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_output_reference_workflow_input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_output_reference_workflow_inputByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_output_reference_workflow_input.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_env_tool3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_env_tool3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_env_tool3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_timelimit2_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_timelimit2_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_timelimit2_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_revsort_packedByString() throws Exception { + java.net.URL url = getClass().getResource("valid_revsort-packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_revsort_packedByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_revsort-packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_revsort_packedByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_revsort-packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_null_definedByString() throws Exception { + java.net.URL url = getClass().getResource("valid_null-defined.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_null_definedByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_null-defined.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_null_definedByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_null-defined.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_initialworkdir_glob_fullpathByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_initialworkdir-glob-fullpath.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_initialworkdir_glob_fullpathByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_initialworkdir-glob-fullpath.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_initialworkdir_glob_fullpathByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_initialworkdir-glob-fullpath.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_listing_none3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_none3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_listing_none3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_none3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_listing_none3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_none3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cat3_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cat3_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cat3_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_wf_renByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wf_ren.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_wf_renByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wf_ren.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_wf_renByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wf_ren.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_exitcodeByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_exitcode.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_exitcodeByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_exitcode.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_exitcodeByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_exitcode.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cat3_nodockerByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat3-nodocker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cat3_nodockerByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat3-nodocker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cat3_nodockerByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat3-nodocker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwd_jsondump1_nlByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-jsondump1-nl.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwd_jsondump1_nlByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-jsondump1-nl.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwd_jsondump1_nlByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-jsondump1-nl.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwd_jsondump2_nlByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-jsondump2-nl.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwd_jsondump2_nlByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-jsondump2-nl.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwd_jsondump2_nlByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-jsondump2-nl.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwdr_dir_literal_real_fileByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwdr_dir_literal_real_file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwdr_dir_literal_real_fileByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwdr_dir_literal_real_file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwdr_dir_literal_real_fileByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwdr_dir_literal_real_file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_wf3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_wf3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_wf3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_io_int_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_io_int_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_io_int_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_listing_deep1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_deep1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_listing_deep1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_deep1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_listing_deep1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_deep1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_009_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-009_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_009_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-009_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_009_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-009_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_006_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-006_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_006_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-006_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_006_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-006_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_file_literal_exByString() throws Exception { + java.net.URL url = getClass().getResource("valid_file-literal-ex.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_file_literal_exByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_file-literal-ex.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_file_literal_exByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_file-literal-ex.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_revsortByString() throws Exception { + java.net.URL url = getClass().getResource("valid_revsort.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_revsortByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_revsort.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_revsortByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_revsort.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_tmap_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_tmap-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_tmap_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_tmap-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_tmap_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_tmap-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_record_outputevalByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record_outputeval.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_record_outputevalByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record_outputeval.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_record_outputevalByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record_outputeval.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_012ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-012.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_012ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-012.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_012ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-012.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_010ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-010.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_010ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-010.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_010ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-010.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_record_out_formatByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-out-format.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_record_out_formatByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-out-format.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_record_out_formatByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-out-format.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_io_union_input_default_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-union-input-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_io_union_input_default_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-union-input-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_io_union_input_default_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-union-input-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_env_tool4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_env_tool4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_env_tool4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_env-tool4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stage_array_dirsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stage-array-dirs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stage_array_dirsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stage-array-dirs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stage_array_dirsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stage-array-dirs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_inputs_wf1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-inputs-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_inputs_wf1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-inputs-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_inputs_wf1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-inputs-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_step_valuefrom4_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_step-valuefrom4-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_step_valuefrom4_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_step-valuefrom4-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_step_valuefrom4_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_step-valuefrom4-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_dir6ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir6.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_dir6ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir6.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_dir6ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dir6.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_shellcharByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_shellchar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_shellcharByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_shellchar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_shellcharByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_shellchar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines2_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines2_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines2_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_formattestByString() throws Exception { + java.net.URL url = getClass().getResource("valid_formattest.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_formattestByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_formattest.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_formattestByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_formattest.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_stagefileByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stagefile.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_stagefileByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stagefile.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_stagefileByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stagefile.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_stage_file_arrayByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stage_file_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_stage_file_arrayByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stage_file_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_stage_file_arrayByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stage_file_array.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dynresreq_workflow_stepdefaultByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow-stepdefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dynresreq_workflow_stepdefaultByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow-stepdefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dynresreq_workflow_stepdefaultByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow-stepdefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwd_jsondump3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-jsondump3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwd_jsondump3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-jsondump3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwd_jsondump3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-jsondump3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_io_int_default_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-int-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_io_int_default_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-int-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_io_int_default_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-int-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_size_expression_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_size-expression-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_size_expression_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_size-expression-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_size_expression_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_size-expression-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat4_from_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat4-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat4_from_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat4-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat4_from_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat4-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_out_formatByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-out-format.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_out_formatByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-out-format.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_out_formatByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-out-format.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_revsort_abstractByString() throws Exception { + java.net.URL url = getClass().getResource("valid_revsort-abstract.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_revsort_abstractByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_revsort-abstract.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_revsort_abstractByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_revsort-abstract.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_009ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-009.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_009ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-009.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_009ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-009.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwd_nolimitByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-nolimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwd_nolimitByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-nolimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwd_nolimitByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-nolimit.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_wc4_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_wc4-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_wc4_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_wc4-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_wc4_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_wc4-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_step_valuefrom5_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom5-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_step_valuefrom5_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom5-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_step_valuefrom5_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom5-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_echo_file_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-file-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_echo_file_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-file-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_echo_file_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-file-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_step_valuefrom_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_step_valuefrom_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_step_valuefrom_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_output_arrays_file_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_output-arrays-file-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_output_arrays_file_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_output-arrays-file-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_output_arrays_file_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_output-arrays-file-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_echo_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_echo_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_echo_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat_from_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat_from_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat_from_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_fail_unconnectedByString() throws Exception { + java.net.URL url = getClass().getResource("valid_fail-unconnected.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_fail_unconnectedByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_fail-unconnected.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_fail_unconnectedByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_fail-unconnected.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_symlink_illegalByString() throws Exception { + java.net.URL url = getClass().getResource("valid_symlink-illegal.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_symlink_illegalByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_symlink-illegal.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_symlink_illegalByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_symlink-illegal.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_actionByString() throws Exception { + java.net.URL url = getClass().getResource("valid_action.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_actionByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_action.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_actionByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_action.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_timelimit4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_timelimit4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_timelimit4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_echo_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_echo_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_echo_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_echo-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_step_valuefrom2_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_step_valuefrom2_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_step_valuefrom2_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_valueFrom_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valueFrom-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_valueFrom_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valueFrom-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_valueFrom_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-valueFrom-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines18_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines18-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines18_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines18-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines18_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines18-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_dynresreq_workflowByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_dynresreq_workflowByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_dynresreq_workflowByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_glob_directoryByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_glob_directory.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_glob_directoryByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_glob_directory.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_glob_directoryByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_glob_directory.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cat_from_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cat_from_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cat_from_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat-from-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_io_int_optional_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-int-optional-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_io_int_optional_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-int-optional-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_io_int_optional_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-int-optional-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_revsortByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_revsort.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_revsortByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_revsort.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_revsortByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_revsort.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwd_passthrough4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-passthrough4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwd_passthrough4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-passthrough4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwd_passthrough4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-passthrough4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_initialworkdirrequirement_docker_outByString() throws Exception { + java.net.URL url = getClass().getResource("valid_initialworkdirrequirement-docker-out.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_initialworkdirrequirement_docker_outByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_initialworkdirrequirement-docker-out.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_initialworkdirrequirement_docker_outByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_initialworkdirrequirement-docker-out.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_sd_secondaryFilesByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-sd-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_sd_secondaryFilesByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-sd-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_sd_secondaryFilesByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-sd-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_formattest2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_formattest2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_formattest2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_formattest2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_formattest2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_formattest2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_listing_shallow2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_shallow2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_listing_shallow2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_shallow2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_listing_shallow2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_shallow2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_inpdir_update_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_inpdir_update_wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_inpdir_update_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_inpdir_update_wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_inpdir_update_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_inpdir_update_wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cat4_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat4-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cat4_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat4-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cat4_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat4-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_004ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-004.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_004ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-004.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_004ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-004.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_in_secondaryFiles_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_in_secondaryFiles_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_in_secondaryFiles_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_shellcharByString() throws Exception { + java.net.URL url = getClass().getResource("valid_shellchar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_shellcharByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_shellchar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_shellcharByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_shellchar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_listing_none2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_none2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_listing_none2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_none2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_listing_none2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_listing_none2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_step_valuefrom4_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom4-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_step_valuefrom4_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom4-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_step_valuefrom4_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom4-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_exit_successByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_exit-success.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_exit_successByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_exit-success.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_exit_successByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_exit-success.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_template_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_template-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_template_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_template-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_template_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_template-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_initialwork_pathByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_initialwork-path.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_initialwork_pathByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_initialwork-path.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_initialwork_pathByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_initialwork-path.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_valueFrom_constantByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_valueFrom-constant.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_valueFrom_constantByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_valueFrom-constant.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_valueFrom_constantByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_valueFrom-constant.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_env_wf1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_env_wf1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_env_wf1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_010_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-010_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_010_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-010_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_010_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-010_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_with_defaultsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-with-defaults.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_with_defaultsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-with-defaults.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_with_defaultsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-with-defaults.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_networkaccessByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_networkaccess.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_networkaccessByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_networkaccess.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_networkaccessByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_networkaccess.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_schemadef_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_schemadef-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_schemadef_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_schemadef-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_schemadef_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_schemadef-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dynresreq_workflowByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dynresreq_workflowByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dynresreq_workflowByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dir3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dir3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dir3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dir3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dir3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dir3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dynresreq_workflow_inputdefaultByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow-inputdefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dynresreq_workflow_inputdefaultByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow-inputdefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dynresreq_workflow_inputdefaultByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow-inputdefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines6_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines6-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines6_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines6-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines6_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines6-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_null_expression1_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_null-expression1-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_null_expression1_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_null-expression1-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_null_expression1_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_null-expression1-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_imported_hintByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_imported-hint.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_imported_hintByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_imported-hint.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_imported_hintByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_imported-hint.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_013ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-013.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_013ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-013.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_013ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-013.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwd_fileobjs1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-fileobjs1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwd_fileobjs1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-fileobjs1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwd_fileobjs1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-fileobjs1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_test_cwl_out2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_test-cwl-out2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_test_cwl_out2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_test-cwl-out2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_test_cwl_out2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_test-cwl-out2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines16_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines16-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines16_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines16-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines16_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines16-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwd_passthrough1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwd_passthrough1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwd_passthrough1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_envvar2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_envvar2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_envvar2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_envvar2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_envvar2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_envvar2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_step_valuefrom2_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_step-valuefrom2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_step_valuefrom2_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_step-valuefrom2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_step_valuefrom2_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_step-valuefrom2-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_dynresreq_defaultByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_dynresreq_defaultByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_dynresreq_defaultByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_echo_file_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-file-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_echo_file_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-file-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_echo_file_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_echo-file-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_template_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_template-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_template_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_template-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_template_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_template-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stdout_chained_commandsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stdout_chained_commands.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stdout_chained_commandsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stdout_chained_commands.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stdout_chained_commandsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stdout_chained_commands.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_formattest3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_formattest3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_formattest3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_formattest3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_formattest3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_formattest3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_js_input_recordByString() throws Exception { + java.net.URL url = getClass().getResource("valid_js-input-record.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_js_input_recordByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_js-input-record.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_js_input_recordByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_js-input-record.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dynresreq_workflow_tooldefaultByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow-tooldefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dynresreq_workflow_tooldefaultByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow-tooldefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dynresreq_workflow_tooldefaultByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-workflow-tooldefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_test_cwl_outByString() throws Exception { + java.net.URL url = getClass().getResource("valid_test-cwl-out.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_test_cwl_outByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_test-cwl-out.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_test_cwl_outByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_test-cwl-out.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_multiple_input_feature_requirementByString() throws Exception { + java.net.URL url = getClass().getResource("valid_multiple_input_feature_requirement.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_multiple_input_feature_requirementByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_multiple_input_feature_requirement.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_multiple_input_feature_requirementByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_multiple_input_feature_requirement.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dynresreq_defaultByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dynresreq_defaultByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dynresreq_defaultByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-default.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_in_formatByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-format.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_in_formatByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-format.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_in_formatByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-in-format.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_import_schema_def_packedByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_import_schema-def_packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_import_schema_def_packedByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_import_schema-def_packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_import_schema_def_packedByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_import_schema-def_packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_exitcodeByString() throws Exception { + java.net.URL url = getClass().getResource("valid_exitcode.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_exitcodeByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_exitcode.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_exitcodeByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_exitcode.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwd_container_entryname3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwd_container_entryname3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwd_container_entryname3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_file_literal_exByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_file-literal-ex.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_file_literal_exByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_file-literal-ex.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_file_literal_exByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_file-literal-ex.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_sorttoolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_sorttool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_sorttoolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_sorttool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_sorttoolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_sorttool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_import_schema_def_packedByString() throws Exception { + java.net.URL url = getClass().getResource("valid_import_schema-def_packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_import_schema_def_packedByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_import_schema-def_packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_import_schema_def_packedByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_import_schema-def_packed.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_linkfileByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_linkfile.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_linkfileByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_linkfile.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_linkfileByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_linkfile.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cat3_tool_shortcutByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat3-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cat3_tool_shortcutByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat3-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cat3_tool_shortcutByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat3-tool-shortcut.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines4_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines4-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines4_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines4-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines4_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines4-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_checkByString() throws Exception { + java.net.URL url = getClass().getResource("valid_check.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_checkByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_check.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_checkByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_check.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_updateval_inplaceByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_updateval_inplace.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_updateval_inplaceByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_updateval_inplace.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_updateval_inplaceByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_updateval_inplace.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dir6ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dir6.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dir6ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dir6.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dir6ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dir6.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dynresreq_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dynresreq_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dynresreq_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dynresreq-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines11_null_step_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines11-null-step-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines11_null_step_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines11-null-step-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines11_null_step_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines11-null-step-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_006ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-006.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_006ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-006.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_006ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-006.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_rename_inputsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_rename-inputs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_rename_inputsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_rename-inputs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_rename_inputsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_rename-inputs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_step_valuefrom5_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_step-valuefrom5-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_step_valuefrom5_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_step-valuefrom5-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_step_valuefrom5_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_step-valuefrom5-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_barByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_bar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_barByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_bar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_barByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_bar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_io_int_default_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_io_int_default_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_io_int_default_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_io-int-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_count_lines5_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines5-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_count_lines5_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines5-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_count_lines5_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_count-lines5-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_outputeval_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record_outputeval_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_outputeval_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record_outputeval_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_outputeval_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record_outputeval_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_scatter_valueFrom_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valueFrom-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_scatter_valueFrom_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valueFrom-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_scatter_valueFrom_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valueFrom-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines18_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines18-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines18_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines18-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines18_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines18-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwd_jsondump2_nlByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump2-nl.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwd_jsondump2_nlByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump2-nl.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwd_jsondump2_nlByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump2-nl.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_docker_output_dirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_docker-output-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_docker_output_dirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_docker-output-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_docker_output_dirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_docker-output-dir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines19_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines19-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines19_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines19-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines19_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines19-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dir4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dir4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dir4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dir4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dir4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dir4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cat_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cat_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cat_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cat-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat3_nodockerByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-nodocker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat3_nodockerByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-nodocker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat3_nodockerByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat3-nodocker.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_params2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_params2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_params2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_params2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_params2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_params2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_envvarByString() throws Exception { + java.net.URL url = getClass().getResource("valid_envvar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_envvarByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_envvar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_envvarByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_envvar.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_rename_outputsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_rename-outputs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_rename_outputsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_rename-outputs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_rename_outputsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_rename-outputs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_wf4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_wf4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_scatter_valuefrom_wf4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines15_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines15-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines15_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines15-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines15_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines15-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_io_int_default_tool_and_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-int-default-tool-and-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_io_int_default_tool_and_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-int-default-tool-and-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_io_int_default_tool_and_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-int-default-tool-and-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_env_tool4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-tool4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_env_tool4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-tool4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_env_tool4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_env-tool4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_io_file_or_filesByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-file-or-files.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_io_file_or_filesByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-file-or-files.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_io_file_or_filesByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-file-or-files.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_sum_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_sum-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_sum_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_sum-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_sum_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_sum-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_schemadef_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_schemadef-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_schemadef_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_schemadef-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_schemadef_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_schemadef-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_bash_line_continuationByString() throws Exception { + java.net.URL url = getClass().getResource("valid_bash-line-continuation.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_bash_line_continuationByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_bash-line-continuation.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_bash_line_continuationByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_bash-line-continuation.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_steplevel_resreqByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_steplevel-resreq.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_steplevel_resreqByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_steplevel-resreq.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_steplevel_resreqByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_steplevel-resreq.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_dynresreq_workflow_stepdefaultByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow-stepdefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_dynresreq_workflow_stepdefaultByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow-stepdefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_dynresreq_workflow_stepdefaultByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow-stepdefault.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines8_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines8-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines8_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines8-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines8_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines8-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_record_orderByString() throws Exception { + java.net.URL url = getClass().getResource("valid_record-order.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_record_orderByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_record-order.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_record_orderByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_record-order.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_catByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_catByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_catByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_wf_loadContents4ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wf-loadContents4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_wf_loadContents4ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wf-loadContents4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_wf_loadContents4ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_wf-loadContents4.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_default_pathByString() throws Exception { + java.net.URL url = getClass().getResource("valid_default_path.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_default_pathByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_default_path.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_default_pathByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_default_path.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_io_file_or_filesByString() throws Exception { + java.net.URL url = getClass().getResource("valid_io-file-or-files.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_io_file_or_filesByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_io-file-or-files.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_io_file_or_filesByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_io-file-or-files.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_paramsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_params.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_paramsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_params.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_paramsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_params.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_optional_numerical_output_0ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_optional-numerical-output-0.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_optional_numerical_output_0ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_optional-numerical-output-0.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_optional_numerical_output_0ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_optional-numerical-output-0.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_initialwork_pathByString() throws Exception { + java.net.URL url = getClass().getResource("valid_initialwork-path.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_initialwork_pathByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_initialwork-path.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_initialwork_pathByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_initialwork-path.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_parseInt_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_parseInt-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_parseInt_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_parseInt-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_parseInt_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_parseInt-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_010_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-010_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_010_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-010_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_010_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-010_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_step_valuefrom3_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_step_valuefrom3_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_step_valuefrom3_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_step-valuefrom3-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_namerootByString() throws Exception { + java.net.URL url = getClass().getResource("valid_nameroot.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_namerootByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_nameroot.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_namerootByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_nameroot.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_exit_successByString() throws Exception { + java.net.URL url = getClass().getResource("valid_exit-success.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_exit_successByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_exit-success.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_exit_successByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_exit-success.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_stage_file_array_basenameByString() throws Exception { + java.net.URL url = getClass().getResource("valid_stage_file_array_basename.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_stage_file_array_basenameByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_stage_file_array_basename.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_stage_file_array_basenameByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_stage_file_array_basename.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_record_sd_secondaryFilesByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-sd-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_record_sd_secondaryFilesByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-sd-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_record_sd_secondaryFilesByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-sd-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_tool_v12ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_tool-v12.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_tool_v12ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_tool-v12.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_tool_v12ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_tool-v12.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_scatter_wf3ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_scatter_wf3ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_scatter_wf3ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_scatter-wf3.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwd_jsondump2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-jsondump2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwd_jsondump2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-jsondump2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwd_jsondump2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-jsondump2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_scatter_wf1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_scatter_wf1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_scatter_wf1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_scatter-wf1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cat4_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cat4-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cat4_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cat4-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cat4_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cat4-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_parseInt_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_parseInt-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_parseInt_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_parseInt-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_parseInt_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_parseInt-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_record_out_secondaryFilesByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-out-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_record_out_secondaryFilesByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-out-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_record_out_secondaryFilesByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_record-out-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_null_expression3_toolByString() throws Exception { + java.net.URL url = getClass().getResource("valid_null-expression3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_null_expression3_toolByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_null-expression3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_null_expression3_toolByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_null-expression3-tool.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_timelimit2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_timelimit2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_timelimit2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_timelimit2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_mkdirByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_mkdir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_mkdirByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_mkdir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_mkdirByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_mkdir.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_timelimit5ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_timelimit5ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_timelimit5ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_timelimit5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_stage_unprovided_fileByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stage-unprovided-file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_stage_unprovided_fileByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stage-unprovided-file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_stage_unprovided_fileByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stage-unprovided-file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_cond_wf_012ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-012.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_012ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-012.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_cond_wf_012ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_cond-wf-012.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_optional_numerical_output_0ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_optional-numerical-output-0.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_optional_numerical_output_0ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_optional-numerical-output-0.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_optional_numerical_output_0ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_optional-numerical-output-0.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_stdout_chained_commandsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stdout_chained_commands.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_stdout_chained_commandsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stdout_chained_commands.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_stdout_chained_commandsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_stdout_chained_commands.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_updateval_inplaceByString() throws Exception { + java.net.URL url = getClass().getResource("valid_updateval_inplace.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_updateval_inplaceByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_updateval_inplace.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_updateval_inplaceByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_updateval_inplace.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_006_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-006_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_006_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-006_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_006_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-006_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_searchByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_search.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_searchByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_search.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_searchByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_search.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_io_file_default_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-file-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_io_file_default_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-file-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_io_file_default_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-file-default-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_count_lines11_extra_step_wfByString() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_count_lines11_extra_step_wfByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_count_lines11_extra_step_wfByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_cond_wf_003_1_nojsByString() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-003.1_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_cond_wf_003_1_nojsByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-003.1_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_cond_wf_003_1_nojsByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_cond-wf-003.1_nojs.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_io_any_wf_1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-any-wf-1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_io_any_wf_1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-any-wf-1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_io_any_wf_1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_io-any-wf-1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_iwd_jsondump1ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-jsondump1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_iwd_jsondump1ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-jsondump1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_iwd_jsondump1ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_iwd-jsondump1.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_iwdr_dir_literal_real_fileByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwdr_dir_literal_real_file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_iwdr_dir_literal_real_fileByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwdr_dir_literal_real_file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_iwdr_dir_literal_real_fileByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_iwdr_dir_literal_real_file.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_runtime_paths_distinctByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_runtime-paths-distinct.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_runtime_paths_distinctByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_runtime-paths-distinct.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_runtime_paths_distinctByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_runtime-paths-distinct.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_dir5ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_dir5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_dir5ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_dir5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_dir5ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_dir5.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_packed_envvar2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_envvar2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_packed_envvar2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_envvar2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_packed_envvar2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_packed_envvar2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } + @org.junit.Test + public void testvalid_listing_deep2ByString() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_deep2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + RootLoader.loadDocument(yaml, url.toString()); + } + + @org.junit.Test + public void testvalid_listing_deep2ByPath() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_deep2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + RootLoader.loadDocument(resPath); + } + + @org.junit.Test + public void testvalid_listing_deep2ByMap() throws Exception { + java.net.URL url = getClass().getResource("valid_listing_deep2.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); + java.util.Map doc; + doc = (java.util.Map) YamlUtils.mapFromString(yaml); + RootLoader.loadDocument(doc, url.toString()); + } +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/PackedWorkflowClassTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/PackedWorkflowClassTest.java new file mode 100644 index 00000000..eef899cb --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/PackedWorkflowClassTest.java @@ -0,0 +1,41 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.net.URISyntaxException; +import java.nio.file.Paths; +import java.util.List; +import org.junit.Assert; +import org.junit.Test; +import org.commonwl.cwlsdk.cwl1_2.Process; +import org.commonwl.cwlsdk.cwl1_2.Workflow; +import org.commonwl.cwlsdk.cwl1_2.WorkflowStep; +import org.commonwl.cwlsdk.cwl1_2.WorkflowStepInput; + +public class PackedWorkflowClassTest { + List doc; + + @SuppressWarnings("unchecked") + public PackedWorkflowClassTest() throws URISyntaxException { + super(); + this.doc = + (List) + RootLoader.loadDocument( + Paths.get(getClass().getResource("valid_scatter-wf4.cwl").toURI())); + } + + @Test + public void className() { + Workflow workflow = (Workflow) doc.get(1); + Assert.assertEquals("WorkflowImpl", workflow.getClass().getSimpleName()); + } + + @Test + public void workflowStepInputSources() { + Workflow workflow = (Workflow) doc.get(1); + String workflow_id = workflow.getId().get(); + WorkflowStep step1 = (WorkflowStep) workflow.getSteps().get(0); + List inputs = step1.getIn(); + WorkflowStepInput step1_input1 = (WorkflowStepInput) inputs.get(0); + Assert.assertEquals(workflow_id + "/step1/echo_in1", step1_input1.getId().get()); + Assert.assertEquals(workflow_id + "/inp1", step1_input1.getSource()); + } +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/RequirementsClassTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/RequirementsClassTest.java new file mode 100644 index 00000000..9d1b40e7 --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/RequirementsClassTest.java @@ -0,0 +1,53 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.net.URISyntaxException; +import org.junit.Assert; +import org.junit.Test; +import org.commonwl.cwlsdk.cwl1_2.CWLVersion; +import org.commonwl.cwlsdk.cwl1_2.InlineJavascriptRequirement; +import org.commonwl.cwlsdk.cwl1_2.Process; + +public class RequirementsClassTest { + Process doc; + + public RequirementsClassTest() throws URISyntaxException { + super(); + this.doc = + (Process) + RootLoader.loadDocument( + java.nio.file.Paths.get( + getClass().getResource("valid_writable-dir-docker.cwl").toURI())); + } + + @Test + public void className() { + Assert.assertEquals("CommandLineToolImpl", doc.getClass().getSimpleName()); + } + + @Test + public void version() { + java.util.Optional version = doc.getCwlVersion(); + Assert.assertTrue(version.isPresent()); + Assert.assertEquals(CWLVersion.V1_2, version.get()); + } + + @Test + public void hints() { + java.util.Optional> hints = doc.getHints(); + Assert.assertTrue(hints.isPresent()); + java.util.List hintList = hints.get(); + Assert.assertEquals(1, hintList.size()); + } + + @Test + public void reqs() { + java.util.Optional> reqs = doc.getRequirements(); + Assert.assertTrue(reqs.isPresent()); + java.util.List reqList = reqs.get(); + Assert.assertEquals(2, reqList.size()); + InlineJavascriptRequirement reqOne = (InlineJavascriptRequirement) reqList.get(0); + Assert.assertEquals("InlineJavascriptRequirementImpl", reqOne.getClass().getSimpleName()); + Assert.assertNotEquals( + "InlineJavascriptRequirementImpl", reqList.get(1).getClass().getSimpleName()); + } +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/SchemaDefTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/SchemaDefTest.java new file mode 100644 index 00000000..14fc18bc --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/SchemaDefTest.java @@ -0,0 +1,42 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.util.List; +import org.junit.Assert; +import org.commonwl.cwlsdk.cwl1_2.InputRecordSchema; +import org.commonwl.cwlsdk.cwl1_2.Process; +import org.commonwl.cwlsdk.cwl1_2.SchemaDefRequirement; + +public class SchemaDefTest { + + @org.junit.Test + public void testvalid_anon_enum_inside_array_inside_schemadef() throws Exception { + java.net.URL url = getClass().getResource("valid_anon_enum_inside_array_inside_schemadef.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + Process doc = (Process) RootLoader.loadDocument(resPath); + java.util.Optional> reqs = doc.getRequirements(); + Assert.assertTrue(reqs.isPresent()); + java.util.List reqList = reqs.get(); + Assert.assertEquals(reqList.size(), 1); + SchemaDefRequirement schemaReq = (SchemaDefRequirement) reqList.get(0); + List schemaTypes = schemaReq.getTypes(); + for (Object schemaType : schemaTypes) { + Assert.assertTrue(schemaType instanceof InputRecordSchema); + } + } + + @org.junit.Test + public void testvalid_record_sd_secondaryFiles() throws Exception { + java.net.URL url = getClass().getResource("valid_record-sd-secondaryFiles.cwl"); + java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); + Process doc = (Process) RootLoader.loadDocument(resPath); + java.util.Optional> reqs = doc.getRequirements(); + Assert.assertTrue(reqs.isPresent()); + java.util.List reqList = reqs.get(); + Assert.assertEquals(reqList.size(), 1); + SchemaDefRequirement schemaReq = (SchemaDefRequirement) reqList.get(0); + List schemaTypes = schemaReq.getTypes(); + for (Object schemaType : schemaTypes) { + Assert.assertTrue(schemaType instanceof InputRecordSchema); + } + } +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/SecondaryFilesTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/SecondaryFilesTest.java new file mode 100644 index 00000000..71a53283 --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/SecondaryFilesTest.java @@ -0,0 +1,47 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.net.URISyntaxException; +import java.nio.file.Paths; +import java.util.List; +import org.junit.Assert; +import org.junit.Test; +import org.commonwl.cwlsdk.cwl1_2.Process; +import org.commonwl.cwlsdk.cwl1_2.SecondaryFileSchema; +import org.commonwl.cwlsdk.cwl1_2.Workflow; +import org.commonwl.cwlsdk.cwl1_2.WorkflowInputParameter; + +public class SecondaryFilesTest { + List doc; + + @SuppressWarnings("unchecked") + public SecondaryFilesTest() throws URISyntaxException { + super(); + this.doc = + (List) + RootLoader.loadDocument(Paths.get(getClass().getResource("525.cwl").toURI())); + } + + @SuppressWarnings("unchecked") + @Test + public void workflowInputSecFiles() { + Workflow workflow = (Workflow) doc.get(0); + String workflow_id = workflow.getId().get(); + List inputs = workflow.getInputs(); + WorkflowInputParameter wf_file_input = (WorkflowInputParameter) inputs.get(1); + Assert.assertEquals(workflow_id + "/wf_file_input", wf_file_input.getId().get()); + List sec_files_l1 = + (List) wf_file_input.getSecondaryFiles(); + Assert.assertEquals(1, sec_files_l1.size()); + SecondaryFileSchema sec_files1 = sec_files_l1.get(0); + Assert.assertEquals(".also", sec_files1.getPattern()); + Assert.assertEquals(true, sec_files1.getRequired()); + WorkflowInputParameter wf_file_input_array = (WorkflowInputParameter) inputs.get(2); + Assert.assertEquals(workflow_id + "/wf_file_input_array", wf_file_input_array.getId().get()); + List sec_files_l2 = + (List) wf_file_input_array.getSecondaryFiles(); + Assert.assertEquals(1, sec_files_l2.size()); + SecondaryFileSchema sec_files2 = sec_files_l2.get(0); + Assert.assertEquals(".also", sec_files2.getPattern()); + Assert.assertEquals(true, sec_files2.getRequired()); + } +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/ShortnameTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/ShortnameTest.java new file mode 100644 index 00000000..4a2e5081 --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/ShortnameTest.java @@ -0,0 +1,24 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import org.junit.Assert; +import org.junit.Test; + +public class ShortnameTest { + @Test + public void testShortname() { + Assert.assertEquals(Uris.shortname( + "file:/Users/jdidion/projects/cwlScala/target/test-classes/CommandLineTools/conformance/#anon_enum_inside_array_inside_schemadef.cwl/first/user_type_2/species/homo_sapiens"), + "homo_sapiens"); + Assert.assertEquals(Uris.shortname( + "file:///home/michael/cwljava/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_anon_enum_inside_array_inside_schemadef.cwl#vcf2maf_params/ncbi_build/GRCh37"), + "GRCh37"); + // Below are from https://w3id.org/cwl/v1.2/SchemaSalad.html#Short_names + Assert.assertEquals(Uris.shortname("http://example.com/foo"), "foo"); + Assert.assertEquals(Uris.shortname("http://example.com/#bar"), "bar"); + Assert.assertEquals(Uris.shortname("http://example.com/foo/bar"), "bar"); + Assert.assertEquals(Uris.shortname("http://example.com/foo#bar"), "bar"); + Assert.assertEquals(Uris.shortname("http://example.com/#foo/bar"), "bar"); + Assert.assertEquals(Uris.shortname("http://example.com/foo#bar/baz"), "baz"); + } + +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/WorkflowClassTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/WorkflowClassTest.java new file mode 100644 index 00000000..765d7dbd --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/WorkflowClassTest.java @@ -0,0 +1,32 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.net.URISyntaxException; +import org.junit.Assert; +import org.junit.Test; +import org.commonwl.cwlsdk.cwl1_2.CWLVersion; +import org.commonwl.cwlsdk.cwl1_2.Process; + +public class WorkflowClassTest { + Process doc; + + public WorkflowClassTest() throws URISyntaxException { + super(); + this.doc = + (Process) + RootLoader.loadDocument( + java.nio.file.Paths.get( + getClass().getResource("valid_count-lines1-wf.cwl").toURI())); + } + + @Test + public void className() { + Assert.assertEquals("WorkflowImpl", doc.getClass().getSimpleName()); + } + + @Test + public void version() { + java.util.Optional version = doc.getCwlVersion(); + Assert.assertTrue(version.isPresent()); + Assert.assertEquals(CWLVersion.V1_2, version.get()); + } +} diff --git a/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/YamlUtilsTest.java b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/YamlUtilsTest.java new file mode 100644 index 00000000..e79469ca --- /dev/null +++ b/src/test/java/org/commonwl/cwlsdk/cwl1_2/utils/YamlUtilsTest.java @@ -0,0 +1,15 @@ +package org.commonwl.cwlsdk.cwl1_2.utils; + +import java.util.Map; +import org.junit.Assert; +import org.junit.Test; + +public class YamlUtilsTest { + @Test + public void testSimpleLoad() { + final String yamlStr = "moo: cow\nbark: dog\n"; + final Map loaded = YamlUtils.mapFromString(yamlStr); + Assert.assertEquals(loaded.get("moo"), "cow"); + Assert.assertEquals(loaded.get("bark"), "dog"); + } +} diff --git a/src/test/java/org/w3id/cwl/cwl1_1/utils/AnonymousRecordTest.java b/src/test/java/org/w3id/cwl/cwl1_1/utils/AnonymousRecordTest.java deleted file mode 100644 index ed9e34de..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_1/utils/AnonymousRecordTest.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -public class AnonymousRecordTest { - - @org.junit.Test - public void test_record_with_anonymous_type_record() throws Exception { - java.net.URL url = getClass().getResource("record-in-format.cwl.json"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } -} diff --git a/src/test/java/org/w3id/cwl/cwl1_1/utils/DefaultFetcherTest.java b/src/test/java/org/w3id/cwl/cwl1_1/utils/DefaultFetcherTest.java deleted file mode 100644 index ce7edd23..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_1/utils/DefaultFetcherTest.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import org.junit.Assert; -import org.junit.Test; - -public class DefaultFetcherTest { - @Test - public void testUnderscoreJoin() { - final DefaultFetcher fetcher = new DefaultFetcher(); - Assert.assertEquals(fetcher.urlJoin("http://googl.com/", "_:/moo"), "_:/moo"); - } - - @Test - public void testUnixJoin() { - final DefaultFetcher fetcher = new DefaultFetcher(); - String url; - - url = fetcher.urlJoin("file:///home/fred/foo.cwl", "soup.cwl"); - Assert.assertEquals(url, "file:///home/fred/soup.cwl"); - - url = fetcher.urlJoin("file:///home/fred/foo.cwl", "../alice/soup.cwl"); - Assert.assertEquals(url, "file:///home/alice/soup.cwl"); - // relative from root - url = fetcher.urlJoin("file:///home/fred/foo.cwl", "/baz/soup.cwl"); - Assert.assertEquals(url, "file:///baz/soup.cwl"); - - url = fetcher.urlJoin("file:///home/fred/foo.cwl", "http://example.com/bar/soup.cwl"); - Assert.assertEquals(url, "http://example.com/bar/soup.cwl"); - - url = fetcher.urlJoin("http://example.com/fred/foo.cwl", "soup.cwl"); - Assert.assertEquals(url, "http://example.com/fred/soup.cwl"); - - // Root-relative -- here relative to http host, not file:/// - url = fetcher.urlJoin("http://example.com/fred/foo.cwl", "/bar/soup.cwl"); - Assert.assertEquals(url, "http://example.com/bar/soup.cwl"); - } -} diff --git a/src/test/java/org/w3id/cwl/cwl1_1/utils/ExamplesTest.java b/src/test/java/org/w3id/cwl/cwl1_1/utils/ExamplesTest.java deleted file mode 100644 index af988baa..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_1/utils/ExamplesTest.java +++ /dev/null @@ -1,5429 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -public class ExamplesTest { - - @org.junit.Test - public void testvalid_stage_unprovided_fileByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stage-unprovided-file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stage_unprovided_fileByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stage-unprovided-file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stage_unprovided_fileByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stage-unprovided-file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_linkfileByString() throws Exception { - java.net.URL url = getClass().getResource("valid_linkfile.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_linkfileByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_linkfile.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_linkfileByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_linkfile.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wc_tool_shortcutByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wc-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wc_tool_shortcutByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wc-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wc_tool_shortcutByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wc-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_output_arrays_int_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_output-arrays-int-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_output_arrays_int_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_output-arrays-int-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_output_arrays_int_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_output-arrays-int-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat3_from_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat3_from_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat3_from_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_pass_unconnectedByString() throws Exception { - java.net.URL url = getClass().getResource("valid_pass-unconnected.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_pass_unconnectedByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_pass-unconnected.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_pass_unconnectedByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_pass-unconnected.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_output_arrays_intByString() throws Exception { - java.net.URL url = getClass().getResource("valid_output-arrays-int.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_output_arrays_intByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_output-arrays-int.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_output_arrays_intByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_output-arrays-int.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines7_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines7-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines7_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines7-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines7_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines7-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_symlink_legalByString() throws Exception { - java.net.URL url = getClass().getResource("valid_symlink-legal.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_symlink_legalByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_symlink-legal.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_symlink_legalByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_symlink-legal.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_any_type_compatByString() throws Exception { - java.net.URL url = getClass().getResource("valid_any-type-compat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_any_type_compatByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_any-type-compat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_any_type_compatByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_any-type-compat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_docker_output_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_docker-output-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_docker_output_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_docker-output-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_docker_output_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_docker-output-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_output_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-output-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_output_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-output-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_output_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-output-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_valuefrom_wf3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_outputByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_outputByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_outputByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wf_loadContents2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wf_loadContents2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wf_loadContents2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_timelimit2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_timelimit2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_timelimit2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_anon_enum_inside_array_inside_schemadefByString() throws Exception { - java.net.URL url = getClass().getResource("valid_anon_enum_inside_array_inside_schemadef.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_anon_enum_inside_array_inside_schemadefByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_anon_enum_inside_array_inside_schemadef.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_anon_enum_inside_array_inside_schemadefByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_anon_enum_inside_array_inside_schemadef.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_imported_hintByString() throws Exception { - java.net.URL url = getClass().getResource("valid_imported-hint.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_imported_hintByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_imported-hint.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_imported_hintByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_imported-hint.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_timelimit3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_timelimit3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_timelimit3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wf_loadContents4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wf_loadContents4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wf_loadContents4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_docker_array_secondaryfilesByString() throws Exception { - java.net.URL url = getClass().getResource("valid_docker-array-secondaryfiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_docker_array_secondaryfilesByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_docker-array-secondaryfiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_docker_array_secondaryfilesByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_docker-array-secondaryfiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wc2_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wc2-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wc2_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wc2-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wc2_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wc2-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stderrByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stderr.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stderrByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stderr.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stderrByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stderr.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wf_loadContents3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wf_loadContents3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wf_loadContents3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_schemadef_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_schemadef-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_schemadef_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_schemadef-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_schemadef_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_schemadef-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stderr_mediumcutByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stderr-mediumcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stderr_mediumcutByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stderr-mediumcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stderr_mediumcutByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stderr-mediumcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwdr_entryByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwdr-entry.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwdr_entryByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwdr-entry.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwdr_entryByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwdr-entry.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines17_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines17-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines17_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines17-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines17_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines17-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_updatedir_inplaceByString() throws Exception { - java.net.URL url = getClass().getResource("valid_updatedir_inplace.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_updatedir_inplaceByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_updatedir_inplace.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_updatedir_inplaceByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_updatedir_inplace.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_sum_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_sum-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_sum_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_sum-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_sum_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_sum-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines2_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines2_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines2_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines14_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines14-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines14_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines14-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines14_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines14-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_env_wf3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_env-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_env_wf3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_env-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_env_wf3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_env-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines6_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines6-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines6_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines6-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines6_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines6-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_vf_concatByString() throws Exception { - java.net.URL url = getClass().getResource("valid_vf-concat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_vf_concatByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_vf-concat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_vf_concatByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_vf-concat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_listing_deep1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_deep1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_listing_deep1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_deep1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_listing_deep1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_deep1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_js_expr_req_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_js-expr-req-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_js_expr_req_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_js-expr-req-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_js_expr_req_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_js-expr-req-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_valuefrom_wf5ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf5ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf5ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_recursive_input_directoryByString() throws Exception { - java.net.URL url = getClass().getResource("valid_recursive-input-directory.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_recursive_input_directoryByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_recursive-input-directory.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_recursive_input_directoryByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_recursive-input-directory.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines9_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines9-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines9_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines9-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines9_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines9-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_formattest3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_formattest3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_formattest3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_formattest3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_formattest3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_formattest3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat3_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat3_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat3_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_writable_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_writable-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_writable_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_writable-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_writable_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_writable-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_null_expression2_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_null-expression2-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_null_expression2_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_null-expression2-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_null_expression2_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_null-expression2-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_no_outputs_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_no-outputs-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_no_outputs_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_no-outputs-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_no_outputs_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_no-outputs-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines3_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines3_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines3_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_valuefrom_wf4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines11_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines11_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines11_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwdr_with_nested_dirsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwdr_with_nested_dirs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwdr_with_nested_dirsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwdr_with_nested_dirs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwdr_with_nested_dirsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwdr_with_nested_dirs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines1_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines1-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines1_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines1-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines1_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines1-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_echo_tool_defaultByString() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_echo_tool_defaultByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_echo_tool_defaultByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_glob_path_errorByString() throws Exception { - java.net.URL url = getClass().getResource("valid_glob-path-error.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_glob_path_errorByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_glob-path-error.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_glob_path_errorByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_glob-path-error.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_fail_unspecified_inputByString() throws Exception { - java.net.URL url = getClass().getResource("valid_fail-unspecified-input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_fail_unspecified_inputByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_fail-unspecified-input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_fail_unspecified_inputByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_fail-unspecified-input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_inline_jsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_inline-js.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_inline_jsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_inline-js.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_inline_jsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_inline-js.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines16_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines16-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines16_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines16-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines16_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines16-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wc_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wc-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wc_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wc-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wc_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wc-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_steplevel_resreqByString() throws Exception { - java.net.URL url = getClass().getResource("valid_steplevel-resreq.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_steplevel_resreqByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_steplevel-resreq.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_steplevel_resreqByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_steplevel-resreq.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_io_int_default_tool_and_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-default-tool-and-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_io_int_default_tool_and_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-default-tool-and-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_io_int_default_tool_and_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-default-tool-and-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_nested_arrayByString() throws Exception { - java.net.URL url = getClass().getResource("valid_nested-array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_nested_arrayByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_nested-array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_nested_arrayByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_nested-array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_no_inputs_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_no-inputs-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_no_inputs_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_no-inputs-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_no_inputs_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_no-inputs-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stderr_shortcutByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stderr-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stderr_shortcutByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stderr-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stderr_shortcutByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stderr-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_in_secondaryFiles_missing_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-missing-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_in_secondaryFiles_missing_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-missing-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_in_secondaryFiles_missing_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-missing-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_networkaccess2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_networkaccess2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_networkaccess2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_networkaccess2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_networkaccess2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_networkaccess2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_mkdirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_mkdir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_mkdirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_mkdir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_mkdirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_mkdir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_valueFrom_constantByString() throws Exception { - java.net.URL url = getClass().getResource("valid_valueFrom-constant.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_valueFrom_constantByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_valueFrom-constant.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_valueFrom_constantByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_valueFrom-constant.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_test_cwl_out2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_test-cwl-out2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_test_cwl_out2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_test-cwl-out2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_test_cwl_out2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_test-cwl-out2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_metadataByString() throws Exception { - java.net.URL url = getClass().getResource("valid_metadata.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_metadataByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_metadata.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_metadataByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_metadata.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines9_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines9-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines9_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines9-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines9_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines9-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_io_any_wf_1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_io-any-wf-1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_io_any_wf_1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_io-any-wf-1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_io_any_wf_1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_io-any-wf-1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_io_file_default_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_io-file-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_io_file_default_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_io-file-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_io_file_default_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_io-file-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_empty_array_inputByString() throws Exception { - java.net.URL url = getClass().getResource("valid_empty-array-input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_empty_array_inputByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_empty-array-input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_empty_array_inputByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_empty-array-input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_inpdir_update_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_inpdir_update_wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_inpdir_update_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_inpdir_update_wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_inpdir_update_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_inpdir_update_wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wc3_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wc3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wc3_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wc3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wc3_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wc3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dir7ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dir7.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dir7ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dir7.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dir7ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dir7.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_binding_testByString() throws Exception { - java.net.URL url = getClass().getResource("valid_binding-test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_binding_testByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_binding-test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_binding_testByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_binding-test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines5_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines5-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines5_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines5-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines5_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines5-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_networkaccessByString() throws Exception { - java.net.URL url = getClass().getResource("valid_networkaccess.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_networkaccessByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_networkaccess.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_networkaccessByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_networkaccess.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat3_tool_dockerByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool-docker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat3_tool_dockerByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool-docker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat3_tool_dockerByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool-docker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_optional_outputByString() throws Exception { - java.net.URL url = getClass().getResource("valid_optional-output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_optional_outputByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_optional-output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_optional_outputByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_optional-output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines8_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines8-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines8_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines8-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines8_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines8-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_valuefrom_wf2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_touchByString() throws Exception { - java.net.URL url = getClass().getResource("valid_touch.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_touchByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_touch.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_touchByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_touch.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat1_testcliByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat1-testcli.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat1_testcliByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat1-testcli.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat1_testcliByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat1-testcli.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dir2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dir2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dir2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dir2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dir2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dir2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_io_any_1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_io-any-1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_io_any_1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_io-any-1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_io_any_1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_io-any-1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_revtoolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_revtool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_revtoolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_revtool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_revtoolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_revtool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_bool_empty_inputbindingByString() throws Exception { - java.net.URL url = getClass().getResource("valid_bool-empty-inputbinding.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_bool_empty_inputbindingByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_bool-empty-inputbinding.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_bool_empty_inputbindingByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_bool-empty-inputbinding.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_env_tool1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_env_tool1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_env_tool1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_timelimit3_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_timelimit3_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_timelimit3_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_anon_enum_inside_arrayByString() throws Exception { - java.net.URL url = getClass().getResource("valid_anon_enum_inside_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_anon_enum_inside_arrayByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_anon_enum_inside_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_anon_enum_inside_arrayByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_anon_enum_inside_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_no_outputs_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_no-outputs-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_no_outputs_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_no-outputs-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_no_outputs_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_no-outputs-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_echo_wf_defaultByString() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-wf-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_echo_wf_defaultByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-wf-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_echo_wf_defaultByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-wf-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_io_int_optional_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-optional-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_io_int_optional_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-optional-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_io_int_optional_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-optional-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat3_tool_shortcutByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat3_tool_shortcutByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat3_tool_shortcutByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines11_extra_step_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines11_extra_step_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines11_extra_step_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_sum_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_sum-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_sum_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_sum-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_sum_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_sum-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stage_file_arrayByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stage_file_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stage_file_arrayByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stage_file_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stage_file_arrayByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stage_file_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_initialworkdir_glob_fullpathByString() throws Exception { - java.net.URL url = getClass().getResource("valid_initialworkdir-glob-fullpath.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_initialworkdir_glob_fullpathByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_initialworkdir-glob-fullpath.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_initialworkdir_glob_fullpathByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_initialworkdir-glob-fullpath.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines11_null_step_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines11_null_step_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines11_null_step_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_echo_position_exprByString() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-position-expr.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_echo_position_exprByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-position-expr.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_echo_position_exprByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-position-expr.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_wf4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_wf4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_wf4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_env_wf2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_env-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_env_wf2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_env-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_env_wf2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_env-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_no_inputs_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_no-inputs-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_no_inputs_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_no-inputs-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_no_inputs_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_no-inputs-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_wf2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_wf2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_wf2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_glob_expr_listByString() throws Exception { - java.net.URL url = getClass().getResource("valid_glob-expr-list.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_glob_expr_listByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_glob-expr-list.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_glob_expr_listByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_glob-expr-list.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_runtime_paths_distinctByString() throws Exception { - java.net.URL url = getClass().getResource("valid_runtime-paths-distinct.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_runtime_paths_distinctByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_runtime-paths-distinct.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_runtime_paths_distinctByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_runtime-paths-distinct.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_valuefrom_wf1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_valuefrom_inputs_wf1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-inputs-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_inputs_wf1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-inputs-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_inputs_wf1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-inputs-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines10_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines10-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines10_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines10-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines10_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines10-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_glob_directoryByString() throws Exception { - java.net.URL url = getClass().getResource("valid_glob_directory.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_glob_directoryByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_glob_directory.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_glob_directoryByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_glob_directory.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_import_schema_defByString() throws Exception { - java.net.URL url = getClass().getResource("valid_import_schema-def.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_import_schema_defByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_import_schema-def.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_import_schema_defByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_import_schema-def.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_docker_run_cmdByString() throws Exception { - java.net.URL url = getClass().getResource("valid_docker-run-cmd.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_docker_run_cmdByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_docker-run-cmd.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_docker_run_cmdByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_docker-run-cmd.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_glob_testByString() throws Exception { - java.net.URL url = getClass().getResource("valid_glob_test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_glob_testByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_glob_test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_glob_testByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_glob_test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_basename_fields_testByString() throws Exception { - java.net.URL url = getClass().getResource("valid_basename-fields-test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_basename_fields_testByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_basename-fields-test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_basename_fields_testByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_basename-fields-test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_echo_tool_packed2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool-packed2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_echo_tool_packed2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool-packed2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_echo_tool_packed2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool-packed2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wf_loadContentsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wf_loadContentsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wf_loadContentsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_in_secondaryFilesByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_in_secondaryFilesByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_in_secondaryFilesByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_writable_dir_dockerByString() throws Exception { - java.net.URL url = getClass().getResource("valid_writable-dir-docker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_writable_dir_dockerByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_writable-dir-docker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_writable_dir_dockerByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_writable-dir-docker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_env_tool2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_env_tool2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_env_tool2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_searchByString() throws Exception { - java.net.URL url = getClass().getResource("valid_search.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_searchByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_search.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_searchByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_search.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_echo_tool_packedByString() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool-packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_echo_tool_packedByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool-packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_echo_tool_packedByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool-packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines11_null_step_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines11_null_step_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines11_null_step_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines1_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines1-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines1_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines1-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines1_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines1-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stage_arrayByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stage-array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stage_arrayByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stage-array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stage_arrayByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stage-array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_envvar3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_envvar3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_envvar3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_envvar3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_envvar3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_envvar3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_renameByString() throws Exception { - java.net.URL url = getClass().getResource("valid_rename.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_renameByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_rename.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_renameByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_rename.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_env_wf1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_env-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_env_wf1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_env-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_env_wf1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_env-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines12_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines12-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines12_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines12-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines12_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines12-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_io_union_input_default_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_io-union-input-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_io_union_input_default_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_io-union-input-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_io_union_input_default_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_io-union-input-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines13_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines13-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines13_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines13-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines13_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines13-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_listing_shallow1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_shallow1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_listing_shallow1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_shallow1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_listing_shallow1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_shallow1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_valuefrom_wf6ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf6.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf6ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf6.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf6ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf6.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dynresreqByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dynresreqByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dynresreqByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat5_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat5-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat5_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat5-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat5_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat5-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_timelimitByString() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_timelimitByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_timelimitByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_listing_none1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_none1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_listing_none1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_none1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_listing_none1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_none1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_listing_none2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_none2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_listing_none2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_none2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_listing_none2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_none2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines11_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines11_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines11_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stagefileByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stagefile.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stagefileByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stagefile.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stagefileByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stagefile.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stage_file_array_basename_and_entrynameByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stage_file_array_basename_and_entryname.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stage_file_array_basename_and_entrynameByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stage_file_array_basename_and_entryname.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stage_file_array_basename_and_entrynameByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stage_file_array_basename_and_entryname.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_shellchar2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_shellchar2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_shellchar2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_shellchar2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_shellchar2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_shellchar2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_out_secondaryFilesByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-out-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_out_secondaryFilesByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-out-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_out_secondaryFilesByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-out-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_inp_update_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_inp_update_wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_inp_update_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_inp_update_wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_inp_update_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_inp_update_wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_bwa_mem_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_bwa-mem-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_bwa_mem_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_bwa-mem-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_bwa_mem_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_bwa-mem-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat3_tool_mediumcutByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool-mediumcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat3_tool_mediumcutByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool-mediumcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat3_tool_mediumcutByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool-mediumcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_env_tool3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_env_tool3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_env_tool3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_timelimit2_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_timelimit2_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_timelimit2_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_revsort_packedByString() throws Exception { - java.net.URL url = getClass().getResource("valid_revsort-packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_revsort_packedByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_revsort-packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_revsort_packedByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_revsort-packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_null_definedByString() throws Exception { - java.net.URL url = getClass().getResource("valid_null-defined.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_null_definedByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_null-defined.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_null_definedByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_null-defined.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_listing_none3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_none3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_listing_none3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_none3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_listing_none3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_none3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_wf3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_wf3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_wf3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_io_int_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_io_int_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_io_int_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_file_literal_exByString() throws Exception { - java.net.URL url = getClass().getResource("valid_file-literal-ex.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_file_literal_exByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_file-literal-ex.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_file_literal_exByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_file-literal-ex.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_revsortByString() throws Exception { - java.net.URL url = getClass().getResource("valid_revsort.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_revsortByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_revsort.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_revsortByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_revsort.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_tmap_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_tmap-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_tmap_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_tmap-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_tmap_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_tmap-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_env_tool4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_env_tool4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_env_tool4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stage_array_dirsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stage-array-dirs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stage_array_dirsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stage-array-dirs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stage_array_dirsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stage-array-dirs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_formattestByString() throws Exception { - java.net.URL url = getClass().getResource("valid_formattest.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_formattestByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_formattest.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_formattestByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_formattest.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dynresreq_workflow_stepdefaultByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow-stepdefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dynresreq_workflow_stepdefaultByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow-stepdefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dynresreq_workflow_stepdefaultByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow-stepdefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_size_expression_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_size-expression-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_size_expression_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_size-expression-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_size_expression_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_size-expression-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_out_formatByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-out-format.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_out_formatByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-out-format.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_out_formatByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-out-format.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wc4_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wc4-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wc4_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wc4-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wc4_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wc4-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_step_valuefrom5_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom5-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_step_valuefrom5_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom5-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_step_valuefrom5_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom5-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_echo_file_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-file-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_echo_file_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-file-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_echo_file_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-file-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_step_valuefrom_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_step_valuefrom_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_step_valuefrom_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_output_arrays_file_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_output-arrays-file-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_output_arrays_file_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_output-arrays-file-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_output_arrays_file_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_output-arrays-file-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat_from_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat_from_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat_from_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_fail_unconnectedByString() throws Exception { - java.net.URL url = getClass().getResource("valid_fail-unconnected.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_fail_unconnectedByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_fail-unconnected.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_fail_unconnectedByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_fail-unconnected.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_symlink_illegalByString() throws Exception { - java.net.URL url = getClass().getResource("valid_symlink-illegal.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_symlink_illegalByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_symlink-illegal.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_symlink_illegalByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_symlink-illegal.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_timelimit4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_timelimit4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_timelimit4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_echo_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_echo_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_echo_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_step_valuefrom2_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_step_valuefrom2_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_step_valuefrom2_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_valueFrom_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valueFrom-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_valueFrom_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valueFrom-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_valueFrom_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valueFrom-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_initialworkdirrequirement_docker_outByString() throws Exception { - java.net.URL url = getClass().getResource("valid_initialworkdirrequirement-docker-out.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_initialworkdirrequirement_docker_outByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_initialworkdirrequirement-docker-out.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_initialworkdirrequirement_docker_outByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_initialworkdirrequirement-docker-out.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_sd_secondaryFilesByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-sd-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_sd_secondaryFilesByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-sd-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_sd_secondaryFilesByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-sd-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_formattest2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_formattest2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_formattest2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_formattest2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_formattest2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_formattest2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_listing_shallow2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_shallow2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_listing_shallow2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_shallow2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_listing_shallow2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_shallow2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_in_secondaryFiles_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_in_secondaryFiles_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_in_secondaryFiles_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_shellcharByString() throws Exception { - java.net.URL url = getClass().getResource("valid_shellchar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_shellcharByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_shellchar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_shellcharByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_shellchar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_step_valuefrom4_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom4-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_step_valuefrom4_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom4-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_step_valuefrom4_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom4-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_template_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_template-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_template_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_template-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_template_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_template-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_schemadef_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_schemadef-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_schemadef_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_schemadef-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_schemadef_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_schemadef-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dynresreq_workflowByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dynresreq_workflowByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dynresreq_workflowByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dir3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dir3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dir3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dir3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dir3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dir3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dynresreq_workflow_inputdefaultByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow-inputdefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dynresreq_workflow_inputdefaultByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow-inputdefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dynresreq_workflow_inputdefaultByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow-inputdefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_null_expression1_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_null-expression1-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_null_expression1_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_null-expression1-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_null_expression1_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_null-expression1-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_envvar2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_envvar2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_envvar2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_envvar2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_envvar2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_envvar2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_conflict_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_conflict-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_conflict_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_conflict-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_conflict_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_conflict-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dynresreq_workflow_tooldefaultByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow-tooldefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dynresreq_workflow_tooldefaultByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow-tooldefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dynresreq_workflow_tooldefaultByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow-tooldefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_test_cwl_outByString() throws Exception { - java.net.URL url = getClass().getResource("valid_test-cwl-out.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_test_cwl_outByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_test-cwl-out.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_test_cwl_outByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_test-cwl-out.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dynresreq_defaultByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dynresreq_defaultByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dynresreq_defaultByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_in_formatByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-format.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_in_formatByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-format.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_in_formatByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-format.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_exitcodeByString() throws Exception { - java.net.URL url = getClass().getResource("valid_exitcode.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_exitcodeByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_exitcode.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_exitcodeByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_exitcode.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_sorttoolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_sorttool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_sorttoolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_sorttool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_sorttoolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_sorttool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_import_schema_def_packedByString() throws Exception { - java.net.URL url = getClass().getResource("valid_import_schema-def_packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_import_schema_def_packedByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_import_schema-def_packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_import_schema_def_packedByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_import_schema-def_packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines4_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines4-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines4_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines4-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines4_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines4-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dir6ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dir6.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dir6ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dir6.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dir6ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dir6.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dynresreq_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dynresreq_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dynresreq_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_io_int_default_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_io_int_default_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_io_int_default_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines18_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines18-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines18_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines18-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines18_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines18-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dir4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dir4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dir4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dir4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dir4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dir4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat3_nodockerByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-nodocker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat3_nodockerByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-nodocker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat3_nodockerByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-nodocker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_params2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_params2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_params2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_params2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_params2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_params2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_envvarByString() throws Exception { - java.net.URL url = getClass().getResource("valid_envvar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_envvarByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_envvar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_envvarByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_envvar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines15_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines15-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines15_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines15-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines15_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines15-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines8_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines8-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines8_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines8-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines8_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines8-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_default_pathByString() throws Exception { - java.net.URL url = getClass().getResource("valid_default_path.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_default_pathByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_default_path.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_default_pathByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_default_path.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_io_file_or_filesByString() throws Exception { - java.net.URL url = getClass().getResource("valid_io-file-or-files.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_io_file_or_filesByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_io-file-or-files.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_io_file_or_filesByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_io-file-or-files.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_paramsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_params.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_paramsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_params.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_paramsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_params.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_initialwork_pathByString() throws Exception { - java.net.URL url = getClass().getResource("valid_initialwork-path.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_initialwork_pathByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_initialwork-path.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_initialwork_pathByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_initialwork-path.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_parseInt_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_parseInt-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_parseInt_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_parseInt-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_parseInt_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_parseInt-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_step_valuefrom3_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_step_valuefrom3_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_step_valuefrom3_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_namerootByString() throws Exception { - java.net.URL url = getClass().getResource("valid_nameroot.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_namerootByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_nameroot.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_namerootByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_nameroot.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_exit_successByString() throws Exception { - java.net.URL url = getClass().getResource("valid_exit-success.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_exit_successByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_exit-success.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_exit_successByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_exit-success.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stage_file_array_basenameByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stage_file_array_basename.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stage_file_array_basenameByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stage_file_array_basename.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stage_file_array_basenameByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stage_file_array_basename.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_wf1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_wf1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_wf1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat4_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat4-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat4_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat4-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat4_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat4-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_null_expression3_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_null-expression3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_null_expression3_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_null-expression3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_null_expression3_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_null-expression3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_timelimit5ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_timelimit5ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_timelimit5ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_optional_numerical_output_0ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_optional-numerical-output-0.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_optional_numerical_output_0ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_optional-numerical-output-0.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_optional_numerical_output_0ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_optional-numerical-output-0.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_updateval_inplaceByString() throws Exception { - java.net.URL url = getClass().getResource("valid_updateval_inplace.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_updateval_inplaceByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_updateval_inplace.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_updateval_inplaceByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_updateval_inplace.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines11_extra_step_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines11_extra_step_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines11_extra_step_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dir5ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dir5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dir5ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dir5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dir5ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dir5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_listing_deep2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_deep2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_listing_deep2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_deep2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_listing_deep2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_deep2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } -} diff --git a/src/test/java/org/w3id/cwl/cwl1_1/utils/PackedWorkflowClassTest.java b/src/test/java/org/w3id/cwl/cwl1_1/utils/PackedWorkflowClassTest.java deleted file mode 100644 index 89bffa2b..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_1/utils/PackedWorkflowClassTest.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.net.URISyntaxException; -import java.nio.file.Paths; -import java.util.List; -import org.junit.Assert; -import org.junit.Test; -import org.w3id.cwl.cwl1_1.Process; -import org.w3id.cwl.cwl1_1.Workflow; -import org.w3id.cwl.cwl1_1.WorkflowStep; -import org.w3id.cwl.cwl1_1.WorkflowStepInput; - -public class PackedWorkflowClassTest { - List doc; - - @SuppressWarnings("unchecked") - public PackedWorkflowClassTest() throws URISyntaxException { - super(); - this.doc = - (List) - RootLoader.loadDocument( - Paths.get(getClass().getResource("valid_scatter-wf4.cwl").toURI())); - } - - @Test - public void className() { - Workflow workflow = (Workflow) doc.get(1); - Assert.assertEquals("WorkflowImpl", workflow.getClass().getSimpleName()); - } - - @Test - public void workflowStepInputSources() { - Workflow workflow = (Workflow) doc.get(1); - String workflow_id = workflow.getId().get(); - WorkflowStep step1 = (WorkflowStep) workflow.getSteps().get(0); - List inputs = step1.getIn(); - WorkflowStepInput step1_input1 = (WorkflowStepInput) inputs.get(0); - Assert.assertEquals(workflow_id + "/step1/echo_in1", step1_input1.getId().get()); - Assert.assertEquals(workflow_id + "/inp1", step1_input1.getSource()); - } -} diff --git a/src/test/java/org/w3id/cwl/cwl1_1/utils/RequirementsClassTest.java b/src/test/java/org/w3id/cwl/cwl1_1/utils/RequirementsClassTest.java deleted file mode 100644 index bd0b4fda..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_1/utils/RequirementsClassTest.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.net.URISyntaxException; -import org.junit.Assert; -import org.junit.Test; -import org.w3id.cwl.cwl1_1.CWLVersion; -import org.w3id.cwl.cwl1_1.InlineJavascriptRequirement; -import org.w3id.cwl.cwl1_1.Process; - -public class RequirementsClassTest { - Process doc; - - public RequirementsClassTest() throws URISyntaxException { - super(); - this.doc = - (Process) - RootLoader.loadDocument( - java.nio.file.Paths.get( - getClass().getResource("valid_writable-dir-docker.cwl").toURI())); - } - - @Test - public void className() { - Assert.assertEquals("CommandLineToolImpl", doc.getClass().getSimpleName()); - } - - @Test - public void version() { - java.util.Optional version = doc.getCwlVersion(); - Assert.assertTrue(version.isPresent()); - Assert.assertEquals(CWLVersion.V1_1, version.get()); - } - - @Test - public void hints() { - java.util.Optional> hints = doc.getHints(); - Assert.assertTrue(hints.isPresent()); - java.util.List hintList = hints.get(); - Assert.assertEquals(1, hintList.size()); - } - - @Test - public void reqs() { - java.util.Optional> reqs = doc.getRequirements(); - Assert.assertTrue(reqs.isPresent()); - java.util.List reqList = reqs.get(); - Assert.assertEquals(2, reqList.size()); - InlineJavascriptRequirement reqOne = (InlineJavascriptRequirement) reqList.get(0); - Assert.assertEquals("InlineJavascriptRequirementImpl", reqOne.getClass().getSimpleName()); - Assert.assertNotEquals( - "InlineJavascriptRequirementImpl", reqList.get(1).getClass().getSimpleName()); - } -} diff --git a/src/test/java/org/w3id/cwl/cwl1_1/utils/SchemaDefTest.java b/src/test/java/org/w3id/cwl/cwl1_1/utils/SchemaDefTest.java deleted file mode 100644 index 75edfb50..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_1/utils/SchemaDefTest.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.util.List; -import org.junit.Assert; -import org.w3id.cwl.cwl1_1.InputRecordSchema; -import org.w3id.cwl.cwl1_1.Process; -import org.w3id.cwl.cwl1_1.SchemaDefRequirement; - -public class SchemaDefTest { - - @org.junit.Test - public void testvalid_anon_enum_inside_array_inside_schemadef() throws Exception { - java.net.URL url = getClass().getResource("valid_anon_enum_inside_array_inside_schemadef.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - Process doc = (Process) RootLoader.loadDocument(resPath); - java.util.Optional> reqs = doc.getRequirements(); - Assert.assertTrue(reqs.isPresent()); - java.util.List reqList = reqs.get(); - Assert.assertEquals(reqList.size(), 1); - SchemaDefRequirement schemaReq = (SchemaDefRequirement) reqList.get(0); - List schemaTypes = schemaReq.getTypes(); - for (Object schemaType : schemaTypes) { - Assert.assertTrue(schemaType instanceof InputRecordSchema); - } - } - - @org.junit.Test - public void testvalid_record_sd_secondaryFiles() throws Exception { - java.net.URL url = getClass().getResource("valid_record-sd-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - Process doc = (Process) RootLoader.loadDocument(resPath); - java.util.Optional> reqs = doc.getRequirements(); - Assert.assertTrue(reqs.isPresent()); - java.util.List reqList = reqs.get(); - Assert.assertEquals(reqList.size(), 1); - SchemaDefRequirement schemaReq = (SchemaDefRequirement) reqList.get(0); - List schemaTypes = schemaReq.getTypes(); - for (Object schemaType : schemaTypes) { - Assert.assertTrue(schemaType instanceof InputRecordSchema); - } - } -} diff --git a/src/test/java/org/w3id/cwl/cwl1_1/utils/SecondaryFilesTest.java b/src/test/java/org/w3id/cwl/cwl1_1/utils/SecondaryFilesTest.java deleted file mode 100644 index 444181aa..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_1/utils/SecondaryFilesTest.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.net.URISyntaxException; -import java.nio.file.Paths; -import java.util.List; -import org.junit.Assert; -import org.junit.Test; -import org.w3id.cwl.cwl1_1.Process; -import org.w3id.cwl.cwl1_1.SecondaryFileSchema; -import org.w3id.cwl.cwl1_1.Workflow; -import org.w3id.cwl.cwl1_1.WorkflowInputParameter; - -public class SecondaryFilesTest { - List doc; - - @SuppressWarnings("unchecked") - public SecondaryFilesTest() throws URISyntaxException { - super(); - this.doc = - (List) - RootLoader.loadDocument(Paths.get(getClass().getResource("525.cwl").toURI())); - } - - @SuppressWarnings("unchecked") - @Test - public void workflowInputSecFiles() { - Workflow workflow = (Workflow) doc.get(0); - String workflow_id = workflow.getId().get(); - List inputs = workflow.getInputs(); - WorkflowInputParameter wf_file_input = (WorkflowInputParameter) inputs.get(1); - Assert.assertEquals(workflow_id + "/wf_file_input", wf_file_input.getId().get()); - List sec_files_l1 = - (List) wf_file_input.getSecondaryFiles(); - Assert.assertEquals(1, sec_files_l1.size()); - SecondaryFileSchema sec_files1 = sec_files_l1.get(0); - Assert.assertEquals(".also", sec_files1.getPattern()); - Assert.assertEquals(true, sec_files1.getRequired()); - WorkflowInputParameter wf_file_input_array = (WorkflowInputParameter) inputs.get(2); - Assert.assertEquals(workflow_id + "/wf_file_input_array", wf_file_input_array.getId().get()); - List sec_files_l2 = - (List) wf_file_input_array.getSecondaryFiles(); - Assert.assertEquals(1, sec_files_l2.size()); - SecondaryFileSchema sec_files2 = sec_files_l2.get(0); - Assert.assertEquals(".also", sec_files2.getPattern()); - Assert.assertEquals(true, sec_files2.getRequired()); - } -} diff --git a/src/test/java/org/w3id/cwl/cwl1_1/utils/ShortnameTest.java b/src/test/java/org/w3id/cwl/cwl1_1/utils/ShortnameTest.java deleted file mode 100644 index 0941406e..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_1/utils/ShortnameTest.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import org.junit.Assert; -import org.junit.Test; - -public class ShortnameTest { - @Test - public void testShortname() { - Assert.assertEquals(Uris.shortname( - "file:/Users/jdidion/projects/cwlScala/target/test-classes/CommandLineTools/conformance/#anon_enum_inside_array_inside_schemadef.cwl/first/user_type_2/species/homo_sapiens"), - "homo_sapiens"); - Assert.assertEquals(Uris.shortname( - "file:///home/michael/cwljava/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_anon_enum_inside_array_inside_schemadef.cwl#vcf2maf_params/ncbi_build/GRCh37"), - "GRCh37"); - // Below are from https://w3id.org/cwl/v1.2/SchemaSalad.html#Short_names - Assert.assertEquals(Uris.shortname("http://example.com/foo"), "foo"); - Assert.assertEquals(Uris.shortname("http://example.com/#bar"), "bar"); - Assert.assertEquals(Uris.shortname("http://example.com/foo/bar"), "bar"); - Assert.assertEquals(Uris.shortname("http://example.com/foo#bar"), "bar"); - Assert.assertEquals(Uris.shortname("http://example.com/#foo/bar"), "bar"); - Assert.assertEquals(Uris.shortname("http://example.com/foo#bar/baz"), "baz"); - } - -} diff --git a/src/test/java/org/w3id/cwl/cwl1_1/utils/WorkflowClassTest.java b/src/test/java/org/w3id/cwl/cwl1_1/utils/WorkflowClassTest.java deleted file mode 100644 index dd990824..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_1/utils/WorkflowClassTest.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.net.URISyntaxException; -import org.junit.Assert; -import org.junit.Test; -import org.w3id.cwl.cwl1_1.CWLVersion; -import org.w3id.cwl.cwl1_1.Process; - -public class WorkflowClassTest { - Process doc; - - public WorkflowClassTest() throws URISyntaxException { - super(); - this.doc = - (Process) - RootLoader.loadDocument( - java.nio.file.Paths.get( - getClass().getResource("valid_count-lines1-wf.cwl").toURI())); - } - - @Test - public void className() { - Assert.assertEquals("WorkflowImpl", doc.getClass().getSimpleName()); - } - - @Test - public void version() { - java.util.Optional version = doc.getCwlVersion(); - Assert.assertTrue(version.isPresent()); - Assert.assertEquals(CWLVersion.V1_1, version.get()); - } -} diff --git a/src/test/java/org/w3id/cwl/cwl1_1/utils/YamlUtilsTest.java b/src/test/java/org/w3id/cwl/cwl1_1/utils/YamlUtilsTest.java deleted file mode 100644 index 9b902138..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_1/utils/YamlUtilsTest.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.w3id.cwl.cwl1_1.utils; - -import java.util.Map; -import org.junit.Assert; -import org.junit.Test; - -public class YamlUtilsTest { - @Test - public void testSimpleLoad() { - final String yamlStr = "moo: cow\nbark: dog\n"; - final Map loaded = YamlUtils.mapFromString(yamlStr); - Assert.assertEquals(loaded.get("moo"), "cow"); - Assert.assertEquals(loaded.get("bark"), "dog"); - } -} diff --git a/src/test/java/org/w3id/cwl/cwl1_2/utils/AnonymousRecordTest.java b/src/test/java/org/w3id/cwl/cwl1_2/utils/AnonymousRecordTest.java deleted file mode 100644 index a449b5b4..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_2/utils/AnonymousRecordTest.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -public class AnonymousRecordTest { - - @org.junit.Test - public void test_record_with_anonymous_type_record() throws Exception { - java.net.URL url = getClass().getResource("record-in-format.cwl.json"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } -} diff --git a/src/test/java/org/w3id/cwl/cwl1_2/utils/DefaultFetcherTest.java b/src/test/java/org/w3id/cwl/cwl1_2/utils/DefaultFetcherTest.java deleted file mode 100644 index ff2f6d5d..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_2/utils/DefaultFetcherTest.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import org.junit.Assert; -import org.junit.Test; - -public class DefaultFetcherTest { - @Test - public void testUnderscoreJoin() { - final DefaultFetcher fetcher = new DefaultFetcher(); - Assert.assertEquals(fetcher.urlJoin("http://googl.com/", "_:/moo"), "_:/moo"); - } - - @Test - public void testUnixJoin() { - final DefaultFetcher fetcher = new DefaultFetcher(); - String url; - - url = fetcher.urlJoin("file:///home/fred/foo.cwl", "soup.cwl"); - Assert.assertEquals(url, "file:///home/fred/soup.cwl"); - - url = fetcher.urlJoin("file:///home/fred/foo.cwl", "../alice/soup.cwl"); - Assert.assertEquals(url, "file:///home/alice/soup.cwl"); - // relative from root - url = fetcher.urlJoin("file:///home/fred/foo.cwl", "/baz/soup.cwl"); - Assert.assertEquals(url, "file:///baz/soup.cwl"); - - url = fetcher.urlJoin("file:///home/fred/foo.cwl", "http://example.com/bar/soup.cwl"); - Assert.assertEquals(url, "http://example.com/bar/soup.cwl"); - - url = fetcher.urlJoin("http://example.com/fred/foo.cwl", "soup.cwl"); - Assert.assertEquals(url, "http://example.com/fred/soup.cwl"); - - // Root-relative -- here relative to http host, not file:/// - url = fetcher.urlJoin("http://example.com/fred/foo.cwl", "/bar/soup.cwl"); - Assert.assertEquals(url, "http://example.com/bar/soup.cwl"); - } -} diff --git a/src/test/java/org/w3id/cwl/cwl1_2/utils/ExamplesTest.java b/src/test/java/org/w3id/cwl/cwl1_2/utils/ExamplesTest.java deleted file mode 100644 index f2fadc72..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_2/utils/ExamplesTest.java +++ /dev/null @@ -1,14573 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -public class ExamplesTest { - - @org.junit.Test - public void testvalid_stage_unprovided_fileByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stage-unprovided-file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stage_unprovided_fileByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stage-unprovided-file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stage_unprovided_fileByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stage-unprovided-file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_step_valuefrom3_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_step-valuefrom3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_step_valuefrom3_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_step-valuefrom3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_step_valuefrom3_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_step-valuefrom3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_stage_file_array_basenameByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stage_file_array_basename.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_stage_file_array_basenameByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stage_file_array_basename.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_stage_file_array_basenameByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stage_file_array_basename.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_record_in_secondaryFiles_missing_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-in-secondaryFiles-missing-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_record_in_secondaryFiles_missing_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-in-secondaryFiles-missing-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_record_in_secondaryFiles_missing_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-in-secondaryFiles-missing-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_linkfileByString() throws Exception { - java.net.URL url = getClass().getResource("valid_linkfile.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_linkfileByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_linkfile.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_linkfileByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_linkfile.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwd_fileobjs1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-fileobjs1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwd_fileobjs1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-fileobjs1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwd_fileobjs1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-fileobjs1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wc_tool_shortcutByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wc-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wc_tool_shortcutByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wc-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wc_tool_shortcutByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wc-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_outputevalByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record_outputeval.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_outputevalByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record_outputeval.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_outputevalByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record_outputeval.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_timelimit3_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_timelimit3_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_timelimit3_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_namerootByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_nameroot.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_namerootByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_nameroot.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_namerootByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_nameroot.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cat3_tool_dockerByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat3-tool-docker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cat3_tool_dockerByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat3-tool-docker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cat3_tool_dockerByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat3-tool-docker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_output_arrays_int_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_output-arrays-int-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_output_arrays_int_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_output-arrays-int-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_output_arrays_int_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_output-arrays-int-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_013_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-013_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_013_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-013_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_013_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-013_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines15_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines15-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines15_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines15-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines15_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines15-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat3_from_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat3_from_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat3_from_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_pass_unconnectedByString() throws Exception { - java.net.URL url = getClass().getResource("valid_pass-unconnected.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_pass_unconnectedByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_pass-unconnected.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_pass_unconnectedByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_pass-unconnected.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cat5_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat5-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cat5_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat5-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cat5_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat5-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_catByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_catByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_catByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_env_wf3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_env_wf3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_env_wf3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_output_arrays_intByString() throws Exception { - java.net.URL url = getClass().getResource("valid_output-arrays-int.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_output_arrays_intByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_output-arrays-int.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_output_arrays_intByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_output-arrays-int.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_initialworkdirrequirement_docker_outByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_initialworkdirrequirement-docker-out.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_initialworkdirrequirement_docker_outByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_initialworkdirrequirement-docker-out.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_initialworkdirrequirement_docker_outByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_initialworkdirrequirement-docker-out.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_writable_dir_dockerByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_writable-dir-docker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_writable_dir_dockerByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_writable-dir-docker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_writable_dir_dockerByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_writable-dir-docker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines7_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines7-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines7_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines7-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines7_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines7-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_formattestByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_formattest.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_formattestByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_formattest.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_formattestByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_formattest.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwd_passthrough3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-passthrough3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwd_passthrough3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-passthrough3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwd_passthrough3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-passthrough3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_007ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-007.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_007ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-007.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_007ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-007.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_scatter_wf2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_scatter_wf2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_scatter_wf2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_symlink_legalByString() throws Exception { - java.net.URL url = getClass().getResource("valid_symlink-legal.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_symlink_legalByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_symlink-legal.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_symlink_legalByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_symlink-legal.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines1_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines1-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines1_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines1-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines1_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines1-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_any_type_compatByString() throws Exception { - java.net.URL url = getClass().getResource("valid_any-type-compat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_any_type_compatByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_any-type-compat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_any_type_compatByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_any-type-compat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_record_outputByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_record_outputByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_record_outputByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_docker_output_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_docker-output-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_docker_output_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_docker-output-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_docker_output_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_docker-output-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_011ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-011.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_011ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-011.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_011ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-011.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_output_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-output-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_output_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-output-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_output_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-output-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwdr_entryByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwdr-entry.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwdr_entryByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwdr-entry.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwdr_entryByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwdr-entry.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_valuefrom_wf3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_outputByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_outputByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_outputByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wf_loadContents2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wf_loadContents2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wf_loadContents2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_timelimit2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_timelimit2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_timelimit2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_anon_enum_inside_array_inside_schemadefByString() throws Exception { - java.net.URL url = getClass().getResource("valid_anon_enum_inside_array_inside_schemadef.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_anon_enum_inside_array_inside_schemadefByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_anon_enum_inside_array_inside_schemadef.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_anon_enum_inside_array_inside_schemadefByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_anon_enum_inside_array_inside_schemadef.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_bool_empty_inputbindingByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_bool-empty-inputbinding.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_bool_empty_inputbindingByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_bool-empty-inputbinding.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_bool_empty_inputbindingByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_bool-empty-inputbinding.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_imported_hintByString() throws Exception { - java.net.URL url = getClass().getResource("valid_imported-hint.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_imported_hintByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_imported-hint.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_imported_hintByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_imported-hint.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_timelimit3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_timelimit3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_timelimit3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wf_loadContents4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wf_loadContents4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wf_loadContents4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_with_defaultsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-with-defaults.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_with_defaultsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-with-defaults.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_with_defaultsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-with-defaults.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_wf_loadContentsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wf-loadContents.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_wf_loadContentsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wf-loadContents.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_wf_loadContentsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wf-loadContents.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_nested_arrayByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_nested-array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_nested_arrayByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_nested-array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_nested_arrayByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_nested-array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_record_in_formatByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-in-format.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_record_in_formatByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-in-format.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_record_in_formatByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-in-format.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_echo_tool_packed2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-tool-packed2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_echo_tool_packed2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-tool-packed2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_echo_tool_packed2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-tool-packed2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_docker_array_secondaryfilesByString() throws Exception { - java.net.URL url = getClass().getResource("valid_docker-array-secondaryfiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_docker_array_secondaryfilesByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_docker-array-secondaryfiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_docker_array_secondaryfilesByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_docker-array-secondaryfiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wc2_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wc2-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wc2_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wc2-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wc2_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wc2-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_synth_fileByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_synth-file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_synth_fileByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_synth-file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_synth_fileByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_synth-file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwd_passthrough1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-passthrough1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwd_passthrough1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-passthrough1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwd_passthrough1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-passthrough1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_output_arrays_int_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_output-arrays-int-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_output_arrays_int_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_output-arrays-int-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_output_arrays_int_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_output-arrays-int-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_revtoolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_revtool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_revtoolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_revtool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_revtoolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_revtool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stderrByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stderr.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stderrByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stderr.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stderrByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stderr.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_no_inputs_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_no-inputs-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_no_inputs_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_no-inputs-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_no_inputs_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_no-inputs-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines14_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines14-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines14_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines14-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines14_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines14-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_output_arrays_file_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_output-arrays-file-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_output_arrays_file_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_output-arrays-file-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_output_arrays_file_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_output-arrays-file-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wf_loadContents3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wf_loadContents3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wf_loadContents3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwd_fileobjs2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-fileobjs2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwd_fileobjs2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-fileobjs2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwd_fileobjs2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-fileobjs2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_wc3_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wc3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_wc3_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wc3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_wc3_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wc3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_echo_tool_packedByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-tool-packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_echo_tool_packedByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-tool-packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_echo_tool_packedByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-tool-packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_docker_run_cmdByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_docker-run-cmd.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_docker_run_cmdByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_docker-run-cmd.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_docker_run_cmdByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_docker-run-cmd.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_schemadef_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_schemadef-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_schemadef_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_schemadef-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_schemadef_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_schemadef-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stderr_mediumcutByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stderr-mediumcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stderr_mediumcutByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stderr-mediumcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stderr_mediumcutByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stderr-mediumcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_size_expression_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_size-expression-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_size_expression_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_size-expression-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_size_expression_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_size-expression-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_echo_wf_defaultByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-wf-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_echo_wf_defaultByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-wf-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_echo_wf_defaultByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-wf-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_io_int_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-int-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_io_int_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-int-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_io_int_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-int-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_any_type_compatByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_any-type-compat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_any_type_compatByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_any-type-compat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_any_type_compatByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_any-type-compat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwdr_entryByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwdr-entry.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwdr_entryByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwdr-entry.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwdr_entryByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwdr-entry.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines17_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines17-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines17_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines17-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines17_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines17-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_sum_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_sum-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_sum_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_sum-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_sum_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_sum-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_004_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-004_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_004_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-004_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_004_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-004_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_updatedir_inplaceByString() throws Exception { - java.net.URL url = getClass().getResource("valid_updatedir_inplace.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_updatedir_inplaceByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_updatedir_inplace.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_updatedir_inplaceByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_updatedir_inplace.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_null_definedByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_null-defined.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_null_definedByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_null-defined.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_null_definedByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_null-defined.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_writable_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_writable-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_writable_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_writable-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_writable_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_writable-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_formattest2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_formattest2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_formattest2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_formattest2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_formattest2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_formattest2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwd_passthrough2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwd_passthrough2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwd_passthrough2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_storage_floatByString() throws Exception { - java.net.URL url = getClass().getResource("valid_storage_float.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_storage_floatByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_storage_float.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_storage_floatByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_storage_float.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_wf5ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_wf5ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_wf5ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_sum_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_sum-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_sum_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_sum-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_sum_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_sum-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_wc_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wc-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_wc_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wc-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_wc_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wc-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines2_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines2_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines2_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_wf2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_wf2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_wf2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_listing_shallow1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_shallow1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_listing_shallow1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_shallow1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_listing_shallow1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_shallow1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wf_renByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wf_ren.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wf_renByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wf_ren.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wf_renByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wf_ren.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines14_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines14-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines14_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines14-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines14_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines14-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_binding_testByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_binding-test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_binding_testByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_binding-test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_binding_testByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_binding-test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_009_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-009_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_009_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-009_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_009_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-009_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_null_expression1_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_null-expression1-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_null_expression1_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_null-expression1-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_null_expression1_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_null-expression1-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_env_wf3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_env-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_env_wf3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_env-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_env_wf3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_env-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_bash_line_continuation_with_expressionByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_bash-line-continuation-with-expression.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_bash_line_continuation_with_expressionByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_bash-line-continuation-with-expression.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_bash_line_continuation_with_expressionByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_bash-line-continuation-with-expression.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines6_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines6-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines6_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines6-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines6_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines6-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_007ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-007.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_007ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-007.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_007ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-007.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_vf_concatByString() throws Exception { - java.net.URL url = getClass().getResource("valid_vf-concat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_vf_concatByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_vf-concat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_vf_concatByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_vf-concat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_recursive_input_directoryByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_recursive-input-directory.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_recursive_input_directoryByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_recursive-input-directory.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_recursive_input_directoryByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_recursive-input-directory.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_002ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-002.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_002ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-002.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_002ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-002.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_listing_deep1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_deep1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_listing_deep1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_deep1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_listing_deep1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_deep1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_js_quoteByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_js-quote.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_js_quoteByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_js-quote.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_js_quoteByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_js-quote.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_js_input_recordByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_js-input-record.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_js_input_recordByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_js-input-record.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_js_input_recordByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_js-input-record.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_valuefrom_wf5ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf5ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf5ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_recursive_input_directoryByString() throws Exception { - java.net.URL url = getClass().getResource("valid_recursive-input-directory.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_recursive_input_directoryByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_recursive-input-directory.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_recursive_input_directoryByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_recursive-input-directory.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines9_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines9-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines9_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines9-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines9_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines9-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_stderr_shortcutByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stderr-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_stderr_shortcutByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stderr-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_stderr_shortcutByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stderr-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_formattest3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_formattest3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_formattest3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_formattest3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_formattest3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_formattest3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_metadataByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_metadata.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_metadataByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_metadata.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_metadataByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_metadata.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_bash_dollar_quoteByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_bash-dollar-quote.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_bash_dollar_quoteByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_bash-dollar-quote.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_bash_dollar_quoteByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_bash-dollar-quote.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_vf_concatByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_vf-concat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_vf_concatByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_vf-concat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_vf_concatByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_vf-concat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_storage_floatByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_storage_float.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_storage_floatByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_storage_float.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_storage_floatByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_storage_float.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines11_extra_step_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines11-extra-step-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines11_extra_step_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines11-extra-step-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines11_extra_step_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines11-extra-step-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_002_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-002_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_002_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-002_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_002_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-002_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_synth_fileByString() throws Exception { - java.net.URL url = getClass().getResource("valid_synth-file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_synth_fileByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_synth-file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_synth_fileByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_synth-file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_env_tool1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-tool1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_env_tool1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-tool1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_env_tool1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-tool1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cat_tool_shortcutByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cat_tool_shortcutByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cat_tool_shortcutByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat3_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat3_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat3_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_operationByString() throws Exception { - java.net.URL url = getClass().getResource("valid_operation.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_operationByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_operation.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_operationByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_operation.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_listing_deep2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_deep2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_listing_deep2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_deep2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_listing_deep2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_deep2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwd_container_entryname1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-container-entryname1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwd_container_entryname1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-container-entryname1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwd_container_entryname1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-container-entryname1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_fooByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_foo.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_fooByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_foo.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_fooByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_foo.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_inline_jsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_inline-js.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_inline_jsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_inline-js.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_inline_jsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_inline-js.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cwloutput_nolimitByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cwloutput-nolimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cwloutput_nolimitByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cwloutput-nolimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cwloutput_nolimitByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cwloutput-nolimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_timelimit5ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_timelimit5ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_timelimit5ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_rename_inputsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_rename-inputs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_rename_inputsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_rename-inputs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_rename_inputsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_rename-inputs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_touchByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_touch.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_touchByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_touch.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_touchByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_touch.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_js_quoteByString() throws Exception { - java.net.URL url = getClass().getResource("valid_js-quote.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_js_quoteByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_js-quote.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_js_quoteByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_js-quote.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_scatter_wf1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_scatter_wf1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_scatter_wf1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_dynresreq_workflow_tooldefaultByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow-tooldefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_dynresreq_workflow_tooldefaultByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow-tooldefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_dynresreq_workflow_tooldefaultByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow-tooldefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_wc_tool_shortcutByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wc-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_wc_tool_shortcutByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wc-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_wc_tool_shortcutByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wc-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_writable_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_writable-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_writable_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_writable-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_writable_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_writable-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_colon_testByString() throws Exception { - java.net.URL url = getClass().getResource("valid_colon:test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_colon_testByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_colon:test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_colon_testByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_colon:test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_null_expression2_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_null-expression2-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_null_expression2_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_null-expression2-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_null_expression2_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_null-expression2-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_no_outputs_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_no-outputs-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_no_outputs_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_no-outputs-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_no_outputs_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_no-outputs-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines3_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines3_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines3_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_envvar3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_envvar3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_envvar3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_envvar3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_envvar3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_envvar3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_valuefrom_wf4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_dynresreqByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_dynresreqByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_dynresreqByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines11_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines11_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines11_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwdr_with_nested_dirsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwdr_with_nested_dirs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwdr_with_nested_dirsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwdr_with_nested_dirs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwdr_with_nested_dirsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwdr_with_nested_dirs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines1_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines1-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines1_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines1-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines1_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines1-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_timelimitByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_timelimitByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_timelimitByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_env_tool3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-tool3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_env_tool3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-tool3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_env_tool3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-tool3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_echo_tool_defaultByString() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_echo_tool_defaultByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_echo_tool_defaultByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines19_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines19-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines19_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines19-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines19_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines19-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_timelimit3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_timelimit3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_timelimit3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_003_1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-003.1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_003_1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-003.1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_003_1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-003.1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_no_outputs_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_no-outputs-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_no_outputs_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_no-outputs-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_no_outputs_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_no-outputs-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_004_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-004_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_004_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-004_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_004_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-004_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_glob_path_errorByString() throws Exception { - java.net.URL url = getClass().getResource("valid_glob-path-error.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_glob_path_errorByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_glob-path-error.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_glob_path_errorByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_glob-path-error.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_tmap_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_tmap-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_tmap_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_tmap-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_tmap_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_tmap-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cat4_from_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat4-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cat4_from_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat4-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cat4_from_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat4-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_envvarByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_envvar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_envvarByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_envvar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_envvarByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_envvar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_fail_unspecified_inputByString() throws Exception { - java.net.URL url = getClass().getResource("valid_fail-unspecified-input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_fail_unspecified_inputByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_fail-unspecified-input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_fail_unspecified_inputByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_fail-unspecified-input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines17_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines17-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines17_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines17-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines17_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines17-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_optional_outputByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_optional-output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_optional_outputByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_optional-output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_optional_outputByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_optional-output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_inline_jsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_inline-js.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_inline_jsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_inline-js.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_inline_jsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_inline-js.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines16_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines16-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines16_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines16-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines16_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines16-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines1_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines1-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines1_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines1-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines1_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines1-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_schemadef_types_with_import_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_schemadef_types_with_import-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_schemadef_types_with_import_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_schemadef_types_with_import-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_schemadef_types_with_import_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_schemadef_types_with_import-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wc_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wc-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wc_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wc-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wc_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wc-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwd_jsondump2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwd_jsondump2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwd_jsondump2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_steplevel_resreqByString() throws Exception { - java.net.URL url = getClass().getResource("valid_steplevel-resreq.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_steplevel_resreqByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_steplevel-resreq.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_steplevel_resreqByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_steplevel-resreq.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwd_passthrough4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwd_passthrough4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwd_passthrough4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwd_jsondump3_nlByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-jsondump3-nl.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwd_jsondump3_nlByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-jsondump3-nl.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwd_jsondump3_nlByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-jsondump3-nl.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_io_int_default_tool_and_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-default-tool-and-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_io_int_default_tool_and_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-default-tool-and-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_io_int_default_tool_and_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-default-tool-and-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_nested_arrayByString() throws Exception { - java.net.URL url = getClass().getResource("valid_nested-array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_nested_arrayByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_nested-array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_nested_arrayByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_nested-array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_no_inputs_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_no-inputs-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_no_inputs_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_no-inputs-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_no_inputs_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_no-inputs-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwdr_with_nested_dirsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwdr_with_nested_dirs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwdr_with_nested_dirsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwdr_with_nested_dirs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwdr_with_nested_dirsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwdr_with_nested_dirs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stderr_shortcutByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stderr-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stderr_shortcutByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stderr-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stderr_shortcutByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stderr-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_007_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-007_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_007_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-007_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_007_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-007_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_record_output_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-output-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_record_output_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-output-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_record_output_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-output-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_in_secondaryFiles_missing_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-missing-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_in_secondaryFiles_missing_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-missing-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_in_secondaryFiles_missing_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-missing-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_009ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-009.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_009ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-009.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_009ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-009.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_011_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-011_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_011_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-011_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_011_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-011_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_networkaccess2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_networkaccess2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_networkaccess2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_networkaccess2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_networkaccess2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_networkaccess2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_timelimit2_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_timelimit2_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_timelimit2_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_bash_line_continuation_with_expressionByString() throws Exception { - java.net.URL url = getClass().getResource("valid_bash-line-continuation-with-expression.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_bash_line_continuation_with_expressionByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_bash-line-continuation-with-expression.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_bash_line_continuation_with_expressionByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_bash-line-continuation-with-expression.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_mkdirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_mkdir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_mkdirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_mkdir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_mkdirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_mkdir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_valueFrom_constantByString() throws Exception { - java.net.URL url = getClass().getResource("valid_valueFrom-constant.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_valueFrom_constantByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_valueFrom-constant.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_valueFrom_constantByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_valueFrom-constant.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_schemadef_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_schemadef-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_schemadef_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_schemadef-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_schemadef_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_schemadef-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_test_cwl_out2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_test-cwl-out2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_test_cwl_out2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_test-cwl-out2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_test_cwl_out2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_test-cwl-out2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_wf6ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf6.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_wf6ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf6.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_wf6ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf6.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_metadataByString() throws Exception { - java.net.URL url = getClass().getResource("valid_metadata.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_metadataByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_metadata.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_metadataByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_metadata.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines9_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines9-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines9_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines9-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines9_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines9-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_fooByString() throws Exception { - java.net.URL url = getClass().getResource("valid_foo.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_fooByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_foo.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_fooByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_foo.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_params2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_params2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_params2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_params2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_params2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_params2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines9_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines9-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines9_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines9-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines9_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines9-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_multiple_input_feature_requirementByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_multiple_input_feature_requirement.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_multiple_input_feature_requirementByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_multiple_input_feature_requirement.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_multiple_input_feature_requirementByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_multiple_input_feature_requirement.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwd_passthrough3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwd_passthrough3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwd_passthrough3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines7_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines7-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines7_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines7-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines7_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines7-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_io_any_wf_1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_io-any-wf-1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_io_any_wf_1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_io-any-wf-1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_io_any_wf_1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_io-any-wf-1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_default_pathByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_default_path.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_default_pathByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_default_path.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_default_pathByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_default_path.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_fail_unconnectedByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_fail-unconnected.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_fail_unconnectedByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_fail-unconnected.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_fail_unconnectedByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_fail-unconnected.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_actionByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_action.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_actionByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_action.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_actionByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_action.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_io_file_default_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_io-file-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_io_file_default_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_io-file-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_io_file_default_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_io-file-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_empty_array_inputByString() throws Exception { - java.net.URL url = getClass().getResource("valid_empty-array-input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_empty_array_inputByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_empty-array-input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_empty_array_inputByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_empty-array-input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_inpdir_update_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_inpdir_update_wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_inpdir_update_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_inpdir_update_wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_inpdir_update_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_inpdir_update_wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_dir3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_dir3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_dir3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cat3_tool_mediumcutByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat3-tool-mediumcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cat3_tool_mediumcutByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat3-tool-mediumcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cat3_tool_mediumcutByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat3-tool-mediumcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wc3_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wc3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wc3_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wc3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wc3_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wc3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_env_wf2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_env_wf2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_env_wf2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dir7ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dir7.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dir7ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dir7.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dir7ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dir7.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_binding_testByString() throws Exception { - java.net.URL url = getClass().getResource("valid_binding-test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_binding_testByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_binding-test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_binding_testByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_binding-test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_revsort_packedByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_revsort-packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_revsort_packedByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_revsort-packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_revsort_packedByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_revsort-packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_paramsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_params.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_paramsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_params.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_paramsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_params.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_record_in_secondaryFilesByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-in-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_record_in_secondaryFilesByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-in-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_record_in_secondaryFilesByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-in-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_record_orderByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-order.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_record_orderByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-order.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_record_orderByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-order.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines8_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines8-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines8_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines8-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines8_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines8-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_output_reference_workflow_inputByString() throws Exception { - java.net.URL url = getClass().getResource("valid_output_reference_workflow_input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_output_reference_workflow_inputByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_output_reference_workflow_input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_output_reference_workflow_inputByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_output_reference_workflow_input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines5_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines5-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines5_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines5-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines5_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines5-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_pass_unconnectedByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_pass-unconnected.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_pass_unconnectedByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_pass-unconnected.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_pass_unconnectedByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_pass-unconnected.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_networkaccessByString() throws Exception { - java.net.URL url = getClass().getResource("valid_networkaccess.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_networkaccessByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_networkaccess.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_networkaccessByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_networkaccess.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines11_null_step_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines11-null-step-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines11_null_step_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines11-null-step-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines11_null_step_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines11-null-step-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines4_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines4-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines4_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines4-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines4_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines4-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_empty_array_inputByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_empty-array-input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_empty_array_inputByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_empty-array-input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_empty_array_inputByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_empty-array-input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_colon_test_outputByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_colon_test_output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_colon_test_outputByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_colon_test_output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_colon_test_outputByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_colon_test_output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat3_tool_dockerByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool-docker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat3_tool_dockerByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool-docker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat3_tool_dockerByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool-docker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_optional_outputByString() throws Exception { - java.net.URL url = getClass().getResource("valid_optional-output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_optional_outputByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_optional-output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_optional_outputByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_optional-output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_record_in_secondaryFiles_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-in-secondaryFiles-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_record_in_secondaryFiles_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-in-secondaryFiles-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_record_in_secondaryFiles_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-in-secondaryFiles-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_anon_enum_inside_array_inside_schemadefByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_anon_enum_inside_array_inside_schemadef.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_anon_enum_inside_array_inside_schemadefByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_anon_enum_inside_array_inside_schemadef.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_anon_enum_inside_array_inside_schemadefByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_anon_enum_inside_array_inside_schemadef.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines8_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines8-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines8_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines8-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines8_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines8-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_valuefrom_wf2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_wf1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_wf1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_wf1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_symlink_legalByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_symlink-legal.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_symlink_legalByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_symlink-legal.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_symlink_legalByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_symlink-legal.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_touchByString() throws Exception { - java.net.URL url = getClass().getResource("valid_touch.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_touchByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_touch.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_touchByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_touch.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_listing_none3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_none3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_listing_none3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_none3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_listing_none3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_none3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat1_testcliByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat1-testcli.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat1_testcliByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat1-testcli.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat1_testcliByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat1-testcli.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwd_jsondump1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwd_jsondump1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwd_jsondump1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dir2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dir2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dir2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dir2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dir2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dir2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_io_any_1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_io-any-1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_io_any_1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_io-any-1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_io_any_1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_io-any-1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_003_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-003_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_003_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-003_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_003_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-003_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_stage_array_dirsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stage-array-dirs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_stage_array_dirsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stage-array-dirs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_stage_array_dirsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stage-array-dirs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_rename_outputsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_rename-outputs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_rename_outputsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_rename-outputs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_rename_outputsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_rename-outputs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_revtoolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_revtool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_revtoolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_revtool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_revtoolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_revtool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat_tool_shortcutByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat_tool_shortcutByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat_tool_shortcutByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_002_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-002_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_002_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-002_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_002_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-002_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_011ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-011.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_011ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-011.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_011ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-011.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_003_1_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-003.1_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_003_1_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-003.1_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_003_1_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-003.1_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_001ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-001.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_001ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-001.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_001ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-001.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines10_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines10-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines10_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines10-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines10_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines10-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_valid_schemadef_types_with_import_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_valid_schemadef_types_with_import-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_valid_schemadef_types_with_import_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_valid_schemadef_types_with_import-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_valid_schemadef_types_with_import_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_valid_schemadef_types_with_import-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_004ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-004.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_004ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-004.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_004ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-004.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_bool_empty_inputbindingByString() throws Exception { - java.net.URL url = getClass().getResource("valid_bool-empty-inputbinding.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_bool_empty_inputbindingByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_bool-empty-inputbinding.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_bool_empty_inputbindingByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_bool-empty-inputbinding.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_env_tool1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_env_tool1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_env_tool1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_import_schema_defByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_import_schema-def.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_import_schema_defByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_import_schema-def.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_import_schema_defByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_import_schema-def.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_io_any_1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-any-1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_io_any_1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-any-1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_io_any_1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-any-1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_anon_enum_inside_arrayByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_anon_enum_inside_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_anon_enum_inside_arrayByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_anon_enum_inside_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_anon_enum_inside_arrayByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_anon_enum_inside_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_timelimit3_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_timelimit3_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_timelimit3_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwd_container_entryname2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwd_container_entryname2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwd_container_entryname2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_colon_test_outputByString() throws Exception { - java.net.URL url = getClass().getResource("valid_colon_test_output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_colon_test_outputByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_colon_test_output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_colon_test_outputByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_colon_test_output.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_dir4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_dir4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_dir4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_anon_enum_inside_arrayByString() throws Exception { - java.net.URL url = getClass().getResource("valid_anon_enum_inside_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_anon_enum_inside_arrayByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_anon_enum_inside_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_anon_enum_inside_arrayByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_anon_enum_inside_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_no_outputs_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_no-outputs-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_no_outputs_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_no-outputs-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_no_outputs_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_no-outputs-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_inp_update_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_inp_update_wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_inp_update_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_inp_update_wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_inp_update_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_inp_update_wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwd_fileobjs2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-fileobjs2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwd_fileobjs2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-fileobjs2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwd_fileobjs2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-fileobjs2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines12_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines12-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines12_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines12-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines12_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines12-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_env_tool2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-tool2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_env_tool2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-tool2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_env_tool2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-tool2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_echo_wf_defaultByString() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-wf-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_echo_wf_defaultByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-wf-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_echo_wf_defaultByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-wf-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_dir7ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir7.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_dir7ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir7.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_dir7ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir7.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_io_int_optional_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-optional-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_io_int_optional_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-optional-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_io_int_optional_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-optional-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_001ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-001.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_001ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-001.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_001ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-001.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_sorttoolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_sorttool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_sorttoolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_sorttool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_sorttoolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_sorttool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat3_tool_shortcutByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat3_tool_shortcutByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat3_tool_shortcutByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_012_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-012_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_012_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-012_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_012_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-012_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_docker_array_secondaryfilesByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_docker-array-secondaryfiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_docker_array_secondaryfilesByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_docker-array-secondaryfiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_docker_array_secondaryfilesByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_docker-array-secondaryfiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_013_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-013_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_013_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-013_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_013_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-013_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines9_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines9-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines9_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines9-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines9_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines9-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines11_extra_step_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines11_extra_step_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines11_extra_step_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_listing_shallow2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_shallow2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_listing_shallow2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_shallow2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_listing_shallow2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_shallow2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_002ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-002.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_002ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-002.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_002ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-002.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_wf_loadContents2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wf-loadContents2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_wf_loadContents2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wf-loadContents2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_wf_loadContents2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wf-loadContents2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_001_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-001_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_001_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-001_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_001_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-001_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_updatedir_inplaceByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_updatedir_inplace.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_updatedir_inplaceByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_updatedir_inplace.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_updatedir_inplaceByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_updatedir_inplace.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_sum_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_sum-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_sum_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_sum-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_sum_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_sum-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stage_file_arrayByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stage_file_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stage_file_arrayByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stage_file_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stage_file_arrayByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stage_file_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_checkByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_check.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_checkByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_check.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_checkByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_check.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_wf_loadContents3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wf-loadContents3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_wf_loadContents3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wf-loadContents3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_wf_loadContents3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wf-loadContents3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_003ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-003.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_003ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-003.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_003ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-003.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_wf3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_wf3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_wf3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwd_jsondump3_nlByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump3-nl.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwd_jsondump3_nlByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump3-nl.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwd_jsondump3_nlByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump3-nl.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_initialworkdir_glob_fullpathByString() throws Exception { - java.net.URL url = getClass().getResource("valid_initialworkdir-glob-fullpath.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_initialworkdir_glob_fullpathByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_initialworkdir-glob-fullpath.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_initialworkdir_glob_fullpathByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_initialworkdir-glob-fullpath.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines11_null_step_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines11_null_step_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines11_null_step_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwd_container_entryname4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-container-entryname4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwd_container_entryname4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-container-entryname4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwd_container_entryname4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-container-entryname4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_echo_position_exprByString() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-position-expr.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_echo_position_exprByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-position-expr.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_echo_position_exprByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-position-expr.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_wf4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_wf4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_wf4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_shellchar2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_shellchar2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_shellchar2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_shellchar2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_shellchar2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_shellchar2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_env_wf2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_env-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_env_wf2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_env-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_env_wf2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_env-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_null_expression3_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_null-expression3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_null_expression3_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_null-expression3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_null_expression3_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_null-expression3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_no_inputs_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_no-inputs-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_no_inputs_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_no-inputs-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_no_inputs_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_no-inputs-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_001_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-001_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_001_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-001_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_001_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-001_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_no_inputs_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_no-inputs-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_no_inputs_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_no-inputs-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_no_inputs_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_no-inputs-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_wf2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_wf2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_wf2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_013ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-013.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_013ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-013.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_013ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-013.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_runtime_outdirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_runtime-outdir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_runtime_outdirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_runtime-outdir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_runtime_outdirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_runtime-outdir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_003ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-003.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_003ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-003.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_003ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-003.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_010ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-010.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_010ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-010.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_010ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-010.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_tool_v12ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_tool-v12.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_tool_v12ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_tool-v12.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_tool_v12ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_tool-v12.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_glob_expr_listByString() throws Exception { - java.net.URL url = getClass().getResource("valid_glob-expr-list.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_glob_expr_listByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_glob-expr-list.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_glob_expr_listByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_glob-expr-list.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_runtime_paths_distinctByString() throws Exception { - java.net.URL url = getClass().getResource("valid_runtime-paths-distinct.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_runtime_paths_distinctByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_runtime-paths-distinct.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_runtime_paths_distinctByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_runtime-paths-distinct.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_loadContents_limitByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_loadContents-limit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_loadContents_limitByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_loadContents-limit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_loadContents_limitByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_loadContents-limit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_valuefrom_wf1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_valuefrom_inputs_wf1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-inputs-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_inputs_wf1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-inputs-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_inputs_wf1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-inputs-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_007_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-007_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_007_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-007_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_007_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-007_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_scatter_wf4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-wf4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_scatter_wf4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-wf4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_scatter_wf4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-wf4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines10_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines10-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines10_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines10-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines10_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines10-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_glob_directoryByString() throws Exception { - java.net.URL url = getClass().getResource("valid_glob_directory.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_glob_directoryByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_glob_directory.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_glob_directoryByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_glob_directory.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines11_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines11-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines11_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines11-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines11_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines11-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_import_schema_defByString() throws Exception { - java.net.URL url = getClass().getResource("valid_import_schema-def.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_import_schema_defByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_import_schema-def.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_import_schema_defByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_import_schema-def.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_import_schema_def2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_import_schema-def2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_import_schema_def2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_import_schema-def2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_import_schema_def2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_import_schema-def2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_docker_run_cmdByString() throws Exception { - java.net.URL url = getClass().getResource("valid_docker-run-cmd.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_docker_run_cmdByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_docker-run-cmd.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_docker_run_cmdByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_docker-run-cmd.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_schemadef_types_with_import_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_schemadef_types_with_import-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_schemadef_types_with_import_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_schemadef_types_with_import-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_schemadef_types_with_import_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_schemadef_types_with_import-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_no_outputs_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_no-outputs-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_no_outputs_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_no-outputs-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_no_outputs_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_no-outputs-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_011_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-011_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_011_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-011_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_011_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-011_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_003_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-003_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_003_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-003_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_003_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-003_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_glob_testByString() throws Exception { - java.net.URL url = getClass().getResource("valid_glob_test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_glob_testByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_glob_test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_glob_testByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_glob_test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_bwa_mem_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_bwa-mem-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_bwa_mem_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_bwa-mem-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_bwa_mem_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_bwa-mem-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_glob_expr_listByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_glob-expr-list.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_glob_expr_listByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_glob-expr-list.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_glob_expr_listByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_glob-expr-list.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_stage_file_array_basename_and_entrynameByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stage_file_array_basename_and_entryname.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_stage_file_array_basename_and_entrynameByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stage_file_array_basename_and_entryname.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_stage_file_array_basename_and_entrynameByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stage_file_array_basename_and_entryname.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_runtime_outdirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_runtime-outdir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_runtime_outdirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_runtime-outdir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_runtime_outdirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_runtime-outdir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_operationByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_operation.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_operationByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_operation.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_operationByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_operation.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_basename_fields_testByString() throws Exception { - java.net.URL url = getClass().getResource("valid_basename-fields-test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_basename_fields_testByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_basename-fields-test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_basename_fields_testByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_basename-fields-test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwd_jsondump3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwd_jsondump3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwd_jsondump3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwd_jsondump1_nlByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump1-nl.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwd_jsondump1_nlByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump1-nl.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwd_jsondump1_nlByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump1-nl.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_import_schema_def2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_import_schema-def2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_import_schema_def2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_import_schema-def2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_import_schema_def2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_import_schema-def2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_echo_tool_packed2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool-packed2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_echo_tool_packed2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool-packed2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_echo_tool_packed2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool-packed2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_output_arrays_intByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_output-arrays-int.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_output_arrays_intByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_output-arrays-int.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_output_arrays_intByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_output-arrays-int.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_echo_position_exprByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-position-expr.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_echo_position_exprByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-position-expr.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_echo_position_exprByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-position-expr.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wf_loadContentsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wf_loadContentsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wf_loadContentsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wf-loadContents.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_in_secondaryFilesByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_in_secondaryFilesByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_in_secondaryFilesByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_writable_dir_dockerByString() throws Exception { - java.net.URL url = getClass().getResource("valid_writable-dir-docker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_writable_dir_dockerByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_writable-dir-docker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_writable_dir_dockerByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_writable-dir-docker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_env_tool2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_env_tool2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_env_tool2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_searchByString() throws Exception { - java.net.URL url = getClass().getResource("valid_search.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_searchByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_search.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_searchByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_search.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_params_input_length_non_arrayByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_params_input_length_non_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_params_input_length_non_arrayByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_params_input_length_non_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_params_input_length_non_arrayByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_params_input_length_non_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_echo_tool_packedByString() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool-packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_echo_tool_packedByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool-packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_echo_tool_packedByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool-packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_fail_unspecified_inputByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_fail-unspecified-input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_fail_unspecified_inputByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_fail-unspecified-input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_fail_unspecified_inputByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_fail-unspecified-input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines8_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines8-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines8_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines8-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines8_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines8-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines11_null_step_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines11_null_step_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines11_null_step_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-null-step-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines1_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines1-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines1_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines1-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines1_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines1-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stage_arrayByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stage-array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stage_arrayByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stage-array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stage_arrayByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stage-array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cat1_testcliByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat1-testcli.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cat1_testcliByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat1-testcli.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cat1_testcliByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat1-testcli.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_params_input_length_non_arrayByString() throws Exception { - java.net.URL url = getClass().getResource("valid_params_input_length_non_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_params_input_length_non_arrayByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_params_input_length_non_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_params_input_length_non_arrayByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_params_input_length_non_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_step_valuefrom_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_step-valuefrom-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_step_valuefrom_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_step-valuefrom-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_step_valuefrom_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_step-valuefrom-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cwloutput_nolimitByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cwloutput-nolimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cwloutput_nolimitByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cwloutput-nolimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cwloutput_nolimitByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cwloutput-nolimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_echo_tool_defaultByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-tool-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_echo_tool_defaultByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-tool-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_echo_tool_defaultByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-tool-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_envvar3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_envvar3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_envvar3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_envvar3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_envvar3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_envvar3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_renameByString() throws Exception { - java.net.URL url = getClass().getResource("valid_rename.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_renameByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_rename.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_renameByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_rename.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_dynresreq_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_dynresreq_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_dynresreq_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_env_wf1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_env-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_env_wf1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_env-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_env_wf1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_env-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwd_container_entryname4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwd_container_entryname4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwd_container_entryname4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_012_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-012_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_012_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-012_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_012_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-012_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines13_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines13-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines13_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines13-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines13_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines13-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_record_outputeval_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record_outputeval_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_record_outputeval_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record_outputeval_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_record_outputeval_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record_outputeval_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_barByString() throws Exception { - java.net.URL url = getClass().getResource("valid_bar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_barByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_bar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_barByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_bar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines12_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines12-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines12_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines12-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines12_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines12-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_dir2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_dir2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_dir2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines11_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines11-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines11_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines11-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines11_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines11-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines11_extra_step_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines11-extra-step-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines11_extra_step_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines11-extra-step-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines11_extra_step_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines11-extra-step-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwd_container_entryname1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwd_container_entryname1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwd_container_entryname1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_listing_none1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_none1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_listing_none1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_none1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_listing_none1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_none1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_003_1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-003.1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_003_1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-003.1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_003_1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-003.1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_io_union_input_default_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_io-union-input-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_io_union_input_default_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_io-union-input-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_io_union_input_default_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_io-union-input-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwd_nolimitByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-nolimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwd_nolimitByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-nolimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwd_nolimitByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-nolimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_006ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-006.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_006ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-006.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_006ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-006.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines13_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines13-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines13_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines13-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines13_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines13-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_listing_shallow1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_shallow1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_listing_shallow1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_shallow1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_listing_shallow1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_shallow1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_colon_testByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_colon:test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_colon_testByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_colon:test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_colon_testByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_colon:test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_valuefrom_wf6ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf6.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf6ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf6.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_valuefrom_wf6ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valuefrom-wf6.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dynresreqByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dynresreqByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dynresreqByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat5_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat5-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat5_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat5-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat5_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat5-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_renameByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_rename.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_renameByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_rename.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_renameByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_rename.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwd_container_entryname2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-container-entryname2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwd_container_entryname2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-container-entryname2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwd_container_entryname2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-container-entryname2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_bash_line_continuationByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_bash-line-continuation.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_bash_line_continuationByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_bash-line-continuation.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_bash_line_continuationByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_bash-line-continuation.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_revsort_abstractByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_revsort-abstract.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_revsort_abstractByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_revsort-abstract.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_revsort_abstractByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_revsort-abstract.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_timelimit4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_timelimit4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_timelimit4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_wc4_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wc4-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_wc4_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wc4-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_wc4_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wc4-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines3_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines3_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines3_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_symlink_illegalByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_symlink-illegal.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_symlink_illegalByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_symlink-illegal.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_symlink_illegalByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_symlink-illegal.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_stderr_mediumcutByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stderr-mediumcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_stderr_mediumcutByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stderr-mediumcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_stderr_mediumcutByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stderr-mediumcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cores_floatByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cores_float.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cores_floatByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cores_float.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cores_floatByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cores_float.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_timelimitByString() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_timelimitByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_timelimitByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_null_expression2_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_null-expression2-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_null_expression2_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_null-expression2-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_null_expression2_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_null-expression2-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwd_container_entryname3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-container-entryname3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwd_container_entryname3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-container-entryname3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwd_container_entryname3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-container-entryname3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_bash_dollar_quoteByString() throws Exception { - java.net.URL url = getClass().getResource("valid_bash-dollar-quote.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_bash_dollar_quoteByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_bash-dollar-quote.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_bash_dollar_quoteByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_bash-dollar-quote.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_dir5ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_dir5ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_dir5ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cat3_from_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat3-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cat3_from_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat3-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cat3_from_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat3-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_listing_none1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_none1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_listing_none1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_none1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_listing_none1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_none1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_listing_none2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_none2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_listing_none2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_none2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_listing_none2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_none2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwd_passthrough2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-passthrough2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwd_passthrough2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-passthrough2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwd_passthrough2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-passthrough2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines11_wf_noETByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines11_wf_noETByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines11_wf_noETByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-wf-noET.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stagefileByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stagefile.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stagefileByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stagefile.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stagefileByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stagefile.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_wc2_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wc2-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_wc2_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wc2-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_wc2_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wc2-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_basename_fields_testByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_basename-fields-test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_basename_fields_testByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_basename-fields-test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_basename_fields_testByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_basename-fields-test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stage_file_array_basename_and_entrynameByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stage_file_array_basename_and_entryname.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stage_file_array_basename_and_entrynameByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stage_file_array_basename_and_entryname.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stage_file_array_basename_and_entrynameByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stage_file_array_basename_and_entryname.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_shellchar2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_shellchar2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_shellchar2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_shellchar2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_shellchar2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_shellchar2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_out_secondaryFilesByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-out-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_out_secondaryFilesByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-out-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_out_secondaryFilesByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-out-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_networkaccess2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_networkaccess2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_networkaccess2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_networkaccess2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_networkaccess2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_networkaccess2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_test_cwl_outByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_test-cwl-out.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_test_cwl_outByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_test-cwl-out.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_test_cwl_outByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_test-cwl-out.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cores_floatByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cores_float.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cores_floatByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cores_float.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cores_floatByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cores_float.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_stderrByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stderr.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_stderrByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stderr.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_stderrByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stderr.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_glob_testByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_glob_test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_glob_testByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_glob_test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_glob_testByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_glob_test.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_inp_update_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_inp_update_wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_inp_update_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_inp_update_wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_inp_update_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_inp_update_wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_bwa_mem_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_bwa-mem-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_bwa_mem_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_bwa-mem-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_bwa_mem_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_bwa-mem-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat3_tool_mediumcutByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool-mediumcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat3_tool_mediumcutByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool-mediumcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat3_tool_mediumcutByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-tool-mediumcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_glob_path_errorByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_glob-path-error.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_glob_path_errorByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_glob-path-error.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_glob_path_errorByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_glob-path-error.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_dynresreq_workflow_inputdefaultByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow-inputdefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_dynresreq_workflow_inputdefaultByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow-inputdefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_dynresreq_workflow_inputdefaultByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow-inputdefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_loadContents_limitByString() throws Exception { - java.net.URL url = getClass().getResource("valid_loadContents-limit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_loadContents_limitByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_loadContents-limit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_loadContents_limitByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_loadContents-limit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_stage_arrayByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stage-array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_stage_arrayByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stage-array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_stage_arrayByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stage-array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_output_reference_workflow_inputByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_output_reference_workflow_input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_output_reference_workflow_inputByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_output_reference_workflow_input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_output_reference_workflow_inputByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_output_reference_workflow_input.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_env_tool3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_env_tool3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_env_tool3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_timelimit2_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_timelimit2_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_timelimit2_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_revsort_packedByString() throws Exception { - java.net.URL url = getClass().getResource("valid_revsort-packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_revsort_packedByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_revsort-packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_revsort_packedByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_revsort-packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_null_definedByString() throws Exception { - java.net.URL url = getClass().getResource("valid_null-defined.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_null_definedByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_null-defined.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_null_definedByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_null-defined.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_initialworkdir_glob_fullpathByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_initialworkdir-glob-fullpath.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_initialworkdir_glob_fullpathByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_initialworkdir-glob-fullpath.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_initialworkdir_glob_fullpathByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_initialworkdir-glob-fullpath.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_listing_none3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_none3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_listing_none3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_none3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_listing_none3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_none3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cat3_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cat3_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cat3_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_wf_renByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wf_ren.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_wf_renByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wf_ren.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_wf_renByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wf_ren.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_exitcodeByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_exitcode.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_exitcodeByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_exitcode.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_exitcodeByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_exitcode.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cat3_nodockerByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat3-nodocker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cat3_nodockerByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat3-nodocker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cat3_nodockerByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat3-nodocker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwd_jsondump1_nlByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-jsondump1-nl.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwd_jsondump1_nlByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-jsondump1-nl.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwd_jsondump1_nlByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-jsondump1-nl.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwd_jsondump2_nlByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-jsondump2-nl.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwd_jsondump2_nlByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-jsondump2-nl.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwd_jsondump2_nlByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-jsondump2-nl.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwdr_dir_literal_real_fileByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwdr_dir_literal_real_file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwdr_dir_literal_real_fileByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwdr_dir_literal_real_file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwdr_dir_literal_real_fileByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwdr_dir_literal_real_file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_wf3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_wf3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_wf3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_io_int_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_io_int_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_io_int_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_listing_deep1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_deep1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_listing_deep1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_deep1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_listing_deep1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_deep1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_009_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-009_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_009_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-009_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_009_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-009_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_006_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-006_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_006_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-006_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_006_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-006_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_file_literal_exByString() throws Exception { - java.net.URL url = getClass().getResource("valid_file-literal-ex.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_file_literal_exByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_file-literal-ex.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_file_literal_exByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_file-literal-ex.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_revsortByString() throws Exception { - java.net.URL url = getClass().getResource("valid_revsort.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_revsortByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_revsort.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_revsortByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_revsort.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_tmap_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_tmap-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_tmap_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_tmap-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_tmap_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_tmap-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_record_outputevalByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record_outputeval.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_record_outputevalByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record_outputeval.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_record_outputevalByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record_outputeval.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_012ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-012.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_012ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-012.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_012ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-012.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_010ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-010.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_010ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-010.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_010ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-010.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_record_out_formatByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-out-format.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_record_out_formatByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-out-format.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_record_out_formatByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-out-format.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_io_union_input_default_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-union-input-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_io_union_input_default_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-union-input-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_io_union_input_default_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-union-input-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_env_tool4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_env_tool4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_env_tool4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_env-tool4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stage_array_dirsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stage-array-dirs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stage_array_dirsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stage-array-dirs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stage_array_dirsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stage-array-dirs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_inputs_wf1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-inputs-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_inputs_wf1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-inputs-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_inputs_wf1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-inputs-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_step_valuefrom4_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_step-valuefrom4-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_step_valuefrom4_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_step-valuefrom4-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_step_valuefrom4_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_step-valuefrom4-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_dir6ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir6.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_dir6ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir6.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_dir6ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dir6.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_shellcharByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_shellchar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_shellcharByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_shellchar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_shellcharByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_shellchar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines2_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines2_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines2_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_formattestByString() throws Exception { - java.net.URL url = getClass().getResource("valid_formattest.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_formattestByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_formattest.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_formattestByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_formattest.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_stagefileByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stagefile.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_stagefileByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stagefile.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_stagefileByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stagefile.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_stage_file_arrayByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stage_file_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_stage_file_arrayByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stage_file_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_stage_file_arrayByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stage_file_array.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dynresreq_workflow_stepdefaultByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow-stepdefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dynresreq_workflow_stepdefaultByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow-stepdefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dynresreq_workflow_stepdefaultByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow-stepdefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwd_jsondump3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-jsondump3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwd_jsondump3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-jsondump3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwd_jsondump3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-jsondump3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_io_int_default_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-int-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_io_int_default_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-int-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_io_int_default_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-int-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_size_expression_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_size-expression-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_size_expression_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_size-expression-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_size_expression_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_size-expression-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat4_from_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat4-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat4_from_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat4-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat4_from_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat4-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_out_formatByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-out-format.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_out_formatByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-out-format.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_out_formatByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-out-format.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_revsort_abstractByString() throws Exception { - java.net.URL url = getClass().getResource("valid_revsort-abstract.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_revsort_abstractByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_revsort-abstract.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_revsort_abstractByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_revsort-abstract.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_009ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-009.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_009ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-009.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_009ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-009.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwd_nolimitByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-nolimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwd_nolimitByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-nolimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwd_nolimitByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-nolimit.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_wc4_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_wc4-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_wc4_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_wc4-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_wc4_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_wc4-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_step_valuefrom5_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom5-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_step_valuefrom5_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom5-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_step_valuefrom5_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom5-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_echo_file_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-file-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_echo_file_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-file-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_echo_file_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-file-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_step_valuefrom_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_step_valuefrom_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_step_valuefrom_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_output_arrays_file_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_output-arrays-file-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_output_arrays_file_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_output-arrays-file-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_output_arrays_file_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_output-arrays-file-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_echo_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_echo_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_echo_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat_from_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat_from_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat_from_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_fail_unconnectedByString() throws Exception { - java.net.URL url = getClass().getResource("valid_fail-unconnected.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_fail_unconnectedByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_fail-unconnected.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_fail_unconnectedByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_fail-unconnected.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_symlink_illegalByString() throws Exception { - java.net.URL url = getClass().getResource("valid_symlink-illegal.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_symlink_illegalByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_symlink-illegal.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_symlink_illegalByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_symlink-illegal.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_actionByString() throws Exception { - java.net.URL url = getClass().getResource("valid_action.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_actionByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_action.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_actionByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_action.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_timelimit4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_timelimit4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_timelimit4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_echo_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_echo_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_echo_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_echo-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_step_valuefrom2_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_step_valuefrom2_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_step_valuefrom2_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_valueFrom_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valueFrom-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_valueFrom_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valueFrom-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_valueFrom_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-valueFrom-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines18_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines18-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines18_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines18-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines18_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines18-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_dynresreq_workflowByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_dynresreq_workflowByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_dynresreq_workflowByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_glob_directoryByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_glob_directory.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_glob_directoryByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_glob_directory.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_glob_directoryByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_glob_directory.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cat_from_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cat_from_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cat_from_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat-from-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_io_int_optional_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-int-optional-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_io_int_optional_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-int-optional-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_io_int_optional_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-int-optional-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_revsortByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_revsort.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_revsortByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_revsort.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_revsortByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_revsort.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwd_passthrough4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-passthrough4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwd_passthrough4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-passthrough4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwd_passthrough4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-passthrough4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_initialworkdirrequirement_docker_outByString() throws Exception { - java.net.URL url = getClass().getResource("valid_initialworkdirrequirement-docker-out.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_initialworkdirrequirement_docker_outByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_initialworkdirrequirement-docker-out.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_initialworkdirrequirement_docker_outByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_initialworkdirrequirement-docker-out.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_sd_secondaryFilesByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-sd-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_sd_secondaryFilesByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-sd-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_sd_secondaryFilesByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-sd-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_formattest2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_formattest2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_formattest2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_formattest2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_formattest2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_formattest2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_listing_shallow2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_shallow2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_listing_shallow2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_shallow2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_listing_shallow2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_shallow2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_inpdir_update_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_inpdir_update_wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_inpdir_update_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_inpdir_update_wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_inpdir_update_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_inpdir_update_wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cat4_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat4-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cat4_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat4-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cat4_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat4-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_004ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-004.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_004ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-004.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_004ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-004.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_in_secondaryFiles_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_in_secondaryFiles_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_in_secondaryFiles_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-secondaryFiles-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_shellcharByString() throws Exception { - java.net.URL url = getClass().getResource("valid_shellchar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_shellcharByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_shellchar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_shellcharByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_shellchar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_listing_none2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_none2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_listing_none2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_none2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_listing_none2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_listing_none2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_step_valuefrom4_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom4-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_step_valuefrom4_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom4-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_step_valuefrom4_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom4-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_exit_successByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_exit-success.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_exit_successByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_exit-success.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_exit_successByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_exit-success.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_template_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_template-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_template_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_template-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_template_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_template-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_initialwork_pathByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_initialwork-path.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_initialwork_pathByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_initialwork-path.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_initialwork_pathByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_initialwork-path.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_valueFrom_constantByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_valueFrom-constant.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_valueFrom_constantByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_valueFrom-constant.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_valueFrom_constantByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_valueFrom-constant.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_env_wf1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_env_wf1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_env_wf1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_010_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-010_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_010_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-010_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_010_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-010_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_with_defaultsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-with-defaults.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_with_defaultsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-with-defaults.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_with_defaultsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-with-defaults.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_networkaccessByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_networkaccess.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_networkaccessByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_networkaccess.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_networkaccessByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_networkaccess.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_schemadef_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_schemadef-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_schemadef_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_schemadef-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_schemadef_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_schemadef-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dynresreq_workflowByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dynresreq_workflowByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dynresreq_workflowByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dir3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dir3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dir3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dir3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dir3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dir3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dynresreq_workflow_inputdefaultByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow-inputdefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dynresreq_workflow_inputdefaultByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow-inputdefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dynresreq_workflow_inputdefaultByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow-inputdefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines6_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines6-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines6_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines6-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines6_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines6-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_null_expression1_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_null-expression1-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_null_expression1_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_null-expression1-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_null_expression1_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_null-expression1-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_imported_hintByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_imported-hint.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_imported_hintByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_imported-hint.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_imported_hintByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_imported-hint.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_013ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-013.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_013ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-013.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_013ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-013.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwd_fileobjs1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-fileobjs1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwd_fileobjs1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-fileobjs1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwd_fileobjs1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-fileobjs1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_test_cwl_out2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_test-cwl-out2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_test_cwl_out2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_test-cwl-out2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_test_cwl_out2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_test-cwl-out2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines16_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines16-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines16_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines16-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines16_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines16-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwd_passthrough1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwd_passthrough1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwd_passthrough1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-passthrough1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_envvar2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_envvar2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_envvar2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_envvar2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_envvar2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_envvar2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_step_valuefrom2_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_step-valuefrom2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_step_valuefrom2_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_step-valuefrom2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_step_valuefrom2_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_step-valuefrom2-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_dynresreq_defaultByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_dynresreq_defaultByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_dynresreq_defaultByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_echo_file_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-file-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_echo_file_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-file-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_echo_file_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_echo-file-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_template_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_template-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_template_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_template-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_template_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_template-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stdout_chained_commandsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stdout_chained_commands.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stdout_chained_commandsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stdout_chained_commands.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stdout_chained_commandsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stdout_chained_commands.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_formattest3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_formattest3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_formattest3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_formattest3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_formattest3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_formattest3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_js_input_recordByString() throws Exception { - java.net.URL url = getClass().getResource("valid_js-input-record.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_js_input_recordByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_js-input-record.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_js_input_recordByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_js-input-record.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dynresreq_workflow_tooldefaultByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow-tooldefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dynresreq_workflow_tooldefaultByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow-tooldefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dynresreq_workflow_tooldefaultByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-workflow-tooldefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_test_cwl_outByString() throws Exception { - java.net.URL url = getClass().getResource("valid_test-cwl-out.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_test_cwl_outByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_test-cwl-out.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_test_cwl_outByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_test-cwl-out.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_multiple_input_feature_requirementByString() throws Exception { - java.net.URL url = getClass().getResource("valid_multiple_input_feature_requirement.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_multiple_input_feature_requirementByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_multiple_input_feature_requirement.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_multiple_input_feature_requirementByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_multiple_input_feature_requirement.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dynresreq_defaultByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dynresreq_defaultByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dynresreq_defaultByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-default.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_in_formatByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-format.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_in_formatByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-format.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_in_formatByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-in-format.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_import_schema_def_packedByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_import_schema-def_packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_import_schema_def_packedByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_import_schema-def_packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_import_schema_def_packedByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_import_schema-def_packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_exitcodeByString() throws Exception { - java.net.URL url = getClass().getResource("valid_exitcode.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_exitcodeByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_exitcode.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_exitcodeByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_exitcode.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwd_container_entryname3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwd_container_entryname3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwd_container_entryname3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-container-entryname3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_file_literal_exByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_file-literal-ex.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_file_literal_exByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_file-literal-ex.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_file_literal_exByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_file-literal-ex.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_sorttoolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_sorttool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_sorttoolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_sorttool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_sorttoolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_sorttool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_import_schema_def_packedByString() throws Exception { - java.net.URL url = getClass().getResource("valid_import_schema-def_packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_import_schema_def_packedByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_import_schema-def_packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_import_schema_def_packedByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_import_schema-def_packed.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_linkfileByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_linkfile.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_linkfileByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_linkfile.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_linkfileByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_linkfile.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cat3_tool_shortcutByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat3-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cat3_tool_shortcutByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat3-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cat3_tool_shortcutByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat3-tool-shortcut.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines4_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines4-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines4_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines4-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines4_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines4-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_checkByString() throws Exception { - java.net.URL url = getClass().getResource("valid_check.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_checkByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_check.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_checkByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_check.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_updateval_inplaceByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_updateval_inplace.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_updateval_inplaceByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_updateval_inplace.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_updateval_inplaceByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_updateval_inplace.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dir6ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dir6.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dir6ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dir6.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dir6ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dir6.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dynresreq_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dynresreq_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dynresreq_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dynresreq-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines11_null_step_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines11-null-step-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines11_null_step_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines11-null-step-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines11_null_step_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines11-null-step-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_006ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-006.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_006ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-006.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_006ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-006.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_rename_inputsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_rename-inputs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_rename_inputsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_rename-inputs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_rename_inputsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_rename-inputs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_step_valuefrom5_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_step-valuefrom5-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_step_valuefrom5_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_step-valuefrom5-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_step_valuefrom5_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_step-valuefrom5-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_barByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_bar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_barByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_bar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_barByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_bar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_io_int_default_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_io_int_default_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_io_int_default_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_io-int-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_count_lines5_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines5-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_count_lines5_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines5-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_count_lines5_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_count-lines5-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_outputeval_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record_outputeval_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_outputeval_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record_outputeval_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_outputeval_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record_outputeval_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_scatter_valueFrom_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valueFrom-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_scatter_valueFrom_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valueFrom-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_scatter_valueFrom_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valueFrom-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines18_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines18-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines18_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines18-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines18_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines18-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwd_jsondump2_nlByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump2-nl.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwd_jsondump2_nlByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump2-nl.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwd_jsondump2_nlByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwd-jsondump2-nl.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_docker_output_dirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_docker-output-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_docker_output_dirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_docker-output-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_docker_output_dirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_docker-output-dir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines19_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines19-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines19_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines19-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines19_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines19-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dir4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dir4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dir4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dir4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dir4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dir4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cat_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cat_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cat_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cat-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat3_nodockerByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-nodocker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat3_nodockerByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-nodocker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat3_nodockerByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat3-nodocker.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_params2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_params2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_params2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_params2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_params2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_params2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_envvarByString() throws Exception { - java.net.URL url = getClass().getResource("valid_envvar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_envvarByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_envvar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_envvarByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_envvar.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_rename_outputsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_rename-outputs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_rename_outputsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_rename-outputs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_rename_outputsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_rename-outputs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_wf4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_wf4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_scatter_valuefrom_wf4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-valuefrom-wf4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines15_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines15-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines15_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines15-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines15_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines15-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_io_int_default_tool_and_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-int-default-tool-and-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_io_int_default_tool_and_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-int-default-tool-and-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_io_int_default_tool_and_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-int-default-tool-and-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_env_tool4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-tool4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_env_tool4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-tool4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_env_tool4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_env-tool4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_io_file_or_filesByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-file-or-files.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_io_file_or_filesByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-file-or-files.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_io_file_or_filesByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-file-or-files.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_sum_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_sum-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_sum_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_sum-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_sum_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_sum-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_schemadef_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_schemadef-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_schemadef_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_schemadef-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_schemadef_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_schemadef-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_bash_line_continuationByString() throws Exception { - java.net.URL url = getClass().getResource("valid_bash-line-continuation.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_bash_line_continuationByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_bash-line-continuation.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_bash_line_continuationByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_bash-line-continuation.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_steplevel_resreqByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_steplevel-resreq.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_steplevel_resreqByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_steplevel-resreq.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_steplevel_resreqByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_steplevel-resreq.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_dynresreq_workflow_stepdefaultByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow-stepdefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_dynresreq_workflow_stepdefaultByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow-stepdefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_dynresreq_workflow_stepdefaultByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_dynresreq-workflow-stepdefault.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines8_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines8-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines8_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines8-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines8_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines8-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_record_orderByString() throws Exception { - java.net.URL url = getClass().getResource("valid_record-order.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_record_orderByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_record-order.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_record_orderByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_record-order.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_catByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_catByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_catByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_wf_loadContents4ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wf-loadContents4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_wf_loadContents4ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wf-loadContents4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_wf_loadContents4ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_wf-loadContents4.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_default_pathByString() throws Exception { - java.net.URL url = getClass().getResource("valid_default_path.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_default_pathByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_default_path.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_default_pathByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_default_path.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_io_file_or_filesByString() throws Exception { - java.net.URL url = getClass().getResource("valid_io-file-or-files.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_io_file_or_filesByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_io-file-or-files.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_io_file_or_filesByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_io-file-or-files.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_paramsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_params.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_paramsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_params.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_paramsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_params.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_optional_numerical_output_0ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_optional-numerical-output-0.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_optional_numerical_output_0ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_optional-numerical-output-0.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_optional_numerical_output_0ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_optional-numerical-output-0.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_initialwork_pathByString() throws Exception { - java.net.URL url = getClass().getResource("valid_initialwork-path.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_initialwork_pathByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_initialwork-path.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_initialwork_pathByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_initialwork-path.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_parseInt_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_parseInt-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_parseInt_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_parseInt-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_parseInt_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_parseInt-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_010_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-010_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_010_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-010_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_010_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-010_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_step_valuefrom3_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_step_valuefrom3_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_step_valuefrom3_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_step-valuefrom3-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_namerootByString() throws Exception { - java.net.URL url = getClass().getResource("valid_nameroot.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_namerootByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_nameroot.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_namerootByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_nameroot.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_exit_successByString() throws Exception { - java.net.URL url = getClass().getResource("valid_exit-success.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_exit_successByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_exit-success.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_exit_successByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_exit-success.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_stage_file_array_basenameByString() throws Exception { - java.net.URL url = getClass().getResource("valid_stage_file_array_basename.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_stage_file_array_basenameByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_stage_file_array_basename.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_stage_file_array_basenameByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_stage_file_array_basename.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_record_sd_secondaryFilesByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-sd-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_record_sd_secondaryFilesByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-sd-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_record_sd_secondaryFilesByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-sd-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_tool_v12ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_tool-v12.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_tool_v12ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_tool-v12.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_tool_v12ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_tool-v12.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_scatter_wf3ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_scatter_wf3ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_scatter_wf3ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_scatter-wf3.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwd_jsondump2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-jsondump2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwd_jsondump2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-jsondump2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwd_jsondump2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-jsondump2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_scatter_wf1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_scatter_wf1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_scatter_wf1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_scatter-wf1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cat4_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cat4-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cat4_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cat4-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cat4_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cat4-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_parseInt_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_parseInt-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_parseInt_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_parseInt-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_parseInt_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_parseInt-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_record_out_secondaryFilesByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-out-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_record_out_secondaryFilesByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-out-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_record_out_secondaryFilesByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_record-out-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_null_expression3_toolByString() throws Exception { - java.net.URL url = getClass().getResource("valid_null-expression3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_null_expression3_toolByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_null-expression3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_null_expression3_toolByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_null-expression3-tool.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_timelimit2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_timelimit2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_timelimit2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_timelimit2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_mkdirByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_mkdir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_mkdirByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_mkdir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_mkdirByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_mkdir.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_timelimit5ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_timelimit5ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_timelimit5ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_timelimit5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_stage_unprovided_fileByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stage-unprovided-file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_stage_unprovided_fileByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stage-unprovided-file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_stage_unprovided_fileByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stage-unprovided-file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_cond_wf_012ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-012.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_012ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-012.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_cond_wf_012ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_cond-wf-012.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_optional_numerical_output_0ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_optional-numerical-output-0.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_optional_numerical_output_0ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_optional-numerical-output-0.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_optional_numerical_output_0ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_optional-numerical-output-0.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_stdout_chained_commandsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stdout_chained_commands.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_stdout_chained_commandsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stdout_chained_commands.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_stdout_chained_commandsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_stdout_chained_commands.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_updateval_inplaceByString() throws Exception { - java.net.URL url = getClass().getResource("valid_updateval_inplace.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_updateval_inplaceByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_updateval_inplace.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_updateval_inplaceByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_updateval_inplace.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_006_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-006_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_006_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-006_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_006_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-006_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_searchByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_search.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_searchByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_search.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_searchByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_search.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_io_file_default_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-file-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_io_file_default_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-file-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_io_file_default_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-file-default-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_count_lines11_extra_step_wfByString() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_count_lines11_extra_step_wfByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_count_lines11_extra_step_wfByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_count-lines11-extra-step-wf.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_cond_wf_003_1_nojsByString() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-003.1_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_cond_wf_003_1_nojsByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-003.1_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_cond_wf_003_1_nojsByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_cond-wf-003.1_nojs.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_io_any_wf_1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-any-wf-1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_io_any_wf_1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-any-wf-1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_io_any_wf_1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_io-any-wf-1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_iwd_jsondump1ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-jsondump1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_iwd_jsondump1ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-jsondump1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_iwd_jsondump1ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_iwd-jsondump1.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_iwdr_dir_literal_real_fileByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwdr_dir_literal_real_file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_iwdr_dir_literal_real_fileByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwdr_dir_literal_real_file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_iwdr_dir_literal_real_fileByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_iwdr_dir_literal_real_file.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_runtime_paths_distinctByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_runtime-paths-distinct.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_runtime_paths_distinctByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_runtime-paths-distinct.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_runtime_paths_distinctByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_runtime-paths-distinct.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_dir5ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_dir5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_dir5ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_dir5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_dir5ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_dir5.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_packed_envvar2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_envvar2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_packed_envvar2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_envvar2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_packed_envvar2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_packed_envvar2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } - @org.junit.Test - public void testvalid_listing_deep2ByString() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_deep2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - RootLoader.loadDocument(yaml, url.toString()); - } - - @org.junit.Test - public void testvalid_listing_deep2ByPath() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_deep2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - RootLoader.loadDocument(resPath); - } - - @org.junit.Test - public void testvalid_listing_deep2ByMap() throws Exception { - java.net.URL url = getClass().getResource("valid_listing_deep2.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - String yaml = new String(java.nio.file.Files.readAllBytes(resPath), "UTF8"); - java.util.Map doc; - doc = (java.util.Map) YamlUtils.mapFromString(yaml); - RootLoader.loadDocument(doc, url.toString()); - } -} diff --git a/src/test/java/org/w3id/cwl/cwl1_2/utils/PackedWorkflowClassTest.java b/src/test/java/org/w3id/cwl/cwl1_2/utils/PackedWorkflowClassTest.java deleted file mode 100644 index 8fd07d98..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_2/utils/PackedWorkflowClassTest.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.net.URISyntaxException; -import java.nio.file.Paths; -import java.util.List; -import org.junit.Assert; -import org.junit.Test; -import org.w3id.cwl.cwl1_2.Process; -import org.w3id.cwl.cwl1_2.Workflow; -import org.w3id.cwl.cwl1_2.WorkflowStep; -import org.w3id.cwl.cwl1_2.WorkflowStepInput; - -public class PackedWorkflowClassTest { - List doc; - - @SuppressWarnings("unchecked") - public PackedWorkflowClassTest() throws URISyntaxException { - super(); - this.doc = - (List) - RootLoader.loadDocument( - Paths.get(getClass().getResource("valid_scatter-wf4.cwl").toURI())); - } - - @Test - public void className() { - Workflow workflow = (Workflow) doc.get(1); - Assert.assertEquals("WorkflowImpl", workflow.getClass().getSimpleName()); - } - - @Test - public void workflowStepInputSources() { - Workflow workflow = (Workflow) doc.get(1); - String workflow_id = workflow.getId().get(); - WorkflowStep step1 = (WorkflowStep) workflow.getSteps().get(0); - List inputs = step1.getIn(); - WorkflowStepInput step1_input1 = (WorkflowStepInput) inputs.get(0); - Assert.assertEquals(workflow_id + "/step1/echo_in1", step1_input1.getId().get()); - Assert.assertEquals(workflow_id + "/inp1", step1_input1.getSource()); - } -} diff --git a/src/test/java/org/w3id/cwl/cwl1_2/utils/RequirementsClassTest.java b/src/test/java/org/w3id/cwl/cwl1_2/utils/RequirementsClassTest.java deleted file mode 100644 index 811aec59..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_2/utils/RequirementsClassTest.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.net.URISyntaxException; -import org.junit.Assert; -import org.junit.Test; -import org.w3id.cwl.cwl1_2.CWLVersion; -import org.w3id.cwl.cwl1_2.InlineJavascriptRequirement; -import org.w3id.cwl.cwl1_2.Process; - -public class RequirementsClassTest { - Process doc; - - public RequirementsClassTest() throws URISyntaxException { - super(); - this.doc = - (Process) - RootLoader.loadDocument( - java.nio.file.Paths.get( - getClass().getResource("valid_writable-dir-docker.cwl").toURI())); - } - - @Test - public void className() { - Assert.assertEquals("CommandLineToolImpl", doc.getClass().getSimpleName()); - } - - @Test - public void version() { - java.util.Optional version = doc.getCwlVersion(); - Assert.assertTrue(version.isPresent()); - Assert.assertEquals(CWLVersion.V1_2, version.get()); - } - - @Test - public void hints() { - java.util.Optional> hints = doc.getHints(); - Assert.assertTrue(hints.isPresent()); - java.util.List hintList = hints.get(); - Assert.assertEquals(1, hintList.size()); - } - - @Test - public void reqs() { - java.util.Optional> reqs = doc.getRequirements(); - Assert.assertTrue(reqs.isPresent()); - java.util.List reqList = reqs.get(); - Assert.assertEquals(2, reqList.size()); - InlineJavascriptRequirement reqOne = (InlineJavascriptRequirement) reqList.get(0); - Assert.assertEquals("InlineJavascriptRequirementImpl", reqOne.getClass().getSimpleName()); - Assert.assertNotEquals( - "InlineJavascriptRequirementImpl", reqList.get(1).getClass().getSimpleName()); - } -} diff --git a/src/test/java/org/w3id/cwl/cwl1_2/utils/SchemaDefTest.java b/src/test/java/org/w3id/cwl/cwl1_2/utils/SchemaDefTest.java deleted file mode 100644 index 3e890d21..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_2/utils/SchemaDefTest.java +++ /dev/null @@ -1,42 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.util.List; -import org.junit.Assert; -import org.w3id.cwl.cwl1_2.InputRecordSchema; -import org.w3id.cwl.cwl1_2.Process; -import org.w3id.cwl.cwl1_2.SchemaDefRequirement; - -public class SchemaDefTest { - - @org.junit.Test - public void testvalid_anon_enum_inside_array_inside_schemadef() throws Exception { - java.net.URL url = getClass().getResource("valid_anon_enum_inside_array_inside_schemadef.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - Process doc = (Process) RootLoader.loadDocument(resPath); - java.util.Optional> reqs = doc.getRequirements(); - Assert.assertTrue(reqs.isPresent()); - java.util.List reqList = reqs.get(); - Assert.assertEquals(reqList.size(), 1); - SchemaDefRequirement schemaReq = (SchemaDefRequirement) reqList.get(0); - List schemaTypes = schemaReq.getTypes(); - for (Object schemaType : schemaTypes) { - Assert.assertTrue(schemaType instanceof InputRecordSchema); - } - } - - @org.junit.Test - public void testvalid_record_sd_secondaryFiles() throws Exception { - java.net.URL url = getClass().getResource("valid_record-sd-secondaryFiles.cwl"); - java.nio.file.Path resPath = java.nio.file.Paths.get(url.toURI()); - Process doc = (Process) RootLoader.loadDocument(resPath); - java.util.Optional> reqs = doc.getRequirements(); - Assert.assertTrue(reqs.isPresent()); - java.util.List reqList = reqs.get(); - Assert.assertEquals(reqList.size(), 1); - SchemaDefRequirement schemaReq = (SchemaDefRequirement) reqList.get(0); - List schemaTypes = schemaReq.getTypes(); - for (Object schemaType : schemaTypes) { - Assert.assertTrue(schemaType instanceof InputRecordSchema); - } - } -} diff --git a/src/test/java/org/w3id/cwl/cwl1_2/utils/SecondaryFilesTest.java b/src/test/java/org/w3id/cwl/cwl1_2/utils/SecondaryFilesTest.java deleted file mode 100644 index 6bf5d274..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_2/utils/SecondaryFilesTest.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.net.URISyntaxException; -import java.nio.file.Paths; -import java.util.List; -import org.junit.Assert; -import org.junit.Test; -import org.w3id.cwl.cwl1_2.Process; -import org.w3id.cwl.cwl1_2.SecondaryFileSchema; -import org.w3id.cwl.cwl1_2.Workflow; -import org.w3id.cwl.cwl1_2.WorkflowInputParameter; - -public class SecondaryFilesTest { - List doc; - - @SuppressWarnings("unchecked") - public SecondaryFilesTest() throws URISyntaxException { - super(); - this.doc = - (List) - RootLoader.loadDocument(Paths.get(getClass().getResource("525.cwl").toURI())); - } - - @SuppressWarnings("unchecked") - @Test - public void workflowInputSecFiles() { - Workflow workflow = (Workflow) doc.get(0); - String workflow_id = workflow.getId().get(); - List inputs = workflow.getInputs(); - WorkflowInputParameter wf_file_input = (WorkflowInputParameter) inputs.get(1); - Assert.assertEquals(workflow_id + "/wf_file_input", wf_file_input.getId().get()); - List sec_files_l1 = - (List) wf_file_input.getSecondaryFiles(); - Assert.assertEquals(1, sec_files_l1.size()); - SecondaryFileSchema sec_files1 = sec_files_l1.get(0); - Assert.assertEquals(".also", sec_files1.getPattern()); - Assert.assertEquals(true, sec_files1.getRequired()); - WorkflowInputParameter wf_file_input_array = (WorkflowInputParameter) inputs.get(2); - Assert.assertEquals(workflow_id + "/wf_file_input_array", wf_file_input_array.getId().get()); - List sec_files_l2 = - (List) wf_file_input_array.getSecondaryFiles(); - Assert.assertEquals(1, sec_files_l2.size()); - SecondaryFileSchema sec_files2 = sec_files_l2.get(0); - Assert.assertEquals(".also", sec_files2.getPattern()); - Assert.assertEquals(true, sec_files2.getRequired()); - } -} diff --git a/src/test/java/org/w3id/cwl/cwl1_2/utils/ShortnameTest.java b/src/test/java/org/w3id/cwl/cwl1_2/utils/ShortnameTest.java deleted file mode 100644 index 5644e865..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_2/utils/ShortnameTest.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import org.junit.Assert; -import org.junit.Test; - -public class ShortnameTest { - @Test - public void testShortname() { - Assert.assertEquals(Uris.shortname( - "file:/Users/jdidion/projects/cwlScala/target/test-classes/CommandLineTools/conformance/#anon_enum_inside_array_inside_schemadef.cwl/first/user_type_2/species/homo_sapiens"), - "homo_sapiens"); - Assert.assertEquals(Uris.shortname( - "file:///home/michael/cwljava/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_anon_enum_inside_array_inside_schemadef.cwl#vcf2maf_params/ncbi_build/GRCh37"), - "GRCh37"); - // Below are from https://w3id.org/cwl/v1.2/SchemaSalad.html#Short_names - Assert.assertEquals(Uris.shortname("http://example.com/foo"), "foo"); - Assert.assertEquals(Uris.shortname("http://example.com/#bar"), "bar"); - Assert.assertEquals(Uris.shortname("http://example.com/foo/bar"), "bar"); - Assert.assertEquals(Uris.shortname("http://example.com/foo#bar"), "bar"); - Assert.assertEquals(Uris.shortname("http://example.com/#foo/bar"), "bar"); - Assert.assertEquals(Uris.shortname("http://example.com/foo#bar/baz"), "baz"); - } - -} diff --git a/src/test/java/org/w3id/cwl/cwl1_2/utils/WorkflowClassTest.java b/src/test/java/org/w3id/cwl/cwl1_2/utils/WorkflowClassTest.java deleted file mode 100644 index e9a3fc72..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_2/utils/WorkflowClassTest.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.net.URISyntaxException; -import org.junit.Assert; -import org.junit.Test; -import org.w3id.cwl.cwl1_2.CWLVersion; -import org.w3id.cwl.cwl1_2.Process; - -public class WorkflowClassTest { - Process doc; - - public WorkflowClassTest() throws URISyntaxException { - super(); - this.doc = - (Process) - RootLoader.loadDocument( - java.nio.file.Paths.get( - getClass().getResource("valid_count-lines1-wf.cwl").toURI())); - } - - @Test - public void className() { - Assert.assertEquals("WorkflowImpl", doc.getClass().getSimpleName()); - } - - @Test - public void version() { - java.util.Optional version = doc.getCwlVersion(); - Assert.assertTrue(version.isPresent()); - Assert.assertEquals(CWLVersion.V1_2, version.get()); - } -} diff --git a/src/test/java/org/w3id/cwl/cwl1_2/utils/YamlUtilsTest.java b/src/test/java/org/w3id/cwl/cwl1_2/utils/YamlUtilsTest.java deleted file mode 100644 index 7c2df684..00000000 --- a/src/test/java/org/w3id/cwl/cwl1_2/utils/YamlUtilsTest.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.w3id.cwl.cwl1_2.utils; - -import java.util.Map; -import org.junit.Assert; -import org.junit.Test; - -public class YamlUtilsTest { - @Test - public void testSimpleLoad() { - final String yamlStr = "moo: cow\nbark: dog\n"; - final Map loaded = YamlUtils.mapFromString(yamlStr); - Assert.assertEquals(loaded.get("moo"), "cow"); - Assert.assertEquals(loaded.get("bark"), "dog"); - } -} diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/525.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/525.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/525.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/525.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/capture_kit.yml b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/capture_kit.yml similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/capture_kit.yml rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/capture_kit.yml diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/envvar.yml b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/envvar.yml similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/envvar.yml rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/envvar.yml diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/params_inc.yml b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/params_inc.yml similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/params_inc.yml rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/params_inc.yml diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/record-in-format.cwl.json b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/record-in-format.cwl.json similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/record-in-format.cwl.json rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/record-in-format.cwl.json diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/schemadef-type.yml b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/schemadef-type.yml similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/schemadef-type.yml rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/schemadef-type.yml diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/underscore.js b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/underscore.js similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/underscore.js rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/underscore.js diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_anon_enum_inside_array.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_anon_enum_inside_array.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_anon_enum_inside_array.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_anon_enum_inside_array.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_anon_enum_inside_array_inside_schemadef.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_anon_enum_inside_array_inside_schemadef.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_anon_enum_inside_array_inside_schemadef.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_anon_enum_inside_array_inside_schemadef.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_any-type-compat.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_any-type-compat.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_any-type-compat.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_any-type-compat.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_basename-fields-test.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_basename-fields-test.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_basename-fields-test.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_basename-fields-test.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_binding-test.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_binding-test.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_binding-test.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_binding-test.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_bool-empty-inputbinding.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_bool-empty-inputbinding.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_bool-empty-inputbinding.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_bool-empty-inputbinding.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_bwa-mem-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_bwa-mem-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_bwa-mem-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_bwa-mem-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat-from-dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat-from-dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat-from-dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat-from-dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat1-testcli.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat1-testcli.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat1-testcli.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat1-testcli.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat3-from-dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat3-from-dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat3-from-dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat3-from-dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat3-nodocker.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat3-nodocker.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat3-nodocker.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat3-nodocker.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat3-tool-docker.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat3-tool-docker.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat3-tool-docker.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat3-tool-docker.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat3-tool-mediumcut.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat3-tool-mediumcut.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat3-tool-mediumcut.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat3-tool-mediumcut.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat3-tool-shortcut.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat3-tool-shortcut.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat3-tool-shortcut.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat3-tool-shortcut.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat3-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat3-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat3-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat3-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat4-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat4-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat4-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat4-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat5-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat5-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_cat5-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_cat5-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_conflict-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_conflict-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_conflict-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_conflict-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines1-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines1-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines1-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines1-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines1-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines1-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines1-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines1-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines10-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines10-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines10-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines10-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines11-extra-step-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines11-extra-step-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines11-extra-step-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines11-extra-step-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines11-extra-step-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines11-extra-step-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines11-extra-step-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines11-extra-step-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines11-null-step-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines11-null-step-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines11-null-step-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines11-null-step-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines11-null-step-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines11-null-step-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines11-null-step-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines11-null-step-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines11-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines11-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines11-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines11-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines11-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines11-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines11-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines11-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines12-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines12-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines12-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines12-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines13-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines13-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines13-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines13-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines14-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines14-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines14-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines14-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines15-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines15-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines15-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines15-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines16-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines16-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines16-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines16-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines17-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines17-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines17-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines17-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines18-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines18-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines18-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines18-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines2-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines2-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines2-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines2-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines3-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines3-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines3-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines3-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines4-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines4-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines4-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines4-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines5-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines5-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines5-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines5-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines6-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines6-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines6-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines6-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines7-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines7-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines7-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines7-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines8-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines8-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines8-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines8-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines8-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines8-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines8-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines8-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines9-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines9-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines9-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines9-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines9-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines9-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_count-lines9-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_count-lines9-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_default_path.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_default_path.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_default_path.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_default_path.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dir2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dir2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dir2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dir2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dir3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dir3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dir3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dir3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dir4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dir4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dir4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dir4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dir5.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dir5.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dir5.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dir5.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dir6.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dir6.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dir6.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dir6.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dir7.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dir7.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dir7.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dir7.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_docker-array-secondaryfiles.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_docker-array-secondaryfiles.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_docker-array-secondaryfiles.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_docker-array-secondaryfiles.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_docker-output-dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_docker-output-dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_docker-output-dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_docker-output-dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_docker-run-cmd.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_docker-run-cmd.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_docker-run-cmd.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_docker-run-cmd.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dynresreq-default.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dynresreq-default.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dynresreq-default.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dynresreq-default.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dynresreq-dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dynresreq-dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dynresreq-dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dynresreq-dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dynresreq-workflow-inputdefault.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dynresreq-workflow-inputdefault.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dynresreq-workflow-inputdefault.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dynresreq-workflow-inputdefault.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dynresreq-workflow-stepdefault.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dynresreq-workflow-stepdefault.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dynresreq-workflow-stepdefault.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dynresreq-workflow-stepdefault.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dynresreq-workflow-tooldefault.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dynresreq-workflow-tooldefault.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dynresreq-workflow-tooldefault.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dynresreq-workflow-tooldefault.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dynresreq-workflow.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dynresreq-workflow.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dynresreq-workflow.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dynresreq-workflow.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dynresreq.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dynresreq.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_dynresreq.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_dynresreq.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_echo-file-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_echo-file-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_echo-file-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_echo-file-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_echo-position-expr.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_echo-position-expr.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_echo-position-expr.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_echo-position-expr.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_echo-tool-default.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_echo-tool-default.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_echo-tool-default.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_echo-tool-default.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_echo-tool-packed.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_echo-tool-packed.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_echo-tool-packed.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_echo-tool-packed.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_echo-tool-packed2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_echo-tool-packed2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_echo-tool-packed2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_echo-tool-packed2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_echo-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_echo-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_echo-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_echo-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_echo-wf-default.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_echo-wf-default.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_echo-wf-default.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_echo-wf-default.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_empty-array-input.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_empty-array-input.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_empty-array-input.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_empty-array-input.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_env-tool1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_env-tool1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_env-tool1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_env-tool1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_env-tool2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_env-tool2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_env-tool2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_env-tool2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_env-tool3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_env-tool3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_env-tool3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_env-tool3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_env-tool4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_env-tool4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_env-tool4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_env-tool4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_env-wf1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_env-wf1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_env-wf1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_env-wf1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_env-wf2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_env-wf2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_env-wf2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_env-wf2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_env-wf3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_env-wf3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_env-wf3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_env-wf3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_envvar.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_envvar.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_envvar.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_envvar.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_envvar2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_envvar2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_envvar2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_envvar2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_envvar3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_envvar3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_envvar3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_envvar3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_exit-success.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_exit-success.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_exit-success.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_exit-success.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_exitcode.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_exitcode.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_exitcode.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_exitcode.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_fail-unconnected.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_fail-unconnected.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_fail-unconnected.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_fail-unconnected.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_fail-unspecified-input.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_fail-unspecified-input.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_fail-unspecified-input.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_fail-unspecified-input.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_file-literal-ex.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_file-literal-ex.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_file-literal-ex.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_file-literal-ex.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_formattest.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_formattest.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_formattest.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_formattest.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_formattest2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_formattest2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_formattest2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_formattest2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_formattest3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_formattest3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_formattest3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_formattest3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_glob-expr-list.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_glob-expr-list.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_glob-expr-list.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_glob-expr-list.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_glob-path-error.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_glob-path-error.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_glob-path-error.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_glob-path-error.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_glob_directory.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_glob_directory.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_glob_directory.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_glob_directory.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_glob_test.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_glob_test.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_glob_test.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_glob_test.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_import_schema-def.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_import_schema-def.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_import_schema-def.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_import_schema-def.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_import_schema-def_packed.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_import_schema-def_packed.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_import_schema-def_packed.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_import_schema-def_packed.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_imported-hint.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_imported-hint.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_imported-hint.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_imported-hint.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_initialwork-path.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_initialwork-path.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_initialwork-path.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_initialwork-path.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_initialworkdir-glob-fullpath.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_initialworkdir-glob-fullpath.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_initialworkdir-glob-fullpath.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_initialworkdir-glob-fullpath.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_initialworkdirrequirement-docker-out.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_initialworkdirrequirement-docker-out.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_initialworkdirrequirement-docker-out.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_initialworkdirrequirement-docker-out.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_inline-js.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_inline-js.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_inline-js.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_inline-js.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_inp_update_wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_inp_update_wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_inp_update_wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_inp_update_wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_inpdir_update_wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_inpdir_update_wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_inpdir_update_wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_inpdir_update_wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_io-any-1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_io-any-1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_io-any-1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_io-any-1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_io-any-wf-1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_io-any-wf-1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_io-any-wf-1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_io-any-wf-1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_io-file-default-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_io-file-default-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_io-file-default-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_io-file-default-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_io-file-or-files.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_io-file-or-files.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_io-file-or-files.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_io-file-or-files.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_io-int-default-tool-and-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_io-int-default-tool-and-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_io-int-default-tool-and-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_io-int-default-tool-and-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_io-int-default-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_io-int-default-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_io-int-default-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_io-int-default-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_io-int-optional-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_io-int-optional-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_io-int-optional-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_io-int-optional-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_io-int-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_io-int-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_io-int-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_io-int-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_io-union-input-default-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_io-union-input-default-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_io-union-input-default-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_io-union-input-default-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_iwdr-entry.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_iwdr-entry.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_iwdr-entry.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_iwdr-entry.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_iwdr_with_nested_dirs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_iwdr_with_nested_dirs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_iwdr_with_nested_dirs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_iwdr_with_nested_dirs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_js-expr-req-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_js-expr-req-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_js-expr-req-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_js-expr-req-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_linkfile.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_linkfile.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_linkfile.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_linkfile.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_listing_deep1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_listing_deep1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_listing_deep1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_listing_deep1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_listing_deep2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_listing_deep2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_listing_deep2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_listing_deep2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_listing_none1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_listing_none1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_listing_none1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_listing_none1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_listing_none2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_listing_none2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_listing_none2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_listing_none2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_listing_none3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_listing_none3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_listing_none3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_listing_none3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_listing_shallow1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_listing_shallow1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_listing_shallow1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_listing_shallow1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_listing_shallow2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_listing_shallow2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_listing_shallow2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_listing_shallow2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_metadata.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_metadata.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_metadata.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_metadata.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_mkdir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_mkdir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_mkdir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_mkdir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_nameroot.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_nameroot.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_nameroot.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_nameroot.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_nested-array.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_nested-array.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_nested-array.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_nested-array.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_networkaccess.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_networkaccess.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_networkaccess.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_networkaccess.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_networkaccess2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_networkaccess2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_networkaccess2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_networkaccess2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_no-inputs-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_no-inputs-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_no-inputs-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_no-inputs-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_no-inputs-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_no-inputs-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_no-inputs-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_no-inputs-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_no-outputs-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_no-outputs-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_no-outputs-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_no-outputs-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_no-outputs-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_no-outputs-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_no-outputs-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_no-outputs-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_null-defined.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_null-defined.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_null-defined.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_null-defined.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_null-expression1-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_null-expression1-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_null-expression1-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_null-expression1-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_null-expression2-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_null-expression2-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_null-expression2-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_null-expression2-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_null-expression3-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_null-expression3-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_null-expression3-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_null-expression3-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_optional-numerical-output-0.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_optional-numerical-output-0.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_optional-numerical-output-0.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_optional-numerical-output-0.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_optional-output.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_optional-output.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_optional-output.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_optional-output.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_output-arrays-file-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_output-arrays-file-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_output-arrays-file-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_output-arrays-file-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_output-arrays-int-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_output-arrays-int-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_output-arrays-int-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_output-arrays-int-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_output-arrays-int.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_output-arrays-int.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_output-arrays-int.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_output-arrays-int.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_params.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_params.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_params.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_params.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_params2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_params2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_params2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_params2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_parseInt-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_parseInt-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_parseInt-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_parseInt-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_pass-unconnected.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_pass-unconnected.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_pass-unconnected.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_pass-unconnected.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_record-in-format.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_record-in-format.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_record-in-format.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_record-in-format.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_record-in-secondaryFiles-missing-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_record-in-secondaryFiles-missing-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_record-in-secondaryFiles-missing-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_record-in-secondaryFiles-missing-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_record-in-secondaryFiles-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_record-in-secondaryFiles-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_record-in-secondaryFiles-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_record-in-secondaryFiles-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_record-in-secondaryFiles.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_record-in-secondaryFiles.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_record-in-secondaryFiles.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_record-in-secondaryFiles.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_record-out-format.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_record-out-format.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_record-out-format.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_record-out-format.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_record-out-secondaryFiles.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_record-out-secondaryFiles.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_record-out-secondaryFiles.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_record-out-secondaryFiles.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_record-output-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_record-output-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_record-output-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_record-output-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_record-output.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_record-output.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_record-output.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_record-output.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_record-sd-secondaryFiles.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_record-sd-secondaryFiles.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_record-sd-secondaryFiles.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_record-sd-secondaryFiles.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_recursive-input-directory.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_recursive-input-directory.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_recursive-input-directory.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_recursive-input-directory.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_rename.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_rename.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_rename.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_rename.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_revsort-packed.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_revsort-packed.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_revsort-packed.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_revsort-packed.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_revsort.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_revsort.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_revsort.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_revsort.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_revtool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_revtool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_revtool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_revtool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_runtime-paths-distinct.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_runtime-paths-distinct.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_runtime-paths-distinct.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_runtime-paths-distinct.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-valueFrom-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-valueFrom-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-valueFrom-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-valueFrom-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-valuefrom-inputs-wf1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-valuefrom-inputs-wf1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-valuefrom-inputs-wf1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-valuefrom-inputs-wf1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-valuefrom-wf1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-valuefrom-wf1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-valuefrom-wf1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-valuefrom-wf1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-valuefrom-wf2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-valuefrom-wf2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-valuefrom-wf2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-valuefrom-wf2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-valuefrom-wf3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-valuefrom-wf3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-valuefrom-wf3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-valuefrom-wf3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-valuefrom-wf4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-valuefrom-wf4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-valuefrom-wf4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-valuefrom-wf4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-valuefrom-wf5.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-valuefrom-wf5.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-valuefrom-wf5.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-valuefrom-wf5.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-valuefrom-wf6.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-valuefrom-wf6.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-valuefrom-wf6.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-valuefrom-wf6.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-wf1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-wf1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-wf1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-wf1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-wf2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-wf2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-wf2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-wf2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-wf3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-wf3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-wf3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-wf3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-wf4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-wf4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_scatter-wf4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_scatter-wf4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_schemadef-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_schemadef-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_schemadef-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_schemadef-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_schemadef-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_schemadef-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_schemadef-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_schemadef-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_search.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_search.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_search.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_search.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_shellchar.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_shellchar.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_shellchar.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_shellchar.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_shellchar2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_shellchar2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_shellchar2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_shellchar2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_size-expression-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_size-expression-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_size-expression-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_size-expression-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_sorttool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_sorttool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_sorttool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_sorttool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stage-array-dirs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stage-array-dirs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stage-array-dirs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stage-array-dirs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stage-array.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stage-array.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stage-array.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stage-array.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stage-unprovided-file.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stage-unprovided-file.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stage-unprovided-file.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stage-unprovided-file.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stage_file_array.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stage_file_array.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stage_file_array.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stage_file_array.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stage_file_array_basename.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stage_file_array_basename.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stage_file_array_basename.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stage_file_array_basename.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stage_file_array_basename_and_entryname.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stage_file_array_basename_and_entryname.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stage_file_array_basename_and_entryname.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stage_file_array_basename_and_entryname.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stagefile.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stagefile.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stagefile.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stagefile.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stderr-mediumcut.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stderr-mediumcut.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stderr-mediumcut.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stderr-mediumcut.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stderr-shortcut.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stderr-shortcut.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stderr-shortcut.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stderr-shortcut.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stderr.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stderr.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_stderr.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_stderr.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_step-valuefrom-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_step-valuefrom-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_step-valuefrom-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_step-valuefrom-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_step-valuefrom2-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_step-valuefrom2-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_step-valuefrom2-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_step-valuefrom2-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_step-valuefrom3-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_step-valuefrom3-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_step-valuefrom3-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_step-valuefrom3-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_step-valuefrom4-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_step-valuefrom4-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_step-valuefrom4-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_step-valuefrom4-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_step-valuefrom5-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_step-valuefrom5-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_step-valuefrom5-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_step-valuefrom5-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_steplevel-resreq.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_steplevel-resreq.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_steplevel-resreq.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_steplevel-resreq.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_sum-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_sum-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_sum-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_sum-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_sum-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_sum-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_sum-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_sum-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_symlink-illegal.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_symlink-illegal.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_symlink-illegal.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_symlink-illegal.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_symlink-legal.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_symlink-legal.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_symlink-legal.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_symlink-legal.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_template-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_template-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_template-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_template-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_test-cwl-out.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_test-cwl-out.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_test-cwl-out.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_test-cwl-out.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_test-cwl-out2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_test-cwl-out2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_test-cwl-out2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_test-cwl-out2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_timelimit.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_timelimit.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_timelimit.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_timelimit.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_timelimit2-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_timelimit2-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_timelimit2-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_timelimit2-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_timelimit2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_timelimit2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_timelimit2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_timelimit2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_timelimit3-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_timelimit3-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_timelimit3-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_timelimit3-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_timelimit3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_timelimit3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_timelimit3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_timelimit3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_timelimit4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_timelimit4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_timelimit4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_timelimit4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_timelimit5.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_timelimit5.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_timelimit5.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_timelimit5.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_tmap-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_tmap-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_tmap-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_tmap-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_touch.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_touch.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_touch.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_touch.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_updatedir_inplace.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_updatedir_inplace.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_updatedir_inplace.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_updatedir_inplace.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_updateval_inplace.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_updateval_inplace.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_updateval_inplace.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_updateval_inplace.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_valueFrom-constant.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_valueFrom-constant.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_valueFrom-constant.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_valueFrom-constant.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_vf-concat.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_vf-concat.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_vf-concat.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_vf-concat.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_wc-tool-shortcut.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_wc-tool-shortcut.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_wc-tool-shortcut.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_wc-tool-shortcut.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_wc-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_wc-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_wc-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_wc-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_wc2-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_wc2-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_wc2-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_wc2-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_wc3-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_wc3-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_wc3-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_wc3-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_wc4-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_wc4-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_wc4-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_wc4-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_wf-loadContents.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_wf-loadContents.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_wf-loadContents.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_wf-loadContents.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_wf-loadContents2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_wf-loadContents2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_wf-loadContents2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_wf-loadContents2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_wf-loadContents3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_wf-loadContents3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_wf-loadContents3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_wf-loadContents3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_wf-loadContents4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_wf-loadContents4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_wf-loadContents4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_wf-loadContents4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_writable-dir-docker.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_writable-dir-docker.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_writable-dir-docker.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_writable-dir-docker.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_writable-dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_writable-dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_1/utils/valid_writable-dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils/valid_writable-dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/525.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/525.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/525.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/525.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/EDAM.owl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/EDAM.owl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/EDAM.owl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/EDAM.owl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/action.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/action.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/action.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/action.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/args.py b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/args.py similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/args.py rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/args.py diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/bar.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/bar.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/bar.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/bar.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/capture_kit.yml b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/capture_kit.yml similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/capture_kit.yml rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/capture_kit.yml diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/cat-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/cat-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/cat-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/cat-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/cat.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/cat.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/cat.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/cat.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/check.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/check.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/check.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/check.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/count-lines1-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/count-lines1-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/count-lines1-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/count-lines1-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/count-lines1-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/count-lines1-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/count-lines1-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/count-lines1-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/dcterms.rdf b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/dcterms.rdf similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/dcterms.rdf rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/dcterms.rdf diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/dynresreq-default.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/dynresreq-default.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/dynresreq-default.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/dynresreq-default.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/dynresreq.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/dynresreq.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/dynresreq.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/dynresreq.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/echo-file-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/echo-file-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/echo-file-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/echo-file-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/echo-tool-default.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/echo-tool-default.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/echo-tool-default.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/echo-tool-default.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/echo-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/echo-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/echo-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/echo-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/env-tool1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/env-tool1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/env-tool1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/env-tool1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/env-tool2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/env-tool2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/env-tool2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/env-tool2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/envvar.yml b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/envvar.yml similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/envvar.yml rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/envvar.yml diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/fail-unspecified-input.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/fail-unspecified-input.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/fail-unspecified-input.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/fail-unspecified-input.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/foaf.rdf b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/foaf.rdf similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/foaf.rdf rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/foaf.rdf diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/foo.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/foo.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/foo.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/foo.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/gx_edam.ttl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/gx_edam.ttl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/gx_edam.ttl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/gx_edam.ttl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/hello.txt b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/hello.txt similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/hello.txt rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/hello.txt diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/inp-filelist.txt b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/inp-filelist.txt similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/inp-filelist.txt rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/inp-filelist.txt diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/io-any-1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/io-any-1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/io-any-1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/io-any-1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/loadit.py b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/loadit.py similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/loadit.py rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/loadit.py diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/mkdir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/mkdir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/mkdir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/mkdir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/mkfilelist.py b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/mkfilelist.py similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/mkfilelist.py rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/mkfilelist.py diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/null-expression3-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/null-expression3-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/null-expression3-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/null-expression3-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/params_inc.yml b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/params_inc.yml similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/params_inc.yml rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/params_inc.yml diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/parseInt-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/parseInt-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/parseInt-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/parseInt-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/record-in-format.cwl.json b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/record-in-format.cwl.json similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/record-in-format.cwl.json rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/record-in-format.cwl.json diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/record-in-secondaryFiles.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/record-in-secondaryFiles.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/record-in-secondaryFiles.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/record-in-secondaryFiles.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/record-output.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/record-output.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/record-output.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/record-output.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/rename-inputs.yml b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/rename-inputs.yml similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/rename-inputs.yml rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/rename-inputs.yml diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/rename.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/rename.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/rename.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/rename.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/revtool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/revtool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/revtool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/revtool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/scatter-valueFrom-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/scatter-valueFrom-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/scatter-valueFrom-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/scatter-valueFrom-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/schemadef-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/schemadef-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/schemadef-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/schemadef-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/schemadef-type.yml b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/schemadef-type.yml similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/schemadef-type.yml rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/schemadef-type.yml diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/schemadef_types_with_import-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/schemadef_types_with_import-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/schemadef_types_with_import-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/schemadef_types_with_import-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/schemadef_types_with_import_readgroup.yml b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/schemadef_types_with_import_readgroup.yml similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/schemadef_types_with_import_readgroup.yml rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/schemadef_types_with_import_readgroup.yml diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/search.py b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/search.py similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/search.py rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/search.py diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/sorttool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/sorttool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/sorttool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/sorttool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/special_file b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/special_file similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/special_file rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/special_file diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/testdir/a b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/testdir/a similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/testdir/a rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/testdir/a diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/testdir/b b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/testdir/b similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/testdir/b rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/testdir/b diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/testdir/c/d b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/testdir/c/d similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/testdir/c/d rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/testdir/c/d diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/touch.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/touch.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/touch.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/touch.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/underscore.js b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/underscore.js similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/underscore.js rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/underscore.js diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/updatedir_inplace.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/updatedir_inplace.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/updatedir_inplace.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/updatedir_inplace.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/updateval.py b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/updateval.py similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/updateval.py rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/updateval.py diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/updateval_inplace.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/updateval_inplace.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/updateval_inplace.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/updateval_inplace.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_action.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_action.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_action.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_action.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_anon_enum_inside_array.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_anon_enum_inside_array.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_anon_enum_inside_array.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_anon_enum_inside_array.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_anon_enum_inside_array_inside_schemadef.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_anon_enum_inside_array_inside_schemadef.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_anon_enum_inside_array_inside_schemadef.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_anon_enum_inside_array_inside_schemadef.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_any-type-compat.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_any-type-compat.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_any-type-compat.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_any-type-compat.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_bar.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_bar.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_bar.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_bar.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_basename-fields-test.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_basename-fields-test.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_basename-fields-test.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_basename-fields-test.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_bash-dollar-quote.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_bash-dollar-quote.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_bash-dollar-quote.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_bash-dollar-quote.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_bash-line-continuation-with-expression.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_bash-line-continuation-with-expression.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_bash-line-continuation-with-expression.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_bash-line-continuation-with-expression.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_bash-line-continuation.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_bash-line-continuation.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_bash-line-continuation.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_bash-line-continuation.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_binding-test.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_binding-test.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_binding-test.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_binding-test.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_bool-empty-inputbinding.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_bool-empty-inputbinding.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_bool-empty-inputbinding.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_bool-empty-inputbinding.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_bwa-mem-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_bwa-mem-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_bwa-mem-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_bwa-mem-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat-from-dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat-from-dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat-from-dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat-from-dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat-tool-shortcut.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat-tool-shortcut.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat-tool-shortcut.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat-tool-shortcut.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat1-testcli.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat1-testcli.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat1-testcli.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat1-testcli.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat3-from-dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat3-from-dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat3-from-dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat3-from-dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat3-nodocker.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat3-nodocker.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat3-nodocker.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat3-nodocker.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat3-tool-docker.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat3-tool-docker.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat3-tool-docker.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat3-tool-docker.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat3-tool-mediumcut.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat3-tool-mediumcut.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat3-tool-mediumcut.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat3-tool-mediumcut.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat3-tool-shortcut.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat3-tool-shortcut.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat3-tool-shortcut.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat3-tool-shortcut.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat3-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat3-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat3-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat3-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat4-from-dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat4-from-dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat4-from-dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat4-from-dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat4-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat4-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat4-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat4-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat5-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat5-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cat5-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cat5-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_check.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_check.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_check.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_check.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_colon:test.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_colon:test.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_colon:test.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_colon:test.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_colon_test_output.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_colon_test_output.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_colon_test_output.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_colon_test_output.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-001.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-001.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-001.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-001.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-001_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-001_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-001_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-001_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-002.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-002.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-002.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-002.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-002_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-002_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-002_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-002_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-003.1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-003.1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-003.1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-003.1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-003.1_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-003.1_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-003.1_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-003.1_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-003.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-003.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-003.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-003.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-003_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-003_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-003_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-003_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-004.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-004.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-004.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-004.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-004_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-004_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-004_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-004_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-006.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-006.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-006.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-006.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-006_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-006_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-006_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-006_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-007.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-007.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-007.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-007.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-007_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-007_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-007_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-007_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-009.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-009.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-009.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-009.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-009_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-009_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-009_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-009_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-010.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-010.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-010.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-010.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-010_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-010_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-010_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-010_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-011.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-011.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-011.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-011.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-011_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-011_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-011_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-011_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-012.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-012.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-012.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-012.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-012_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-012_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-012_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-012_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-013.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-013.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-013.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-013.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-013_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-013_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-wf-013_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-wf-013_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-with-defaults.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-with-defaults.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cond-with-defaults.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cond-with-defaults.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cores_float.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cores_float.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cores_float.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cores_float.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines1-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines1-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines1-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines1-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines1-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines1-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines1-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines1-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines10-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines10-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines10-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines10-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines11-extra-step-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines11-extra-step-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines11-extra-step-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines11-extra-step-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines11-extra-step-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines11-extra-step-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines11-extra-step-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines11-extra-step-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines11-null-step-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines11-null-step-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines11-null-step-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines11-null-step-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines11-null-step-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines11-null-step-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines11-null-step-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines11-null-step-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines11-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines11-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines11-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines11-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines11-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines11-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines11-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines11-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines12-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines12-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines12-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines12-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines13-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines13-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines13-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines13-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines14-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines14-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines14-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines14-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines15-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines15-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines15-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines15-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines16-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines16-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines16-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines16-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines17-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines17-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines17-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines17-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines18-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines18-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines18-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines18-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines19-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines19-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines19-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines19-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines2-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines2-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines2-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines2-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines3-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines3-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines3-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines3-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines4-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines4-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines4-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines4-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines5-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines5-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines5-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines5-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines6-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines6-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines6-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines6-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines7-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines7-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines7-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines7-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines8-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines8-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines8-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines8-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines8-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines8-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines8-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines8-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines9-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines9-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines9-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines9-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines9-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines9-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_count-lines9-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_count-lines9-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cwloutput-nolimit.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cwloutput-nolimit.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_cwloutput-nolimit.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_cwloutput-nolimit.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_default_path.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_default_path.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_default_path.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_default_path.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dir2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dir2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dir2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dir2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dir3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dir3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dir3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dir3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dir4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dir4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dir4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dir4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dir5.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dir5.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dir5.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dir5.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dir6.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dir6.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dir6.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dir6.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dir7.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dir7.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dir7.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dir7.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_docker-array-secondaryfiles.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_docker-array-secondaryfiles.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_docker-array-secondaryfiles.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_docker-array-secondaryfiles.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_docker-output-dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_docker-output-dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_docker-output-dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_docker-output-dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_docker-run-cmd.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_docker-run-cmd.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_docker-run-cmd.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_docker-run-cmd.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dynresreq-default.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dynresreq-default.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dynresreq-default.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dynresreq-default.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dynresreq-dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dynresreq-dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dynresreq-dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dynresreq-dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dynresreq-workflow-inputdefault.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dynresreq-workflow-inputdefault.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dynresreq-workflow-inputdefault.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dynresreq-workflow-inputdefault.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dynresreq-workflow-stepdefault.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dynresreq-workflow-stepdefault.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dynresreq-workflow-stepdefault.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dynresreq-workflow-stepdefault.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dynresreq-workflow-tooldefault.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dynresreq-workflow-tooldefault.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dynresreq-workflow-tooldefault.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dynresreq-workflow-tooldefault.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dynresreq-workflow.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dynresreq-workflow.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dynresreq-workflow.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dynresreq-workflow.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dynresreq.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dynresreq.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_dynresreq.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_dynresreq.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_echo-file-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_echo-file-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_echo-file-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_echo-file-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_echo-position-expr.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_echo-position-expr.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_echo-position-expr.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_echo-position-expr.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_echo-tool-default.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_echo-tool-default.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_echo-tool-default.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_echo-tool-default.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_echo-tool-packed.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_echo-tool-packed.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_echo-tool-packed.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_echo-tool-packed.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_echo-tool-packed2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_echo-tool-packed2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_echo-tool-packed2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_echo-tool-packed2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_echo-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_echo-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_echo-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_echo-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_echo-wf-default.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_echo-wf-default.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_echo-wf-default.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_echo-wf-default.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_empty-array-input.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_empty-array-input.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_empty-array-input.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_empty-array-input.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_env-tool1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_env-tool1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_env-tool1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_env-tool1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_env-tool2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_env-tool2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_env-tool2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_env-tool2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_env-tool3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_env-tool3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_env-tool3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_env-tool3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_env-tool4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_env-tool4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_env-tool4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_env-tool4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_env-wf1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_env-wf1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_env-wf1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_env-wf1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_env-wf2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_env-wf2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_env-wf2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_env-wf2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_env-wf3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_env-wf3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_env-wf3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_env-wf3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_envvar.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_envvar.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_envvar.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_envvar.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_envvar2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_envvar2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_envvar2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_envvar2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_envvar3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_envvar3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_envvar3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_envvar3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_exit-success.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_exit-success.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_exit-success.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_exit-success.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_exitcode.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_exitcode.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_exitcode.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_exitcode.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_fail-unconnected.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_fail-unconnected.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_fail-unconnected.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_fail-unconnected.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_fail-unspecified-input.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_fail-unspecified-input.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_fail-unspecified-input.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_fail-unspecified-input.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_file-literal-ex.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_file-literal-ex.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_file-literal-ex.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_file-literal-ex.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_foo.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_foo.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_foo.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_foo.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_formattest.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_formattest.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_formattest.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_formattest.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_formattest2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_formattest2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_formattest2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_formattest2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_formattest3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_formattest3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_formattest3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_formattest3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_glob-expr-list.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_glob-expr-list.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_glob-expr-list.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_glob-expr-list.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_glob-path-error.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_glob-path-error.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_glob-path-error.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_glob-path-error.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_glob_directory.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_glob_directory.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_glob_directory.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_glob_directory.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_glob_test.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_glob_test.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_glob_test.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_glob_test.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_import_schema-def.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_import_schema-def.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_import_schema-def.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_import_schema-def.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_import_schema-def2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_import_schema-def2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_import_schema-def2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_import_schema-def2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_import_schema-def_packed.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_import_schema-def_packed.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_import_schema-def_packed.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_import_schema-def_packed.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_imported-hint.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_imported-hint.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_imported-hint.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_imported-hint.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_initialwork-path.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_initialwork-path.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_initialwork-path.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_initialwork-path.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_initialworkdir-glob-fullpath.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_initialworkdir-glob-fullpath.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_initialworkdir-glob-fullpath.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_initialworkdir-glob-fullpath.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_initialworkdirrequirement-docker-out.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_initialworkdirrequirement-docker-out.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_initialworkdirrequirement-docker-out.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_initialworkdirrequirement-docker-out.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_inline-js.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_inline-js.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_inline-js.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_inline-js.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_inp_update_wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_inp_update_wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_inp_update_wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_inp_update_wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_inpdir_update_wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_inpdir_update_wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_inpdir_update_wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_inpdir_update_wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_io-any-1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_io-any-1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_io-any-1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_io-any-1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_io-any-wf-1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_io-any-wf-1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_io-any-wf-1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_io-any-wf-1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_io-file-default-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_io-file-default-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_io-file-default-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_io-file-default-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_io-file-or-files.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_io-file-or-files.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_io-file-or-files.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_io-file-or-files.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_io-int-default-tool-and-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_io-int-default-tool-and-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_io-int-default-tool-and-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_io-int-default-tool-and-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_io-int-default-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_io-int-default-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_io-int-default-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_io-int-default-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_io-int-optional-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_io-int-optional-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_io-int-optional-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_io-int-optional-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_io-int-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_io-int-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_io-int-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_io-int-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_io-union-input-default-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_io-union-input-default-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_io-union-input-default-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_io-union-input-default-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-container-entryname1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-container-entryname1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-container-entryname1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-container-entryname1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-container-entryname2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-container-entryname2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-container-entryname2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-container-entryname2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-container-entryname3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-container-entryname3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-container-entryname3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-container-entryname3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-container-entryname4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-container-entryname4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-container-entryname4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-container-entryname4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-fileobjs1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-fileobjs1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-fileobjs1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-fileobjs1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-fileobjs2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-fileobjs2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-fileobjs2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-fileobjs2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-jsondump1-nl.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-jsondump1-nl.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-jsondump1-nl.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-jsondump1-nl.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-jsondump1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-jsondump1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-jsondump1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-jsondump1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-jsondump2-nl.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-jsondump2-nl.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-jsondump2-nl.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-jsondump2-nl.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-jsondump2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-jsondump2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-jsondump2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-jsondump2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-jsondump3-nl.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-jsondump3-nl.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-jsondump3-nl.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-jsondump3-nl.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-jsondump3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-jsondump3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-jsondump3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-jsondump3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-nolimit.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-nolimit.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-nolimit.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-nolimit.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-passthrough1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-passthrough1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-passthrough1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-passthrough1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-passthrough2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-passthrough2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-passthrough2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-passthrough2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-passthrough3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-passthrough3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-passthrough3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-passthrough3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-passthrough4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-passthrough4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwd-passthrough4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwd-passthrough4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwdr-entry.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwdr-entry.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwdr-entry.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwdr-entry.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwdr_dir_literal_real_file.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwdr_dir_literal_real_file.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwdr_dir_literal_real_file.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwdr_dir_literal_real_file.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwdr_with_nested_dirs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwdr_with_nested_dirs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_iwdr_with_nested_dirs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_iwdr_with_nested_dirs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_js-input-record.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_js-input-record.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_js-input-record.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_js-input-record.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_js-quote.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_js-quote.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_js-quote.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_js-quote.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_linkfile.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_linkfile.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_linkfile.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_linkfile.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_listing_deep1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_listing_deep1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_listing_deep1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_listing_deep1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_listing_deep2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_listing_deep2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_listing_deep2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_listing_deep2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_listing_none1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_listing_none1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_listing_none1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_listing_none1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_listing_none2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_listing_none2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_listing_none2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_listing_none2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_listing_none3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_listing_none3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_listing_none3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_listing_none3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_listing_shallow1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_listing_shallow1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_listing_shallow1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_listing_shallow1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_listing_shallow2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_listing_shallow2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_listing_shallow2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_listing_shallow2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_loadContents-limit.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_loadContents-limit.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_loadContents-limit.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_loadContents-limit.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_metadata.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_metadata.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_metadata.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_metadata.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_mkdir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_mkdir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_mkdir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_mkdir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_multiple_input_feature_requirement.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_multiple_input_feature_requirement.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_multiple_input_feature_requirement.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_multiple_input_feature_requirement.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_nameroot.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_nameroot.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_nameroot.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_nameroot.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_nested-array.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_nested-array.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_nested-array.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_nested-array.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_networkaccess.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_networkaccess.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_networkaccess.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_networkaccess.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_networkaccess2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_networkaccess2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_networkaccess2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_networkaccess2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_no-inputs-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_no-inputs-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_no-inputs-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_no-inputs-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_no-inputs-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_no-inputs-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_no-inputs-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_no-inputs-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_no-outputs-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_no-outputs-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_no-outputs-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_no-outputs-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_no-outputs-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_no-outputs-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_no-outputs-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_no-outputs-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_null-defined.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_null-defined.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_null-defined.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_null-defined.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_null-expression1-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_null-expression1-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_null-expression1-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_null-expression1-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_null-expression2-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_null-expression2-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_null-expression2-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_null-expression2-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_null-expression3-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_null-expression3-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_null-expression3-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_null-expression3-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_operation.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_operation.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_operation.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_operation.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_optional-numerical-output-0.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_optional-numerical-output-0.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_optional-numerical-output-0.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_optional-numerical-output-0.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_optional-output.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_optional-output.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_optional-output.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_optional-output.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_output-arrays-file-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_output-arrays-file-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_output-arrays-file-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_output-arrays-file-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_output-arrays-int-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_output-arrays-int-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_output-arrays-int-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_output-arrays-int-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_output-arrays-int.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_output-arrays-int.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_output-arrays-int.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_output-arrays-int.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_output_reference_workflow_input.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_output_reference_workflow_input.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_output_reference_workflow_input.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_output_reference_workflow_input.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_action.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_action.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_action.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_action.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_anon_enum_inside_array.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_anon_enum_inside_array.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_anon_enum_inside_array.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_anon_enum_inside_array.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_anon_enum_inside_array_inside_schemadef.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_anon_enum_inside_array_inside_schemadef.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_anon_enum_inside_array_inside_schemadef.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_anon_enum_inside_array_inside_schemadef.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_any-type-compat.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_any-type-compat.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_any-type-compat.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_any-type-compat.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_bar.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_bar.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_bar.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_bar.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_basename-fields-test.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_basename-fields-test.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_basename-fields-test.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_basename-fields-test.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_bash-dollar-quote.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_bash-dollar-quote.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_bash-dollar-quote.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_bash-dollar-quote.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_bash-line-continuation-with-expression.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_bash-line-continuation-with-expression.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_bash-line-continuation-with-expression.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_bash-line-continuation-with-expression.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_bash-line-continuation.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_bash-line-continuation.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_bash-line-continuation.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_bash-line-continuation.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_binding-test.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_binding-test.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_binding-test.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_binding-test.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_bool-empty-inputbinding.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_bool-empty-inputbinding.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_bool-empty-inputbinding.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_bool-empty-inputbinding.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_bwa-mem-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_bwa-mem-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_bwa-mem-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_bwa-mem-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat-from-dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat-from-dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat-from-dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat-from-dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat-tool-shortcut.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat-tool-shortcut.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat-tool-shortcut.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat-tool-shortcut.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat1-testcli.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat1-testcli.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat1-testcli.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat1-testcli.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat3-from-dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat3-from-dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat3-from-dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat3-from-dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat3-nodocker.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat3-nodocker.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat3-nodocker.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat3-nodocker.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat3-tool-docker.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat3-tool-docker.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat3-tool-docker.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat3-tool-docker.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat3-tool-mediumcut.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat3-tool-mediumcut.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat3-tool-mediumcut.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat3-tool-mediumcut.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat3-tool-shortcut.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat3-tool-shortcut.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat3-tool-shortcut.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat3-tool-shortcut.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat3-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat3-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat3-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat3-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat4-from-dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat4-from-dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat4-from-dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat4-from-dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat4-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat4-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat4-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat4-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat5-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat5-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cat5-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cat5-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_check.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_check.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_check.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_check.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_colon:test.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_colon:test.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_colon:test.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_colon:test.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_colon_test_output.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_colon_test_output.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_colon_test_output.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_colon_test_output.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-001.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-001.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-001.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-001.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-001_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-001_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-001_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-001_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-002.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-002.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-002.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-002.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-002_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-002_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-002_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-002_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-003.1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-003.1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-003.1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-003.1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-003.1_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-003.1_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-003.1_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-003.1_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-003.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-003.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-003.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-003.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-003_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-003_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-003_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-003_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-004.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-004.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-004.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-004.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-004_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-004_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-004_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-004_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-006.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-006.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-006.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-006.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-006_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-006_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-006_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-006_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-007.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-007.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-007.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-007.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-007_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-007_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-007_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-007_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-009.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-009.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-009.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-009.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-009_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-009_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-009_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-009_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-010.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-010.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-010.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-010.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-010_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-010_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-010_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-010_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-011.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-011.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-011.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-011.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-011_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-011_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-011_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-011_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-012.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-012.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-012.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-012.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-012_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-012_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-012_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-012_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-013.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-013.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-013.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-013.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-013_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-013_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-wf-013_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-wf-013_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-with-defaults.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-with-defaults.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cond-with-defaults.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cond-with-defaults.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cores_float.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cores_float.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cores_float.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cores_float.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines1-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines1-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines1-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines1-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines1-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines1-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines1-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines1-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines10-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines10-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines10-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines10-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines11-extra-step-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines11-extra-step-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines11-extra-step-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines11-extra-step-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines11-extra-step-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines11-extra-step-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines11-extra-step-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines11-extra-step-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines11-null-step-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines11-null-step-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines11-null-step-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines11-null-step-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines11-null-step-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines11-null-step-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines11-null-step-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines11-null-step-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines11-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines11-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines11-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines11-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines11-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines11-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines11-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines11-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines12-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines12-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines12-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines12-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines13-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines13-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines13-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines13-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines14-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines14-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines14-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines14-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines15-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines15-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines15-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines15-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines16-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines16-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines16-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines16-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines17-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines17-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines17-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines17-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines18-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines18-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines18-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines18-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines19-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines19-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines19-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines19-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines2-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines2-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines2-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines2-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines3-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines3-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines3-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines3-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines4-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines4-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines4-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines4-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines5-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines5-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines5-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines5-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines6-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines6-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines6-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines6-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines7-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines7-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines7-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines7-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines8-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines8-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines8-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines8-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines8-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines8-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines8-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines8-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines9-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines9-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines9-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines9-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines9-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines9-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_count-lines9-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_count-lines9-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cwloutput-nolimit.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cwloutput-nolimit.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_cwloutput-nolimit.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_cwloutput-nolimit.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_default_path.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_default_path.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_default_path.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_default_path.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dir2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dir2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dir2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dir2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dir3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dir3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dir3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dir3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dir4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dir4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dir4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dir4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dir5.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dir5.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dir5.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dir5.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dir6.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dir6.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dir6.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dir6.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dir7.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dir7.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dir7.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dir7.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_docker-array-secondaryfiles.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_docker-array-secondaryfiles.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_docker-array-secondaryfiles.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_docker-array-secondaryfiles.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_docker-output-dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_docker-output-dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_docker-output-dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_docker-output-dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_docker-run-cmd.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_docker-run-cmd.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_docker-run-cmd.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_docker-run-cmd.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dynresreq-default.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dynresreq-default.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dynresreq-default.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dynresreq-default.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dynresreq-dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dynresreq-dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dynresreq-dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dynresreq-dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dynresreq-workflow-inputdefault.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dynresreq-workflow-inputdefault.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dynresreq-workflow-inputdefault.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dynresreq-workflow-inputdefault.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dynresreq-workflow-stepdefault.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dynresreq-workflow-stepdefault.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dynresreq-workflow-stepdefault.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dynresreq-workflow-stepdefault.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dynresreq-workflow-tooldefault.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dynresreq-workflow-tooldefault.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dynresreq-workflow-tooldefault.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dynresreq-workflow-tooldefault.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dynresreq-workflow.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dynresreq-workflow.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dynresreq-workflow.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dynresreq-workflow.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dynresreq.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dynresreq.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_dynresreq.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_dynresreq.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_echo-file-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_echo-file-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_echo-file-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_echo-file-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_echo-position-expr.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_echo-position-expr.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_echo-position-expr.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_echo-position-expr.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_echo-tool-default.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_echo-tool-default.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_echo-tool-default.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_echo-tool-default.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_echo-tool-packed.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_echo-tool-packed.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_echo-tool-packed.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_echo-tool-packed.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_echo-tool-packed2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_echo-tool-packed2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_echo-tool-packed2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_echo-tool-packed2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_echo-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_echo-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_echo-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_echo-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_echo-wf-default.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_echo-wf-default.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_echo-wf-default.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_echo-wf-default.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_empty-array-input.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_empty-array-input.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_empty-array-input.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_empty-array-input.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_env-tool1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_env-tool1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_env-tool1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_env-tool1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_env-tool2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_env-tool2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_env-tool2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_env-tool2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_env-tool3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_env-tool3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_env-tool3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_env-tool3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_env-tool4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_env-tool4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_env-tool4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_env-tool4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_env-wf1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_env-wf1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_env-wf1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_env-wf1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_env-wf2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_env-wf2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_env-wf2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_env-wf2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_env-wf3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_env-wf3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_env-wf3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_env-wf3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_envvar.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_envvar.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_envvar.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_envvar.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_envvar2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_envvar2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_envvar2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_envvar2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_envvar3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_envvar3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_envvar3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_envvar3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_exit-success.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_exit-success.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_exit-success.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_exit-success.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_exitcode.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_exitcode.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_exitcode.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_exitcode.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_fail-unconnected.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_fail-unconnected.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_fail-unconnected.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_fail-unconnected.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_fail-unspecified-input.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_fail-unspecified-input.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_fail-unspecified-input.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_fail-unspecified-input.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_file-literal-ex.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_file-literal-ex.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_file-literal-ex.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_file-literal-ex.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_foo.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_foo.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_foo.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_foo.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_formattest.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_formattest.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_formattest.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_formattest.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_formattest2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_formattest2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_formattest2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_formattest2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_formattest3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_formattest3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_formattest3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_formattest3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_glob-expr-list.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_glob-expr-list.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_glob-expr-list.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_glob-expr-list.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_glob-path-error.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_glob-path-error.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_glob-path-error.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_glob-path-error.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_glob_directory.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_glob_directory.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_glob_directory.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_glob_directory.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_glob_test.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_glob_test.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_glob_test.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_glob_test.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_import_schema-def.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_import_schema-def.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_import_schema-def.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_import_schema-def.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_import_schema-def2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_import_schema-def2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_import_schema-def2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_import_schema-def2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_import_schema-def_packed.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_import_schema-def_packed.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_import_schema-def_packed.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_import_schema-def_packed.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_imported-hint.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_imported-hint.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_imported-hint.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_imported-hint.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_initialwork-path.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_initialwork-path.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_initialwork-path.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_initialwork-path.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_initialworkdir-glob-fullpath.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_initialworkdir-glob-fullpath.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_initialworkdir-glob-fullpath.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_initialworkdir-glob-fullpath.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_initialworkdirrequirement-docker-out.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_initialworkdirrequirement-docker-out.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_initialworkdirrequirement-docker-out.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_initialworkdirrequirement-docker-out.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_inline-js.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_inline-js.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_inline-js.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_inline-js.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_inp_update_wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_inp_update_wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_inp_update_wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_inp_update_wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_inpdir_update_wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_inpdir_update_wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_inpdir_update_wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_inpdir_update_wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_io-any-1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_io-any-1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_io-any-1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_io-any-1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_io-any-wf-1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_io-any-wf-1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_io-any-wf-1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_io-any-wf-1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_io-file-default-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_io-file-default-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_io-file-default-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_io-file-default-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_io-file-or-files.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_io-file-or-files.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_io-file-or-files.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_io-file-or-files.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_io-int-default-tool-and-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_io-int-default-tool-and-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_io-int-default-tool-and-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_io-int-default-tool-and-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_io-int-default-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_io-int-default-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_io-int-default-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_io-int-default-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_io-int-optional-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_io-int-optional-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_io-int-optional-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_io-int-optional-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_io-int-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_io-int-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_io-int-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_io-int-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_io-union-input-default-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_io-union-input-default-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_io-union-input-default-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_io-union-input-default-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-container-entryname1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-container-entryname1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-container-entryname1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-container-entryname1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-container-entryname2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-container-entryname2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-container-entryname2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-container-entryname2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-container-entryname3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-container-entryname3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-container-entryname3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-container-entryname3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-container-entryname4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-container-entryname4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-container-entryname4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-container-entryname4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-fileobjs1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-fileobjs1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-fileobjs1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-fileobjs1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-fileobjs2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-fileobjs2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-fileobjs2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-fileobjs2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-jsondump1-nl.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-jsondump1-nl.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-jsondump1-nl.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-jsondump1-nl.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-jsondump1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-jsondump1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-jsondump1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-jsondump1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-jsondump2-nl.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-jsondump2-nl.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-jsondump2-nl.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-jsondump2-nl.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-jsondump2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-jsondump2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-jsondump2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-jsondump2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-jsondump3-nl.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-jsondump3-nl.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-jsondump3-nl.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-jsondump3-nl.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-jsondump3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-jsondump3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-jsondump3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-jsondump3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-nolimit.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-nolimit.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-nolimit.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-nolimit.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-passthrough1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-passthrough1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-passthrough1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-passthrough1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-passthrough2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-passthrough2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-passthrough2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-passthrough2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-passthrough3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-passthrough3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-passthrough3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-passthrough3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-passthrough4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-passthrough4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwd-passthrough4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwd-passthrough4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwdr-entry.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwdr-entry.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwdr-entry.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwdr-entry.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwdr_dir_literal_real_file.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwdr_dir_literal_real_file.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwdr_dir_literal_real_file.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwdr_dir_literal_real_file.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwdr_with_nested_dirs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwdr_with_nested_dirs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_iwdr_with_nested_dirs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_iwdr_with_nested_dirs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_js-input-record.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_js-input-record.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_js-input-record.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_js-input-record.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_js-quote.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_js-quote.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_js-quote.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_js-quote.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_linkfile.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_linkfile.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_linkfile.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_linkfile.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_listing_deep1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_listing_deep1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_listing_deep1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_listing_deep1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_listing_deep2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_listing_deep2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_listing_deep2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_listing_deep2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_listing_none1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_listing_none1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_listing_none1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_listing_none1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_listing_none2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_listing_none2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_listing_none2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_listing_none2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_listing_none3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_listing_none3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_listing_none3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_listing_none3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_listing_shallow1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_listing_shallow1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_listing_shallow1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_listing_shallow1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_listing_shallow2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_listing_shallow2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_listing_shallow2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_listing_shallow2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_loadContents-limit.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_loadContents-limit.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_loadContents-limit.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_loadContents-limit.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_metadata.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_metadata.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_metadata.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_metadata.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_mkdir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_mkdir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_mkdir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_mkdir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_multiple_input_feature_requirement.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_multiple_input_feature_requirement.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_multiple_input_feature_requirement.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_multiple_input_feature_requirement.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_nameroot.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_nameroot.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_nameroot.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_nameroot.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_nested-array.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_nested-array.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_nested-array.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_nested-array.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_networkaccess.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_networkaccess.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_networkaccess.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_networkaccess.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_networkaccess2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_networkaccess2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_networkaccess2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_networkaccess2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_no-inputs-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_no-inputs-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_no-inputs-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_no-inputs-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_no-inputs-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_no-inputs-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_no-inputs-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_no-inputs-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_no-outputs-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_no-outputs-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_no-outputs-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_no-outputs-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_no-outputs-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_no-outputs-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_no-outputs-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_no-outputs-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_null-defined.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_null-defined.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_null-defined.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_null-defined.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_null-expression1-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_null-expression1-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_null-expression1-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_null-expression1-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_null-expression2-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_null-expression2-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_null-expression2-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_null-expression2-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_null-expression3-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_null-expression3-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_null-expression3-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_null-expression3-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_operation.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_operation.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_operation.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_operation.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_optional-numerical-output-0.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_optional-numerical-output-0.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_optional-numerical-output-0.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_optional-numerical-output-0.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_optional-output.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_optional-output.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_optional-output.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_optional-output.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_output-arrays-file-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_output-arrays-file-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_output-arrays-file-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_output-arrays-file-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_output-arrays-int-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_output-arrays-int-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_output-arrays-int-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_output-arrays-int-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_output-arrays-int.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_output-arrays-int.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_output-arrays-int.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_output-arrays-int.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_output_reference_workflow_input.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_output_reference_workflow_input.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_output_reference_workflow_input.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_output_reference_workflow_input.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_params.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_params.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_params.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_params.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_params2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_params2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_params2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_params2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_params_input_length_non_array.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_params_input_length_non_array.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_params_input_length_non_array.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_params_input_length_non_array.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_parseInt-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_parseInt-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_parseInt-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_parseInt-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_pass-unconnected.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_pass-unconnected.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_pass-unconnected.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_pass-unconnected.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-in-format.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-in-format.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-in-format.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-in-format.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-in-secondaryFiles-missing-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-in-secondaryFiles-missing-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-in-secondaryFiles-missing-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-in-secondaryFiles-missing-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-in-secondaryFiles-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-in-secondaryFiles-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-in-secondaryFiles-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-in-secondaryFiles-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-in-secondaryFiles.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-in-secondaryFiles.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-in-secondaryFiles.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-in-secondaryFiles.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-order.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-order.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-order.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-order.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-out-format.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-out-format.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-out-format.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-out-format.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-out-secondaryFiles.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-out-secondaryFiles.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-out-secondaryFiles.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-out-secondaryFiles.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-output-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-output-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-output-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-output-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-output.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-output.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-output.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-output.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-sd-secondaryFiles.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-sd-secondaryFiles.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record-sd-secondaryFiles.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record-sd-secondaryFiles.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record_outputeval.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record_outputeval.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record_outputeval.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record_outputeval.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record_outputeval_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record_outputeval_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_record_outputeval_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_record_outputeval_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_recursive-input-directory.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_recursive-input-directory.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_recursive-input-directory.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_recursive-input-directory.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_rename-inputs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_rename-inputs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_rename-inputs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_rename-inputs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_rename-outputs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_rename-outputs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_rename-outputs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_rename-outputs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_rename.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_rename.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_rename.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_rename.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_revsort-abstract.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_revsort-abstract.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_revsort-abstract.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_revsort-abstract.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_revsort-packed.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_revsort-packed.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_revsort-packed.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_revsort-packed.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_revsort.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_revsort.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_revsort.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_revsort.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_revtool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_revtool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_revtool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_revtool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_runtime-outdir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_runtime-outdir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_runtime-outdir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_runtime-outdir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_runtime-paths-distinct.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_runtime-paths-distinct.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_runtime-paths-distinct.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_runtime-paths-distinct.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-valueFrom-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-valueFrom-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-valueFrom-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-valueFrom-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-valuefrom-inputs-wf1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-valuefrom-inputs-wf1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-valuefrom-inputs-wf1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-valuefrom-inputs-wf1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-valuefrom-wf1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-valuefrom-wf1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-valuefrom-wf1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-valuefrom-wf1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-valuefrom-wf2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-valuefrom-wf2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-valuefrom-wf2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-valuefrom-wf2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-valuefrom-wf3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-valuefrom-wf3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-valuefrom-wf3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-valuefrom-wf3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-valuefrom-wf4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-valuefrom-wf4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-valuefrom-wf4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-valuefrom-wf4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-valuefrom-wf5.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-valuefrom-wf5.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-valuefrom-wf5.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-valuefrom-wf5.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-valuefrom-wf6.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-valuefrom-wf6.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-valuefrom-wf6.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-valuefrom-wf6.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-wf1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-wf1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-wf1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-wf1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-wf2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-wf2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-wf2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-wf2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-wf3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-wf3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-wf3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-wf3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-wf4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-wf4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_scatter-wf4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_scatter-wf4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_schemadef-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_schemadef-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_schemadef-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_schemadef-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_schemadef-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_schemadef-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_schemadef-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_schemadef-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_schemadef_types_with_import-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_schemadef_types_with_import-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_schemadef_types_with_import-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_schemadef_types_with_import-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_search.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_search.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_search.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_search.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_shellchar.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_shellchar.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_shellchar.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_shellchar.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_shellchar2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_shellchar2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_shellchar2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_shellchar2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_size-expression-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_size-expression-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_size-expression-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_size-expression-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_sorttool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_sorttool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_sorttool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_sorttool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stage-array-dirs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stage-array-dirs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stage-array-dirs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stage-array-dirs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stage-array.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stage-array.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stage-array.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stage-array.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stage-unprovided-file.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stage-unprovided-file.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stage-unprovided-file.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stage-unprovided-file.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stage_file_array.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stage_file_array.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stage_file_array.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stage_file_array.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stage_file_array_basename.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stage_file_array_basename.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stage_file_array_basename.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stage_file_array_basename.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stage_file_array_basename_and_entryname.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stage_file_array_basename_and_entryname.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stage_file_array_basename_and_entryname.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stage_file_array_basename_and_entryname.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stagefile.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stagefile.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stagefile.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stagefile.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stderr-mediumcut.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stderr-mediumcut.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stderr-mediumcut.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stderr-mediumcut.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stderr-shortcut.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stderr-shortcut.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stderr-shortcut.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stderr-shortcut.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stderr.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stderr.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stderr.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stderr.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stdout_chained_commands.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stdout_chained_commands.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_stdout_chained_commands.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_stdout_chained_commands.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_step-valuefrom-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_step-valuefrom-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_step-valuefrom-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_step-valuefrom-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_step-valuefrom2-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_step-valuefrom2-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_step-valuefrom2-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_step-valuefrom2-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_step-valuefrom3-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_step-valuefrom3-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_step-valuefrom3-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_step-valuefrom3-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_step-valuefrom4-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_step-valuefrom4-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_step-valuefrom4-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_step-valuefrom4-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_step-valuefrom5-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_step-valuefrom5-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_step-valuefrom5-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_step-valuefrom5-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_steplevel-resreq.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_steplevel-resreq.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_steplevel-resreq.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_steplevel-resreq.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_storage_float.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_storage_float.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_storage_float.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_storage_float.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_sum-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_sum-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_sum-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_sum-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_sum-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_sum-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_sum-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_sum-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_symlink-illegal.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_symlink-illegal.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_symlink-illegal.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_symlink-illegal.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_symlink-legal.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_symlink-legal.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_symlink-legal.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_symlink-legal.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_synth-file.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_synth-file.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_synth-file.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_synth-file.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_template-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_template-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_template-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_template-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_test-cwl-out.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_test-cwl-out.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_test-cwl-out.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_test-cwl-out.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_test-cwl-out2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_test-cwl-out2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_test-cwl-out2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_test-cwl-out2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_timelimit.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_timelimit.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_timelimit.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_timelimit.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_timelimit2-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_timelimit2-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_timelimit2-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_timelimit2-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_timelimit2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_timelimit2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_timelimit2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_timelimit2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_timelimit3-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_timelimit3-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_timelimit3-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_timelimit3-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_timelimit3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_timelimit3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_timelimit3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_timelimit3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_timelimit4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_timelimit4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_timelimit4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_timelimit4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_timelimit5.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_timelimit5.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_timelimit5.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_timelimit5.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_tmap-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_tmap-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_tmap-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_tmap-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_tool-v12.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_tool-v12.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_tool-v12.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_tool-v12.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_touch.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_touch.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_touch.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_touch.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_updatedir_inplace.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_updatedir_inplace.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_updatedir_inplace.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_updatedir_inplace.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_updateval_inplace.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_updateval_inplace.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_updateval_inplace.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_updateval_inplace.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_valid_schemadef_types_with_import-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_valid_schemadef_types_with_import-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_valid_schemadef_types_with_import-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_valid_schemadef_types_with_import-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_valueFrom-constant.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_valueFrom-constant.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_valueFrom-constant.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_valueFrom-constant.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_vf-concat.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_vf-concat.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_vf-concat.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_vf-concat.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wc-tool-shortcut.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wc-tool-shortcut.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wc-tool-shortcut.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wc-tool-shortcut.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wc-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wc-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wc-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wc-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wc2-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wc2-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wc2-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wc2-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wc3-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wc3-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wc3-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wc3-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wc4-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wc4-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wc4-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wc4-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wf-loadContents.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wf-loadContents.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wf-loadContents.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wf-loadContents.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wf-loadContents2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wf-loadContents2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wf-loadContents2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wf-loadContents2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wf-loadContents3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wf-loadContents3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wf-loadContents3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wf-loadContents3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wf-loadContents4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wf-loadContents4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wf-loadContents4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wf-loadContents4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wf_ren.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wf_ren.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_wf_ren.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_wf_ren.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_writable-dir-docker.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_writable-dir-docker.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_writable-dir-docker.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_writable-dir-docker.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_writable-dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_writable-dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_packed_writable-dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_packed_writable-dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_params.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_params.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_params.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_params.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_params2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_params2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_params2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_params2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_params_input_length_non_array.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_params_input_length_non_array.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_params_input_length_non_array.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_params_input_length_non_array.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_parseInt-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_parseInt-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_parseInt-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_parseInt-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_pass-unconnected.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_pass-unconnected.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_pass-unconnected.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_pass-unconnected.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-in-format.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-in-format.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-in-format.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-in-format.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-in-secondaryFiles-missing-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-in-secondaryFiles-missing-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-in-secondaryFiles-missing-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-in-secondaryFiles-missing-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-in-secondaryFiles-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-in-secondaryFiles-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-in-secondaryFiles-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-in-secondaryFiles-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-in-secondaryFiles.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-in-secondaryFiles.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-in-secondaryFiles.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-in-secondaryFiles.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-order.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-order.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-order.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-order.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-out-format.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-out-format.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-out-format.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-out-format.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-out-secondaryFiles.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-out-secondaryFiles.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-out-secondaryFiles.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-out-secondaryFiles.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-output-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-output-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-output-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-output-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-output.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-output.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-output.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-output.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-sd-secondaryFiles.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-sd-secondaryFiles.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record-sd-secondaryFiles.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record-sd-secondaryFiles.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record_outputeval.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record_outputeval.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record_outputeval.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record_outputeval.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record_outputeval_nojs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record_outputeval_nojs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_record_outputeval_nojs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_record_outputeval_nojs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_recursive-input-directory.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_recursive-input-directory.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_recursive-input-directory.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_recursive-input-directory.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_rename-inputs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_rename-inputs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_rename-inputs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_rename-inputs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_rename-outputs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_rename-outputs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_rename-outputs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_rename-outputs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_rename.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_rename.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_rename.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_rename.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_revsort-abstract.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_revsort-abstract.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_revsort-abstract.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_revsort-abstract.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_revsort-packed.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_revsort-packed.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_revsort-packed.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_revsort-packed.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_revsort.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_revsort.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_revsort.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_revsort.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_revtool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_revtool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_revtool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_revtool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_runtime-outdir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_runtime-outdir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_runtime-outdir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_runtime-outdir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_runtime-paths-distinct.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_runtime-paths-distinct.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_runtime-paths-distinct.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_runtime-paths-distinct.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-valueFrom-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-valueFrom-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-valueFrom-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-valueFrom-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-valuefrom-inputs-wf1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-valuefrom-inputs-wf1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-valuefrom-inputs-wf1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-valuefrom-inputs-wf1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-valuefrom-wf1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-valuefrom-wf1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-valuefrom-wf1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-valuefrom-wf1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-valuefrom-wf2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-valuefrom-wf2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-valuefrom-wf2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-valuefrom-wf2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-valuefrom-wf3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-valuefrom-wf3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-valuefrom-wf3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-valuefrom-wf3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-valuefrom-wf4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-valuefrom-wf4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-valuefrom-wf4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-valuefrom-wf4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-valuefrom-wf5.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-valuefrom-wf5.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-valuefrom-wf5.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-valuefrom-wf5.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-valuefrom-wf6.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-valuefrom-wf6.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-valuefrom-wf6.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-valuefrom-wf6.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-wf1.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-wf1.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-wf1.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-wf1.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-wf2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-wf2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-wf2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-wf2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-wf3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-wf3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-wf3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-wf3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-wf4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-wf4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_scatter-wf4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_scatter-wf4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_schemadef-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_schemadef-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_schemadef-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_schemadef-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_schemadef-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_schemadef-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_schemadef-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_schemadef-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_schemadef_types_with_import-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_schemadef_types_with_import-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_schemadef_types_with_import-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_schemadef_types_with_import-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_search.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_search.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_search.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_search.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_shellchar.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_shellchar.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_shellchar.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_shellchar.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_shellchar2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_shellchar2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_shellchar2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_shellchar2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_size-expression-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_size-expression-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_size-expression-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_size-expression-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_sorttool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_sorttool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_sorttool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_sorttool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stage-array-dirs.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stage-array-dirs.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stage-array-dirs.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stage-array-dirs.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stage-array.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stage-array.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stage-array.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stage-array.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stage-unprovided-file.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stage-unprovided-file.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stage-unprovided-file.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stage-unprovided-file.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stage_file_array.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stage_file_array.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stage_file_array.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stage_file_array.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stage_file_array_basename.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stage_file_array_basename.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stage_file_array_basename.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stage_file_array_basename.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stage_file_array_basename_and_entryname.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stage_file_array_basename_and_entryname.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stage_file_array_basename_and_entryname.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stage_file_array_basename_and_entryname.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stagefile.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stagefile.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stagefile.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stagefile.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stderr-mediumcut.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stderr-mediumcut.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stderr-mediumcut.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stderr-mediumcut.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stderr-shortcut.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stderr-shortcut.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stderr-shortcut.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stderr-shortcut.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stderr.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stderr.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stderr.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stderr.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stdout_chained_commands.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stdout_chained_commands.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_stdout_chained_commands.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_stdout_chained_commands.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_step-valuefrom-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_step-valuefrom-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_step-valuefrom-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_step-valuefrom-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_step-valuefrom2-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_step-valuefrom2-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_step-valuefrom2-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_step-valuefrom2-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_step-valuefrom3-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_step-valuefrom3-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_step-valuefrom3-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_step-valuefrom3-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_step-valuefrom4-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_step-valuefrom4-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_step-valuefrom4-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_step-valuefrom4-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_step-valuefrom5-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_step-valuefrom5-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_step-valuefrom5-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_step-valuefrom5-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_steplevel-resreq.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_steplevel-resreq.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_steplevel-resreq.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_steplevel-resreq.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_storage_float.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_storage_float.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_storage_float.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_storage_float.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_sum-wf-noET.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_sum-wf-noET.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_sum-wf-noET.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_sum-wf-noET.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_sum-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_sum-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_sum-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_sum-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_symlink-illegal.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_symlink-illegal.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_symlink-illegal.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_symlink-illegal.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_symlink-legal.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_symlink-legal.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_symlink-legal.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_symlink-legal.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_synth-file.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_synth-file.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_synth-file.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_synth-file.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_template-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_template-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_template-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_template-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_test-cwl-out.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_test-cwl-out.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_test-cwl-out.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_test-cwl-out.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_test-cwl-out2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_test-cwl-out2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_test-cwl-out2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_test-cwl-out2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_timelimit.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_timelimit.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_timelimit.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_timelimit.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_timelimit2-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_timelimit2-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_timelimit2-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_timelimit2-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_timelimit2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_timelimit2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_timelimit2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_timelimit2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_timelimit3-wf.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_timelimit3-wf.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_timelimit3-wf.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_timelimit3-wf.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_timelimit3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_timelimit3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_timelimit3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_timelimit3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_timelimit4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_timelimit4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_timelimit4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_timelimit4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_timelimit5.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_timelimit5.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_timelimit5.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_timelimit5.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_tmap-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_tmap-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_tmap-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_tmap-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_tool-v12.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_tool-v12.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_tool-v12.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_tool-v12.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_touch.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_touch.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_touch.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_touch.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_updatedir_inplace.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_updatedir_inplace.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_updatedir_inplace.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_updatedir_inplace.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_updateval_inplace.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_updateval_inplace.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_updateval_inplace.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_updateval_inplace.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_valueFrom-constant.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_valueFrom-constant.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_valueFrom-constant.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_valueFrom-constant.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_vf-concat.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_vf-concat.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_vf-concat.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_vf-concat.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wc-tool-shortcut.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wc-tool-shortcut.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wc-tool-shortcut.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wc-tool-shortcut.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wc-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wc-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wc-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wc-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wc2-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wc2-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wc2-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wc2-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wc3-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wc3-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wc3-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wc3-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wc4-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wc4-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wc4-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wc4-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wf-loadContents.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wf-loadContents.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wf-loadContents.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wf-loadContents.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wf-loadContents2.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wf-loadContents2.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wf-loadContents2.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wf-loadContents2.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wf-loadContents3.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wf-loadContents3.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wf-loadContents3.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wf-loadContents3.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wf-loadContents4.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wf-loadContents4.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wf-loadContents4.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wf-loadContents4.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wf_ren.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wf_ren.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_wf_ren.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_wf_ren.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_writable-dir-docker.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_writable-dir-docker.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_writable-dir-docker.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_writable-dir-docker.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_writable-dir.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_writable-dir.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_writable-dir.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/valid_writable-dir.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/wc-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/wc-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/wc-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/wc-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/wc2-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/wc2-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/wc2-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/wc2-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/wc3-tool.cwl b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/wc3-tool.cwl similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/wc3-tool.cwl rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/wc3-tool.cwl diff --git a/src/test/resources/org/w3id/cwl/cwl1_2/utils/whale.txt b/src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/whale.txt similarity index 100% rename from src/test/resources/org/w3id/cwl/cwl1_2/utils/whale.txt rename to src/test/resources/org/commonwl/cwlsdk/cwl1_2/utils/whale.txt